@php $verifyUrl = route('tenant.verify.student', ['payload' => $student->qrPayload()]); $qr = app(\App\Services\QrCodeService::class)->dataUri($verifyUrl, 160); $primaryGuardian = $student->guardians->first(); $contactNumber = $student->emergency_contact_phone ?: $primaryGuardian?->phone; @endphp ID Card — {{ $student->fullName() }}
@if($tenant->logo_path) @else
{{ \Illuminate\Support\Str::of($tenant->name)->substr(0, 1) }}
@endif

{{ $tenant->name }}

Student ID Card

@if($student->photo_path) Photo of {{ $student->fullName() }} @else {{ strtoupper(substr($student->first_name, 0, 1).substr($student->last_name, 0, 1)) }} @endif

{{ $student->fullName() }}

{{ $student->student_code }}

Class & Section

{{ $student->section ? $student->section->label() : '—' }}

Branch

{{ $student->branch->name }}

Blood Group

{{ $student->blood_group ?? '—' }}

Session

{{ $student->academicSession->name }}

@if($tenant->logo_path) @else
{{ \Illuminate\Support\Str::of($tenant->name)->substr(0, 1) }}
@endif

{{ $tenant->name }}

Emergency & Contact Info

Emergency Contact

Contact Number{{ $contactNumber ?? '—' }}
Guardian{{ $primaryGuardian ? trim($primaryGuardian->first_name.' '.$primaryGuardian->last_name) : '—' }}
Address{{ $student->address_line ?? '—' }}

Institution Contact

Address{{ $student->branch->address ?? '—' }}
Phone{{ $student->branch->phone ?? '—' }}
Contact Person{{ $student->branch->contact_person ?? '—' }}

This card is the property of {{ $tenant->name }} and must be carried at all times on school premises. If found, please return to the school office. Unauthorized use is prohibited.