{{-- Support Portal --}} @php $helpdeskEnabled = Route::has('helpdesk.index') || Route::has('helpdesk.tickets.index'); $documentationEnabled = Route::has('documentation.index') || Route::has('documentation.documents.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; $documentationDashboardRoute = Route::has('documentation.index') ? 'documentation.index' : (Route::has('documentation.documents.index') ? 'documentation.documents.index' : null); $documentationCreateRoute = Route::has('documentation.documents.create') ? 'documentation.documents.create' : null; $documentationCategoriesRoute = Route::has('documentation.categories.index') ? 'documentation.categories.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($helpdeskGitRoute) {{ __('Git Tracking') }} @endif @if($helpdeskWorkflowRoute) {{ __('Workflow Emails') }} @endif @if($helpdeskSettingsRoute) {{ __('Settings') }} @endif @if($documentationDashboardRoute) {{ __('Documentation') }} @endif @if($documentationCreateRoute) {{ __('New Document') }} @endif @if($documentationCategoriesRoute) {{ __('Categories') }} @endif
@endif {{-- Support Portal end --}}