change to menu system to make unified menu

This commit is contained in:
Mark Gregory
2026-06-30 16:58:36 +01:00
parent fa01a01de4
commit 37fca9803b
8 changed files with 88 additions and 3273 deletions
@@ -1,5 +1,9 @@
@props(['title' => null])
<x-layouts.app :title="$title ?? __('Helpdesk')">
{{ $slot }}
</x-layouts.app>
{{--
Helpdesk compatibility component.
Do not call <x-layouts.app> from here: when Laravel resolves this component path first,
that creates an infinite component loop. Delegate directly to the central WMS layout instead.
--}}
@include('layouts.app.sidebar')
File diff suppressed because it is too large Load Diff
@@ -1,16 +0,0 @@
@php
$helpdeskEnabled = Route::has('helpdesk.index');
if (class_exists(\Nwidart\Modules\Facades\Module::class)) {
$helpdeskModule = \Nwidart\Modules\Facades\Module::find('Helpdesk');
$helpdeskEnabled = $helpdeskModule !== null && $helpdeskModule->isEnabled() && Route::has('helpdesk.index');
}
@endphp
@if ($helpdeskEnabled)
<a href="{{ route('helpdesk.index') }}" wire:navigate
class="wms-sidebar-link @if (request()->routeIs('helpdesk.*')) is-active @endif" title="{{ __('Support') }}">
<i class="fa-solid fa-headset wms-sidebar-icon" aria-hidden="true"></i>
<span data-wms-sidebar-label>{{ __('Support') }}</span>
</a>
@endif