@extends('layouts.admin') @section('title', 'Staff & Doctors') @section('page', 'staff') @section('content')

Staff & Doctor Directory

Manage doctors and staff accounts, roles, departments, status and access.

@can('create', App\Models\User::class) @endcan
{{ $stats['total'] }}Total Users
{{ $stats['doctors'] }}Doctors
{{ $stats['staff'] }}Staff & Admin
{{ $stats['active'] }}Active Accounts
All Doctors & Staff{{ $users->total() }}
@forelse($users as $u) @empty @endforelse
UserRoleDepartmentContactExperienceStatusActions
{{ strtoupper(\Illuminate\Support\Str::of($u->name)->explode(' ')->map(fn($x)=>$x[0]??'')->take(2)->join('')) }}
{{ $u->name }}{{ $u->email }}
{{ ucfirst($u->role) }} {{ $u->role==='doctor' ? ($u->doctorProfile?->department?->name ?? '—') : (config('clinic.staff_teams')[$u->team] ?? '—') }} {{ $u->phone ?? '—' }} {{ $u->role==='doctor' ? ($u->doctorProfile?->experience_years ?? 0).' yrs' : '—' }} {{ $u->status ? 'Active' : 'Inactive' }} @can('update', $u)
@csrf @method('PUT')
@endcan @can('delete', $u)
@csrf @method('DELETE')
@endcan
No users found
{{ $users->total() }} accounts
@endsection