diff --git a/resources/views/components/layouts/app.blade.php b/resources/views/components/layouts/app.blade.php index bd000892..1c0bad54 100644 --- a/resources/views/components/layouts/app.blade.php +++ b/resources/views/components/layouts/app.blade.php @@ -1,412 +1,1179 @@ - - @include('partials.head') - +@include('partials.head') - -
- + + + + + +
+ + + + @endif -
-
+ +
+ + +
+ @if(Route::has('warehouses.index')) + + + {{ __('Warehouses') }} + + @endif + + @if(Route::has('warehouse-rules.index')) + + + {{ __('Validation Rules') }} + + @endif + + @if(auth()->user()?->isMpbaPlatformAdmin() && Route::has('platform.prices.index')) + + + {{ __('Prices') }} + + @endif + + @if(Route::has('configuration.index')) + + + {{ __('Configuration') }} + + @endif + + @if(Route::has('security.index')) + + + {{ __('Security') }} + + @endif + + @if(Route::has('audit.index')) + + + {{ __('Audit') }} + + @endif +
+
+ + @if(auth()->user()?->isMpbaPlatformAdmin()) + @php + $countriesRoute = Route::has('platform.countries.index') + ? 'platform.countries.index' + : (Route::has('countries.index') ? 'countries.index' : null); + @endphp + +
+ - - {{ __('Warehouse Management System') }} - +
+ @if(Route::has('platform.companies.index')) + + + {{ __('Companies') }} + + @endif - MPBA - + @if(Route::has('platform.licenses.index')) + + + {{ __('Licences') }} + + @endif -
- {{ $slot }} -
-
+ @if(Route::has('platform.payments.index')) + + + {{ __('Payments') }} + + @endif + + @if($countriesRoute) + + + {{ __('Countries') }} + + @endif +
+
+ @endif + + + - @persist('toast') - - @endpersist + + - @livewireScriptConfig - @fluxScripts +
+