update controllers logic
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Models\Configuration;
|
||||
use App\Models\PaymentNotificationLog;
|
||||
use App\Models\User;
|
||||
use App\Services\EmailService;
|
||||
use App\Support\MailHtml;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
@@ -255,14 +256,7 @@ class PaymentNotificationService
|
||||
</div>
|
||||
HTML;
|
||||
|
||||
if (view()->exists('emails._wrap_layout')) {
|
||||
$body = view('emails._wrap_layout', [
|
||||
'title' => 'Monthly Tuition Reminder',
|
||||
'body_html' => $bodyHtml,
|
||||
], ['saveData' => true]);
|
||||
} else {
|
||||
$body = $bodyHtml;
|
||||
}
|
||||
$body = MailHtml::document('Monthly Tuition Reminder', $bodyHtml);
|
||||
|
||||
return [$subject, $body];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user