@extends('layouts.app') @section('content')
@include('layouts.left-menu')

Student List

@include('session-messages')

{{ $totalStudents }}

Total Students

{{ $maleCount }}

Male

{{ $femaleCount }}

Female

{{ $paidCount }}

Fully Paid

{{ $unpaidCount }}

With Balance Due
Filter Students
@if(request()->hasAny(['class_id', 'section_id', 'search', 'start_date', 'end_date', 'session_id']))
Clear All Filters @if($filter_session_id != $current_session_id) Viewing {{$all_sessions->firstWhere('id', $filter_session_id)->session_name ?? ''}} session @endif
@endif
Students {{ $studentList->total() }}
Showing {{ $studentList->firstItem() ?? 0 }} to {{ $studentList->lastItem() ?? 0 }} of {{ $studentList->total() }}
@forelse ($studentList as $student) @empty @endforelse
ID Card Photo Name Class Section Email Phone Actions
{{$student->id_card_number}} @if (isset($student->student->photo)) Photo @else
@endif
{{$student->student->first_name}} {{$student->student->last_name}} @if($student->student->gender == 'male') @else @endif {{$student->schoolClass->class_name ?? 'N/A'}} {{$student->section->section_name ?? 'N/A'}} {{$student->student->email}} {{$student->student->phone}}
@can('edit users') @endcan @if(auth()->user()->role == 'admin')
@csrf @method('DELETE')
@endif

No students found

@if(request()->hasAny(['class_id', 'section_id', 'search']))

Try adjusting your filters

@endif
{{ $studentList->links() }}
@include('layouts.footer')
@endsection