{{ substr(Auth::user()->name ?? 'U', 0, 1) }}
{{ Auth::user()->name ?? 'Guest' }}
{{ ucfirst(Auth::user()->role ?? '') }}
{!! getSvgIcon('duotune/arrows/arr076.svg', 'svg-icon-2 svg-icon-gray-500') !!}
@csrf
@if(auth()->check()) @php $role = auth()->user()->role; $currentRoute = request()->route()->getName(); // Cache current route name for performance @endphp @if($role == 'admin')
{!! getSvgIcon('duotune/general/gen025.svg', 'svg-icon-2') !!} Dashboard
Manajemen
{!! getSvgIcon('duotune/communication/com013.svg', 'svg-icon-2') !!} Producers
{!! getSvgIcon('duotune/graphs/gra001.svg', 'svg-icon-2') !!} System Monitoring
{!! getSvgIcon('duotune/coding/cod001.svg', 'svg-icon-2') !!} Scraper Config
{!! getSvgIcon('duotune/technology/teh004.svg', 'svg-icon-2') !!} CGV Settings
{!! getSvgIcon('duotune/electronics/elc007.svg', 'svg-icon-2') !!} MTIX Settings
{!! getSvgIcon('duotune/abstract/abs027.svg', 'svg-icon-2') !!} Master Data
Cities
Theaters
Movies
Schedules
Seat Summaries
@elseif($role == 'producer')
{!! getSvgIcon('duotune/general/gen025.svg', 'svg-icon-2') !!} Dashboard
@endif @endif