@extends('adminlte::page') @section('title', 'Students') @section('content_header')

Students

@stop @section('content') @if(session('success')) @endif

Student Records

Add Student
@forelse($students as $student) @empty @endforelse
Photo Admission No Name Gender Class Dormitory Session Guardian Actions
@if($student->photo && Storage::exists('public/'.$student->photo)) Photo @else No photo @endif {{ $student->admission_no }} {{ $student->first_name }} {{ $student->last_name }} {{ ucfirst($student->gender) }} {{ $student->class?->name ?? '-' }} {{ $student->dormitory?->name ?? '-' }} {{ $student->academicSession?->name ?? '-' }} @if($student->guardian) {{ $student->guardian->first_name }} {{ $student->guardian->last_name }} @else - @endif
@csrf @method('DELETE')
No students found.
@stop