@php $isStaff = auth()->user()->hasRole('staff'); // List items $items = array( array( 'icon' => 'icons/duotune/communication/com014.svg', 'title' => 'Participants', 'number' => '#45789', 'path' => 'participants', ), array( 'icon' => 'icons/duotune/general/gen049.svg', 'title' => 'Incident Report', 'number' => '#84050', 'path' => 'incidentreport', ), array( 'icon' => 'icons/duotune/communication/com013.svg', 'title' => 'My Profile', 'number' => '#67945', 'path' => 'profile', ), array( 'icon' => 'icons/duotune/general/gen023.svg', 'title' => 'My Training', 'number' => '#84250', 'path' => 'training_category_staff', ), ); if (!$isStaff) { $items[] = array( 'icon' => 'icons/duotune/general/gen049.svg', 'title' => 'Users', 'number' => '#84250', 'path' => 'managers', ); $items[] = array( 'icon' => 'icons/duotune/abstract/abs027.svg', 'title' => 'Add/update Roster', 'number' => '#45690', 'path' => 'roster_management', ); } @endphp