@extends('layouts.app') @section('title', 'All Students - Assistant Director') @section('content')

👥 All Students Panel

View and manage all students in the institute

{{ $stats['total_students'] }}
Total Students
{{ $stats['students_with_pending_leaves'] }}
Students with Pending Leaves
{{ $stats['active_leave_requests'] }}
Active Leave Requests
{{ $stats['approved_this_month'] }}
Approved This Month

📚 All Institute Students

@if($allStudents->count() > 0)
@forelse($allStudents as $student) @php $pendingCount = $student->leaveRequests()->where('status', 'pending')->count(); $totalLeaves = $student->leaveRequests()->count(); $tradeName = $student->trade ?? 'N/A'; @endphp @empty @endforelse
Student Name Roll No Trade Shift Gender Contact Pending Leaves Status Action
{{ Str::limit($student->user->name, 20) }} {{ $student->roll_no }} {{ Str::limit($tradeName, 12) }} {{ ucfirst($student->shift ?? '-') }} {{ ucfirst($student->gender ?? '-') }} {{ $student->mobile ?? '-' }} @if($pendingCount > 0) {{ $pendingCount }} Pending @else None @endif Active
@if($totalLeaves > 0) View Leave Requests @else - @endif
No students found
@else

No students found in the institute

@endif

⚡ Quick Actions

@endsection