{{-- Account side menu. A link only shows once its route exists, so pages can be added one at a time. --}} @php $menuItems = [ ['route' => 'account.dashboard', 'active' => 'account.dashboard', 'icon' => 'fa-th-large', 'label' => trans('site.account.menu.dashboard')], ['route' => 'clinic.my-bookings.index', 'active' => ['clinic.my-bookings.*', 'clinic.bookings.*', 'clinic.payments.*', 'clinic.reviews.*'], 'icon' => 'fa-calendar-check', 'label' => trans('site.account.menu.bookings')], ['route' => 'clinic.profile.medical.edit', 'active' => 'clinic.profile.medical.*', 'icon' => 'fa-notes-medical', 'label' => trans('site.account.menu.medical_file')], ['route' => 'clinic.medical-records.index', 'active' => 'clinic.medical-records.*', 'icon' => 'fa-file-medical-alt', 'label' => trans('site.account.menu.records')], ['route' => 'account.files', 'active' => 'account.files', 'icon' => 'fa-folder-open', 'label' => trans('site.account.menu.files')], ['route' => 'clinic.chat.inbox', 'active' => 'clinic.chat.*', 'icon' => 'fa-comments', 'label' => trans('site.account.menu.messages'), 'badge' => $accountUnread['messages']], ['route' => 'clinic.notifications.index', 'active' => 'clinic.notifications.*', 'icon' => 'fa-bell', 'label' => trans('site.account.menu.notifications'), 'badge' => $accountUnread['notifications']], ['route' => 'account.settings', 'active' => 'account.settings*', 'icon' => 'fa-user-cog', 'label' => trans('site.account.menu.settings')], ]; @endphp