@extends('layouts.main_dashboard.app') @section('title', __('dashboard.All Students')) @section('page_heading', __('dashboard.All Students')) @section('page_subtitle', app()->getLocale() === 'ar' ? 'إدارة بيانات الطلاب والبحث والوصول السريع إلى ملفاتهم من واجهة متسقة.' : 'Manage student records, search, and quick profile access from a consistent interface.') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; $filtersOpen = request()->hasAny(['keyword', 'school_class_id', 'gender', 'first_name', 'middle_name', 'last_name', 'registration_number', 'national_id', 'nationality', 'email', 'phone']); @endphp @section('content')
{{ $isArabic ? 'راجع بيانات الطلاب، طبّق الفلاتر، وانتقل مباشرة إلى الملف الشخصي أو التعديل.' : 'Review student records, apply filters, and jump directly to profile or editing.' }}
{{ $isArabic ? 'دليل الطلاب' : 'Students directory' }}
{{ __('dashboard.Search and filter student records quickly.') }}
{{ __('dashboard.Total Students') }}
{{ $students->total() }}
{{ __('dashboard.Classes') }}
{{ $schoolClasses->count() }}
{{ __('dashboard.Current Page') }}
{{ $students->currentPage() }}
{{ $isArabic ? 'داخل الصفحة' : 'Visible now' }}
{{ $students->count() }}
{{ $isArabic ? 'تصفية الطلاب' : 'Filter students' }}
{{ $isArabic ? 'افتح الفلاتر عند الحاجة للوصول السريع إلى الطالب المطلوب.' : 'Open filters when needed to narrow down the student list quickly.' }}
{{ $isArabic ? 'لا يوجد طلاب مطابقون للفلاتر الحالية.' : 'No students match the current filters.' }}
| {{ __('dashboard.Student') }} | {{ __('dashboard.Contact') }} | {{ __('dashboard.School Class') }} | {{ __('dashboard.ID') }} | {{ __('dashboard.Actions') }} |
|---|---|---|---|---|
|
|
|
| pluck('id')->implode(',') }}])" class="rounded border-surface-300 dark:border-surface-600 text-brand-600"> | {{ __('dashboard.Student') }} | {{ __('dashboard.Contact') }} | {{ __('dashboard.School Class') }} | {{ __('dashboard.ID') }} | {{ __('dashboard.Actions') }} |
|---|---|---|---|---|---|
| id }})" class="rounded border-surface-300 dark:border-surface-600 text-brand-600"> |
@if($student->avatar)
{{ $student->name }} {{ $student->registration_number ?: __('dashboard.No registration number') }} |
{{ $student->email }} {{ $student->phone ?: __('dashboard.Not Available') }} |
{{ $studentClass ? $studentClass->grade->stage->name . ' / ' . $studentClass->grade->name . ' / ' . $studentClass->name : __('dashboard.No Class Assigned') }} | #{{ $student->id }} |