@livewireStyles
{{-- ── SIDEBAR ──────────────────────────────── --}}
🧾
FacturaOS
Costa Rica · v1.0
{{-- Estado Hacienda --}}
Hacienda operativo
{{-- Alerta certificado próximo a vencer --}} @if(session('alerta_certificado'))
⚠️ Certificado vence en {{ session('dias_certificado') }} días
@endif
{{-- Navegación --}}
Principal
🏠
Dashboard
@can('facturacion', 'crear')
➕
Nueva factura
@endcan
📄
Documentos
@php $pendientes = auth()->user()->empresa->facturas()->where('estado_hacienda','contingencia')->count() @endphp @if($pendientes > 0)
{{ $pendientes }}
@endif
@can('gastos', 'ver')
📥
Gastos · XML
@endcan
Finanzas
@can('cxc', 'ver')
💰
Cuentas x cobrar
@php $vencidas = auth()->user()->empresa->facturas()->where('estado_cobro','vencido')->count() @endphp @if($vencidas > 0)
{{ $vencidas }}
@endif
@endcan @can('cxp', 'ver')
💳
Cuentas x pagar
@endcan @can('cierre', 'ver')
🧮
Cierre del día
@endcan
Inventario
@can('inventario', 'ver')
📦
Stock · bodegas
🏷️
Productos
🚚
Traslados
@endcan
Reportes
@can('reportes', 'ver')
📊
Ventas
🧾
Gastos
@endcan
Sistema
@can('perfiles', 'ver')
🔐
Perfiles de acceso
@endcan @can('configuracion', 'ver')
⚙️
Configuración
@endcan
{{-- Usuario --}}
{{-- ── MAIN ──────────────────────────────────── --}}
{{-- Topbar --}}
@yield('titulo', 'Dashboard')
🔍
🔔
{{ strtoupper(substr(auth()->user()->nombre ?? 'U', 0, 2)) }}
{{ auth()->user()->nombre }}
{{-- Contenido --}}
{{ $slot }}
@livewireScripts