mejoras
This commit is contained in:
@@ -12,15 +12,14 @@
|
||||
</a>
|
||||
|
||||
<flux:navbar class="-mb-px max-lg:hidden">
|
||||
<flux:navbar.item icon="layout-grid" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>
|
||||
{{ __('Dashboard') }}
|
||||
<flux:navbar.item icon="home" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>
|
||||
{{ __('Inicio') }}
|
||||
</flux:navbar.item>
|
||||
</flux:navbar>
|
||||
|
||||
<flux:navbar class="-mb-px max-lg:hidden">
|
||||
<flux:navbar.item icon="layout-grid" :href="route('dashboard')" :current="request()->routeIs('dashboard')" wire:navigate>
|
||||
{{ __('User') }}
|
||||
|
||||
<flux:navbar.item icon="link" :href="route('projects.index')" :current="request()->routeIs('dashboard')" wire:navigate>
|
||||
{{ __('Projects') }}
|
||||
</flux:navbar.item>
|
||||
|
||||
</flux:navbar>
|
||||
|
||||
<flux:spacer />
|
||||
@@ -123,8 +122,24 @@
|
||||
</flux:navlist>
|
||||
</flux:sidebar>
|
||||
|
||||
{{ $slot }}
|
||||
<!-- Contenedor principal con sidebar condicional -->
|
||||
<div class="flex flex-1">
|
||||
@if($showSidebar)
|
||||
<!-- Desktop Sidebar -->
|
||||
<flux:sidebar class="hidden lg:block w-64 shrink-0 border-e border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-900">
|
||||
{{ $sidebar ?? '' }} <!-- Aquí se inyectará el contenido -->
|
||||
@stack('sidebar-menu')
|
||||
</flux:sidebar>
|
||||
@endif
|
||||
|
||||
<!-- Contenido principal -->
|
||||
<main class="flex-1 overflow-auto">
|
||||
{{ $slot }}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
|
||||
@fluxScripts
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user