@extends('layouts.app') @section('content')

Teachers on Duty

Add New
@if(session('success'))
{{ session('success') }}
@endif
@forelse($teachers as $index => $teacher) @empty @endforelse
# Name Email Phone ID Number Center Duty Date Actions
{{ $index + 1 }} {{ $teacher->name }} {{ $teacher->email ?? 'N/A' }} {{ $teacher->phone ?? 'N/A' }} {{ $teacher->id_number ?? 'N/A' }} {{ $teacher->center->name ?? '—' }} {{ $teacher->duty_date ? \Carbon\Carbon::parse($teacher->duty_date)->format('d-M-Y') : '-' }} Edit
@csrf @method('DELETE')
No Teachers on Duty found.
@endsection