@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
@else
Iniciar
Sesión
@endauth
{{ auth()->user()->nombre }}
{{ auth()->user()->rol->nombre ?? 'Usuario' }}
JoinTrust
@yield('content')