@if($cards->count())

All Student ID Cards ({{ $cards->count() }})

@foreach($cards as $card)

Student ID Card

{{ $card->card_number }}
@if($card->student->studentRecord?->photo) {{ $card->student->name }} @else Photo @endif
{{ $card->student->name }}
Student ID{{ $card->student->studentRecord->student_no ?? $card->student->id }}
Faculty{{ $card->student->studentRecord->program->department->faculty->name ?? '-' }}
Program{{ $card->student->studentRecord->program->name ?? '-' }}
Valid until{{ $card->valid_until?->format('Y-m-d') }} / {{ $card->valid_until_shamsi }}
QR
{{ $card->qr_code }}
@endforeach
@else
No student records are available for ID card printing.
@endif