{{ trans('clinic.home.today_table') }} @if ($todayBookings['total'] > $todayBookings['rows']->count()) {{ trans('clinic.home.showing_of', ['shown' => $todayBookings['rows']->count(), 'total' => $todayBookings['total']]) }} @endif

@can('clinic.bookings.view') @endcan
@forelse ($todayBookings['rows'] as $booking) @php $isPaid = in_array($booking->status, \App\Services\Clinic\Dashboard\ClinicDashboardService::PAID_STATUSES, true); @endphp @empty @endforelse
{{ trans('clinic.home.time') }} {{ trans('clinic.bookings.patient') }} {{ trans('clinic.doctors.title') }} {{ trans('clinic.home.clinic') }} {{ trans('clinic.home.type') }} {{ trans('clinic.home.amount') }} {{ trans('clinic.home.payment') }} {{ trans('clinic.bookings.status') }}
{{ $booking->scheduled_at->format('H:i') }}
{{ $booking->patient?->name }} @if ($booking->patient?->phone) {{ $booking->patient->phone }} @endif
{{ $booking->doctor?->name }} @if ($booking->doctor?->specialty) {{ $booking->doctor->specialty->name }} @endif
{{ $booking->clinicProfile?->name }} {{ trans('clinic.bookings.'.$booking->type) }} {{ number_format((float) $booking->price, 2) }} @if ($booking->status === 'cancelled') — @elseif ($isPaid) {{ $booking->payment?->status === 'paid' ? trans('clinic.home.paid_online') : trans('clinic.home.paid') }} @else {{ trans('clinic.home.unpaid') }} @endif {{ trans('clinic.bookings.statuses.'.$booking->status) }} @can('clinic.bookings.view') @endcan
{{ trans('clinic.home.no_today') }}