@extends('web_site.account.layout')
@section('account_title', trans('site.account.menu.dashboard'))
@section('account_content')
@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])
@endforeach
@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