@extends('admin.layouts.app') @section('title', 'Hospital Departments & Clinical Units') @section('content')
Clinical Infrastructure

Hospital Departments

Configure clinical divisions, specialty departments, inpatient wards, and assign medical heads.

Total Departments

{{ $stats['total'] }}

Active Units

{{ $stats['active'] }}

Total Staff Assigned

{{ $stats['total_staff'] }}

Registered Departments

@if($departments->isEmpty())

No departments found

Add your first clinical department to organize staff and services.

@else
@foreach($departments as $department) @endforeach
Code & Department Name Head of Department Location / Floor Contact Phone Staff Assigned Status Actions
{{ $department->code }}

{{ $department->name }}

@if($department->description)

{{ $department->description }}

@endif

{{ $department->head_of_department ?? 'Not Assigned' }}

{{ $department->location ?? 'Main Building' }}

{{ $department->contact_phone ?? 'N/A' }}

{{ $department->staff_count }} Staff
@csrf @method('PATCH')
@csrf @method('DELETE')
@if($departments->hasPages())
{{ $departments->links() }}
@endif @endif
@endsection