merge(['secondary_status' => 'settlement-done', 'source' => 'settlement-done-auto']);
(new ConsumerApplicationController())->updateStatus($application_id);
ParkedTransaction::where('application_id', $application_id)->where('reconciliation_status', 'parked')->update(['reconciliation_status' => 'reconciled']);
// Send an email to accounts
$emailBody = "Hello Team,
"
. "Please note that the below application has been marked as “Settlement Done” in the system. Request the Accounts Team to review the same and update the status to “Settled” on the same day, provided no discrepancy is found.
"
. "In case of any discrepancy or clarification required, please connect with the Collections Team."
. "
Application ID - " . $application_id
. "
Application Link - View Application"
. "
Thanks,
Credit Fair";
Mail::send('emails.blank', ['body' => $emailBody], function ($message) use ($application_id) {
$message->to('accounts@creditfair.in', 'deepali.kale@creditfair.in', 'ravi.mehta@creditfair.in', 'suyog@creditfair.in')
->subject('Settlement Done for Application ID - ' . $application_id);
});
return true;
}
}