ADMISSION REPORT
Report Type: {{ strtoupper($reportType) }} | Generated: {{ now()->format('d M Y, h:i A') }} | Total: {{ count($records) }} Records
@foreach($records as $index => $record) @php $dob = $record->date_of_birth ? \Carbon\Carbon::parse($record->date_of_birth) : null; $age = $dob ? $dob->age : '-'; $dobFormatted = $dob ? $dob->format('d-m-Y') : '-'; $joiningDate = $record->joining_date ? \Carbon\Carbon::parse($record->joining_date)->format('d-m-Y') : '-'; $feeDate = $record->fee_applicable_date ? \Carbon\Carbon::parse($record->fee_applicable_date)->format('d-m-Y') : '-'; $statusClass = match($record->status) { 'Active' => 'badge-active', 'Pending' => 'badge-pending', 'Rejected' => 'badge-rejected', default => 'badge-active' }; $address = $record->permanent_address ?: $record->corresponding_address; @endphp @endforeach
# Adm.No Student Name Father Name Mother Name Class Sec Gen DOB Contact Alt.Contact Address F.Profession M.Profession
{{ $index + 1 }} {{ $record->admission_no }} {{ $record->student_name }} {{ $record->father_name }} {{ $record->mother_name }} {{ $record->seeking_class }} {{ $record->section }} {{ $record->gender ? substr($record->gender, 0, 1) : '-' }} {{ $dobFormatted }} {{ $record->contact_number }} {{ $record->alternate_contact }} {{ Str::limit($address, 35) }} {{ $record->father_profession }} {{ $record->mother_profession }}