@extends('layouts.app') @section('title', 'Students') @section('crumbs') Dashboard/Students @endsection @section('content')
Reset
@can('viewContact', $students->first() ?? new \App\Models\People\Student) @endcan @can('viewAny', \App\Models\People\Guardian::class) @endcan @forelse ($students as $student) @can('viewContact', $student) @endcan @can('viewAny', \App\Models\People\Guardian::class) @endcan @empty @endforelse
Adm. No Name GenderPhoneClassGuardianStatus Actions
{{ $student->admission_no }} {{ $student->full_name }} @can('viewContact', $student)
Born {{ $student->date_of_birth?->format('d M Y') }}
@endcan
{{ ucfirst($student->gender) }}{{ $student->phone ?? '—' }} {{ $student->enrollments->last()?->schoolClass?->name ?? '—' }} @if ($student->enrollments->last()?->section) Sec {{ $student->enrollments->last()->section->name }} @endif {{ $student->guardians->first()?->full_name ?? '—' }} {{ ucfirst($student->status) }} View @can('update', $student) Edit @endcan
No students match your filters.
{{ $students->links() }}
@endsection