@extends('hr.layout') @section('title', 'Teachers') @section('content') @php $teachers->appends(request()->except('page')); @endphp

Teachers

All teaching staff

{{ $teachers->total() }}

{{ request('search') ? 'Teachers found' : 'Total Teachers' }}

@forelse($teachers as $t)
{{ strtoupper(substr($t->first_name, 0, 1)) }}
ID: {{ $t->teacher_id ?? ($t->id ?? 'N/A') }}
{{--
{{ optional($contracts->get($t->id))->designation ?: '-' }}
--}}
View Profile
@empty

No Teachers Found

Try a different search term.

@endforelse
{{-- Pagination --}} @if ($teachers->hasPages())
Showing {{ $teachers->firstItem() }} to {{ $teachers->lastItem() }} of {{ $teachers->total() }} results
@endif
@endsection Not Found
404
Not Found