<x-layouts.app :title="__('Companies')" :showSidebar={{ $showSidebar }}>
    
    @if(session('success'))
        <div class="mb-4 p-4 bg-green-100 text-green-700 rounded-lg">
            {{ session('success') }}
        </div>
    @endif

    @yield('company-content')
  

    <!-- Sidebar menu -->
    @push('sidebar-menu')
    <flux:navlist variant="outline">
        <!-- Sección de Usuarios -->
        <flux:navlist.group :heading="__('Empresas')">
            <flux:navlist.item 
                icon="building-office-2" 
                :href="route('companies.index')" 
                wire:navigate
            >
                {{ __('List companies') }}
            </flux:navlist.item>
            
            <flux:navlist.item 
                icon="building-office" 
                :href="route('companies.create')" 
                wire:navigate
            >
                {{ __('Create new company') }}
            </flux:navlist.item>
        </flux:navlist.group>
        
        <flux:separator />
    </flux:navlist>

    @endpush
   
</x-layouts.app>
