{{-- SIMPLE EXAMPLE: How to Implement Grouped Navigation Menus This file shows a simple, direct implementation of grouped navigation menus. Copy and adapt these examples to your navigation.blade.php file. --}} @if(auth()->user()->canViewPatients()) {{ __('Patients') }} @endif @if(auth()->user()->isFrontDesk() || auth()->user()->isNurse() || auth()->user()->isDeveloper() || auth()->user()->isCmd()) {{ __('Visits') }} @endif @if(auth()->user()->isDoctor() || auth()->user()->isNurse() || auth()->user()->isDeveloper() || auth()->user()->isCmd()) {{ __('Admissions') }} @endif @if(auth()->user()->isDoctor() || auth()->user()->isDeveloper() || auth()->user()->isCmd()) {{ __('Consultations') }} @endif @if(auth()->user()->isNurse() || auth()->user()->isDeveloper() || auth()->user()->isCmd()) {{ __('Nursing Station') }} {{ __('Medication Log') }} @endif @if(auth()->user()->isDoctor() || auth()->user()->isLab() || auth()->user()->isDeveloper() || auth()->user()->isCmd()) {{ __('Lab') }} @endif @if(auth()->user()->isDoctor() || auth()->user()->isNurse() || auth()->user()->isDeveloper() || auth()->user()->isCmd()) {{ __('Surgeries') }} @endif @if(auth()->user()->canViewPrescriptions()) {{ __('Prescriptions') }} @endif @if(auth()->user()->canViewBills()) @if(auth()->user()->canManageBills()) {{ __('Billing') }} @else {{ __('Billing') }} @endif @endif {{-- KEY POINTS: 1. Use component for menu categories 2. Use for the dropdown button 3. Use for dropdown menu items 4. Use for each menu item in the dropdown 5. Use wire:navigate for Livewire navigation 6. Use @if conditions to show/hide items based on user permissions 7. The dropdown automatically handles open/close with Alpine.js STYLING NOTES: - align="left" positions dropdown to the left - width="48" sets dropdown width (w-48 = 12rem) - SVG icon shows dropdown indicator (chevron down) - Button styling matches your existing nav-link styling --}}