{{-- Support Portal + Documentation --}} @php $helpdeskEnabled = Route::has('helpdesk.index') || Route::has('helpdesk.tickets.index'); $documentationEnabled = Route::has('documentation.documents.index') || Route::has('documentation.categories.index'); $helpdeskSettingsRoute = Route::has('helpdesk.settings') ? 'helpdesk.settings' : (Route::has('helpdesk.settings.index') ? 'helpdesk.settings.index' : null); $helpdeskKanbanRoute = Route::has('helpdesk.kanban') ? 'helpdesk.kanban' : (Route::has('helpdesk.kanban.index') ? 'helpdesk.kanban.index' : null); $helpdeskGitRoute = Route::has('helpdesk.git.index') ? 'helpdesk.git.index' : null; $helpdeskWorkflowRoute = Route::has('helpdesk.workflow-templates.index') ? 'helpdesk.workflow-templates.index' : null; @endphp @if($helpdeskEnabled || $documentationEnabled)
{{ __('Support') }}
@if(Route::has('helpdesk.index')) {{ __('Dashboard') }} @endif @if(Route::has('helpdesk.tickets.index')) {{ __('Tickets') }} @endif @if(Route::has('helpdesk.tickets.create')) {{ __('Raise Ticket') }} @endif @if($helpdeskKanbanRoute) {{ __('Kanban') }} @endif @if($documentationEnabled) {{ __('Documentation') }} @endif @if(Route::has('documentation.documents.create')) {{ __('New Document') }} @endif @if(Route::has('documentation.categories.index')) {{ __('Categories') }} @endif @if($helpdeskGitRoute) {{ __('Git Tracking') }} @endif @if($helpdeskWorkflowRoute) {{ __('Workflow Emails') }} @endif @if($helpdeskSettingsRoute) {{ __('Settings') }} @endif
@endif {{-- Support Portal + Documentation end --}}