@props([ 'active' => 'dashboard', ]) @php $items = [ ['key' => 'dashboard', 'label' => 'Beranda', 'icon' => 'grid', 'href' => route('dashboard')], ['key' => 'monitoring', 'label' => 'Monitoring', 'icon' => 'iv', 'href' => route('monitoring')], ['key' => 'master-data', 'label' => 'Pasien', 'icon' => 'id-card', 'href' => route('master-data.index')], ['key' => 'patient-input', 'label' => 'Input', 'icon' => 'user-plus', 'href' => route('patients.create')], ['key' => 'history', 'label' => 'Laporan', 'icon' => 'history', 'href' => route('monitoring.history')], ]; if (auth()->check() && auth()->user()->can('use-operator-panel')) { $items[] = ['key' => 'operator', 'label' => 'Operator', 'icon' => 'settings', 'href' => route('operator-panel.index')]; } @endphp