@extends('web_site.account.layout') @section('account_title', trans('site.account.menu.dashboard')) @section('account_content')

{{ trans('site.account.hello', ['name' => auth('web')->user()->name]) }}

{{ trans('site.dashboard.subtitle') }}

{{ trans('site.account.book_now') }}
@unless ($hasMedicalFile)
{{ trans('site.dashboard.medical_missing') }} {{ trans('site.dashboard.complete_now') }}
@endunless
@foreach ([ ['upcoming', 'fa-calendar-check', route('clinic.my-bookings.index', ['status' => 'upcoming'])], ['completed', 'fa-user-check', route('clinic.my-bookings.index', ['status' => 'completed'])], ['records', 'fa-file-medical-alt', route('clinic.medical-records.index')], ['messages', 'fa-comments', Route::has('clinic.chat.inbox') ? route('clinic.chat.inbox') : null], ] as [$counterKey, $counterIcon, $counterUrl])
{{ $counts[$counterKey] }} {{ trans('site.dashboard.counters.'.$counterKey) }}
@endforeach
@if ($recentBookings->isNotEmpty()) {{ trans('site.dashboard.view_all') }} @endif
@if ($recentBookings->isEmpty())

{{ trans('site.dashboard.no_bookings') }}

@else
@foreach ($recentBookings as $booking)
@include('web_site.account.partials.booking-card', ['booking' => $booking])
@endforeach
@endif
@endsection