@extends('dashboard.doctor.layouts.master') @section('title', trans('doctor.nav.dashboard')) @section('toolbar')

{{ trans('doctor.nav.dashboard') }}

@endsection @section('content')
{{ trans('doctor.dashboard.today_bookings') }} {{ $todaysBookings->count() }}
{{ trans('doctor.dashboard.upcoming_bookings') }} {{ $upcomingCount }}
{{ trans('doctor.dashboard.total_patients') }} {{ $patientsCount }}
{{-- Bookings calendar (FullCalendar): click a booking to open the visit. --}}

{{ trans('doctor.dashboard.calendar_title') }}

@foreach (['pending' => 'warning', 'confirmed' => 'success', 'completed' => 'primary'] as $status => $color) {{ trans('doctor.schedule.statuses.' . $status) }} @endforeach

{{ trans('doctor.dashboard.today_title') }}

@if($todaysBookings->isEmpty())
{{ trans('doctor.dashboard.today_empty') }}
@else
@foreach($todaysBookings as $booking) @endforeach
{{ trans('doctor.schedule.time') }} {{ trans('doctor.patients.title') }} {{ trans('doctor.schedule.branch') }} {{ trans('doctor.schedule.status') }} {{ trans('clinic.common.actions') }}
{{ $booking->scheduled_at->format('H:i') }} {{ $booking->patient->name }} {{ $booking->branch->name }} @php $statusBadge = match($booking->status) { 'pending' => 'warning', 'confirmed' => 'success', 'completed' => 'info', 'cancelled' => 'danger', default => 'secondary', }; @endphp {{ trans('doctor.schedule.statuses.'.$booking->status) }} {{ trans('doctor.visits.open') }}
@endif
@endsection @section('js') @endsection