update controllers logic

This commit is contained in:
root
2026-04-23 00:04:35 -04:00
parent 1977a513df
commit ca4ba272fc
353 changed files with 13402 additions and 1301 deletions
@@ -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;