{{-- Card View --}}
@forelse($registrations as $reg)
{{-- Layout: Photo Left, Info Right --}}
{{-- Profile Photo --}}
Profile Picture
{{-- Student Info --}}
{{ $reg->student->student_name_english ?? 'N/A' }}

Reg. No.: {{ $reg->student->admission_roll ?? 'N/A' }}

Session: {{ $reg->session->name ?? 'N/A' }}

Class: {{ $reg->class->name ?? 'N/A' }}

Section: {{ $reg->section->name ?? 'N/A' }}

Group: {{ $reg->group->name ?? 'N/A' }}

Roll: {{ $reg->class_roll ?? 'N/A' }}

@php $fourthSubject = optional( $reg->student->studentSubjects->where('session_id', $reg->session_id)->first() ?->subject, )->name; @endphp @if ($fourthSubject)

4th Subject: {{ $fourthSubject }}

@endif @php $usesTransport = \App\Models\TransportStudentAssignment::where( 'student_id', $reg->student_id, ) ->where('session_id', $reg->session_id) ->where('status', 1) ->exists(); @endphp @if ($usesTransport)

Transport Use: Yes

@endif @if ($reg->note)

Short Note: {{ $reg->note }}

@endif
@if ($reg->student->studentNotes && $reg->student->studentNotes->count() > 0) @foreach ($reg->student->studentNotes as $note)
{{ $note->note }} ({{ $note->created_at->format('d M Y') }})
@endforeach @endif
{{-- Inactive Icon --}} @if ($reg->student->status == 0)

Status: Inactive

@elseif($reg->student->status == 2)

Status: TC

@endif
{{-- Footer Actions --}}
@canany(['Admin', 'previous data', 'Update Student', 'Student View']) @canany(['Admin', 'previous data', 'Update Student']) {{-- Edit Button --}} Edit @endcanany @canany(['Admin', 'previous data', 'Student View']) {{-- View Button --}} View @endcanany @endcanany {{-- Actions Dropdown --}}
@empty
No Students Found
@endforelse
{{-- Pagination --}} @if ($registrations->hasPages())
Showing {{ $registrations->firstItem() }} to {{ $registrations->lastItem() }} of {{ $registrations->total() }} students
{{ $registrations->withQueryString()->links('pagination::bootstrap-5') }}
@endif