@include('partials.head') @php /* * Match the Core WMS support navigation strategy: * detect routes rather than hiding navigation behind role checks. */ $helpdeskEnabled = Route::has('helpdesk.index') || Route::has('helpdesk.tickets.index'); $helpdeskSettingsRoute = Route::has('helpdesk.settings') ? 'helpdesk.settings' : (Route::has('helpdesk.settings.index') ? 'helpdesk.settings.index' : null); $helpdeskActive = request()->routeIs('helpdesk.*'); @endphp {{ __('Dashboard') }} @if ($helpdeskEnabled)
{{-- Core WMS uses Support as the selected parent group. --}} @if (Route::has('helpdesk.index')) {{ __('Support') }} @else
{{ __('Support') }}
@endif
@if (Route::has('helpdesk.tickets.index')) {{ __('Tickets') }} @endif @if (Route::has('helpdesk.kanban')) {{ __('Kanban') }} @endif @if ($helpdeskSettingsRoute) {{ __('Settings') }} @endif
@endif
{{ auth()->user()->name }} {{ auth()->user()->email }}
@if (Route::has('helpdesk.index')) {{ __('Support') }} @endif @if ($helpdeskSettingsRoute) {{ __('Helpdesk Settings') }} @endif @if (Route::has('profile.edit')) {{ __('Profile') }} @endif
@csrf {{ __('Log out') }}
{{ $slot }} @persist('toast') @endpersist @fluxScripts