update controllers logic
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Services\Grading;
|
||||
|
||||
use App\Support\MailHtml;
|
||||
use App\Services\EmailService;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
@@ -84,11 +85,7 @@ class BelowSixtyEmailService
|
||||
|
||||
$html = trim((string) ($payload['html'] ?? ''));
|
||||
if ($html === '') {
|
||||
try {
|
||||
$html = view('emails/below_sixty_performance', $emailData, ['saveData' => true]);
|
||||
} catch (\Throwable $e) {
|
||||
$html = '<p>' . e($subject) . '</p>';
|
||||
}
|
||||
$html = MailHtml::document($subject, MailHtml::belowSixtyInnerHtml($emailData));
|
||||
}
|
||||
|
||||
$sent = 0;
|
||||
|
||||
Reference in New Issue
Block a user