{{ __('Hospital Management Dashboard') }}

Welcome back, {{ auth()->user()->name }}!

@if(auth()->user()->canViewPatients())

Quick Patient Search

Search by name, ID, email, or phone number

View All
@endif

Today's Schedule

{{ \Carbon\Carbon::now('+01:00')->format('l, F j, Y') }}

@php $todayAppointments = \App\Models\Appointment::with(['patient', 'doctor']) ->whereDate('appointment_date', today()) ->orderBy('appointment_time') ->limit(5) ->get() ->filter(function($apt) { // Filter out appointments with null patient relationships (should use patient_name accessor instead) return true; }); @endphp @if($todayAppointments->count() > 0)
@foreach($todayAppointments as $appointment)
{{ \Carbon\Carbon::parse($appointment->appointment_time)->format('H:i') }}

{{ $appointment->patient_name }}

Dr. {{ $appointment->doctor->name }} • {{ ucfirst(str_replace('_', ' ', $appointment->type)) }}

{{ ucfirst(str_replace('_', ' ', $appointment->status)) }}
@endforeach
@else

No appointments today

You have a free schedule today.

@endif

Pending Tasks

Items requiring attention

Quick Actions

Common tasks and shortcuts

@if(auth()->user()->canManagePatients()) New Patient @endif @if(auth()->user()->canManageAppointments()) Schedule @endif @if(auth()->user()->canManagePrescriptions()) Prescribe @endif @if(auth()->user()->canManageBills()) Create Bill @endif @if(auth()->user()->canViewConsultations()) Consultation @endif @if(auth()->user()->canAccessAI()) AI Tools @endif