@extends('emails.layouts.base') @section('content') @php $statusLabel = strtoupper($attendance_status ?? 'absent'); $statusColor = match ($statusLabel) { 'ABSENT' => '#dc2626', 'LATE' => '#d97706', default => '#475569', }; @endphp
Dear {{ $recipient_name ?? 'Parent/Guardian' }},
This is to inform you that {{ $student_name }} was marked {{ strtolower($statusLabel) }} on {{ $attendance_date }}.
@include('emails.partials.info-table', ['rows' => [ 'Student' => $student_name, 'Admission No.' => $admission_no ?? null, 'Class' => $class_name ?? null, 'Date' => $attendance_date, 'Status' => ucfirst($attendance_status ?? ''), 'Recorded by' => $marked_by ?? null, ]]) @if(!empty($note)){{ $note }}
@endif @if(!empty($portal_url)) @include('emails.partials.button', [ 'label' => 'View Attendance in Portal', 'url' => $portal_url, ]) @endifIf you believe this record is incorrect, please contact the school office as soon as possible.
@endsection