@extends('layouts.app') @section('title', __('Dashboard').' โ€” '.$tenant->name) @section('content') @php($tz = \App\Support\ClinicTime::timezone())

{{ __('Dashboard') }}

+ {{ __('New appointment') }}
@if($subscription?->onTrial())
๐ŸŽ‰ {{ __('Trial') }} โ€” {{ $subscription->daysLeft() }} {{ __('days left') }} ยท {{ __('Billing') }}
@endif
@foreach([ [__("Today's appointments"), $kpis['today_total'], '๐Ÿ“…'], [__('Completed today'), $kpis['today_completed'], 'โœ…'], [__('This week'), $kpis['week_total'], '๐Ÿ—“'], [__('No-shows this week'), $kpis['no_shows_week'], '๐Ÿšซ'], [__('New patients this week'), $kpis['new_patients_week'], 'โœจ'], [__('Total patients'), $kpis['patients_total'], '๐Ÿ‘ฅ'], ] as [$label, $value, $icon])
{{ $icon }} {{ $label }}
{{ $value }}
@endforeach
@if($money)
@foreach([ [__('Due today'), $money['due_today'], '#0EA5E9'], [__('Due this week'), $money['due_week'], '#8B5CF6'], [__('Overdue'), $money['overdue'], '#EF4444'], [__('Total outstanding'), $money['total_outstanding'], '#F5A524'], ] as $w)
{{ $w[0] }}
{{ number_format($w[1]) }} IQD
@endforeach
@endif

{{ __('Appointments โ€” last 14 days') }}

{{ __("Today's list") }}

@forelse($todays as $a) @empty @endforelse
{{ $a->starts_at->setTimezone($tz)->format('H:i') }} {{ $a->patient->full_name }}
{{ $a->dentist->name }}
{{ $a->status->label() }}
{{ __('No appointments today.') }}
@push('page-scripts') @endpush @endsection