@extends('admin.layout.app') @section('title', __('admin.teachers')) @section('body')

{{ __('admin.teachers') }}

{{ __('admin.users_with_role') }} {{ __('admin.teacher_2') }}
{{ __('admin.new_teacher') }}
@if(session('msg'))
{{ session('msg') }}
@endif
{{ __('admin.reset') }}
@forelse($teachers as $t) @empty @endforelse
{{ __('admin.id') }} {{ __('admin.name') }} {{ __('admin.email') }} {{ __('admin.phone') }} {{ __('admin.department') }} {{ __('admin.created_2') }} {{ __('admin.actions') }}
#{{ $t->id }}
{{ $t->name }}
@if($t->father_name) Son of {{ $t->father_name }} @endif
{{ $t->email }} {{ $t->phone ?? '—' }} {{ $t->department ?? '—' }} {{ $t->created_at?->format('Y-m-d') }}
@csrf @method('DELETE')

{{ __('admin.no_teachers_found') }}

{{ $teachers->withQueryString()->links('pagination::bootstrap-4') }}
@endsection