@vite(['resources/css/app.css', 'resources/js/app.js']) @stack('styles') @if(session('success'))
@endif @if(session('error'))
@endif
@auth @endauth @auth @endauth
@if(count($headerStats['urgent_orders']) == 0)
@endif
@if(count($headerStats['urgent_orders']) > 0) @foreach($headerStats['urgent_orders'] as $order)
ALERTA DESPACHO INMEDIATO: Pedido #{{ $order->id }} - {{ $order->destinatario_final_nombre }} (Límite: {{ \Carbon\Carbon::parse($order->hora_preferente_entrega)->format('h:i A') }})
@endforeach @else @if(count($headerStats['low_stock']) > 0) @foreach($headerStats['low_stock'] as $item)
Stock Bajo: {{ $item->nombre }} ({{ $item->stock_actual }} restantes)
@endforeach @endif
Ventas Hoy: ${{ $headerStats['sales_today'] }}
@if($headerStats['attention_count'] > 0)
{{ $headerStats['attention_count'] }} Pedidos requieren atención
@endif
Último Pedido: {{ $headerStats['last_order'] }}
Sistema Operativo - JoinTrust
@endif
@auth
{{ auth()->user()->nombre }}
{{ auth()->user()->nombre }} {{ auth()->user()->rol->nombre ?? 'Usuario' }}
@else Iniciar Sesión @endauth
JoinTrust
@yield('content')
@stack('scripts')

@auth @endauth