@if (Auth::user()->can('school.add'))
Add School
@endif
@if (Auth::user()->can('schools.view'))
| # |
School Name |
Address |
Contact |
Action |
@foreach ($schools as $key => $school)
| {{ $key + 1 }} |
{{ ucfirst($school->school_name) }} |
{{ $school->address ?? 'N/A' }} |
{{ $school->school_contact ?? 'N/A' }} |
|
@endforeach
@endif
@endsection