@php
$menuItems = [
'patient' => ['icon' => 'tabler-users', 'label' => 'Patients', 'route' => 'patient'],
'appointment' => ['icon' => 'tabler-calendar-check', 'label' => 'Appointments', 'route' => 'appointment_report'],
'follow_ups' => ['icon' => 'tabler-report', 'label' => 'Follow Ups', 'route' => 'follow_ups'],
'product' => ['icon' => 'tabler-box', 'label' => 'Products', 'route' => 'product'],
'treatments' => ['icon' => 'tabler-vaccine', 'label' => 'Treatments', 'route' => 'treatments'],
'billing' => ['icon' => 'tabler-file-invoice', 'label' => 'Billing', 'route' => 'billing'],
'attendance' => ['icon' => 'tabler-calendar', 'label' => 'Attendance', 'route' => 'attendance'],
'doctor' => ['icon' => 'tabler-stethoscope', 'label' => 'Doctors', 'route' => 'doctor'],
'staff_list' => ['icon' => 'tabler-id-badge', 'label' => 'Staff', 'route' => 'staff_list'],
];
@endphp
@foreach($menu as $item)
@if(isset($menuItems[$item]))
@php $m = $menuItems[$item]; @endphp
@endif
@endforeach