@extends('layouts.admin') @section('page_kicker', 'Workforce') @section('page_title', 'Doctor management') @section('content')

Create hospital doctor

Onboard a new provider account.

@csrf
@if(isset($departments) && $departments->isNotEmpty())

Departments (for auto-assignment routing)

@foreach($departments as $dept) @endforeach
@endif

Set doctor availability

Weekly recurring window for a doctor.

@csrf

Doctor performance

Appointments and distinct patients seen.

@foreach($doctors as $doctor) @endforeach
Doctor Specialization Appointments handled Patients treated
{{ $doctor->user->name ?? 'N/A' }} {{ $doctor->specialization }} {{ \App\Models\HospitalAppointment::where('hospital_id', auth()->user()->hospital_id)->where('doctor_id', $doctor->user_id)->count() }} {{ \App\Models\HospitalAppointment::where('hospital_id', auth()->user()->hospital_id)->where('doctor_id', $doctor->user_id)->distinct('patient_id')->count('patient_id') }}
{{ $doctors->links() }}
@endsection