🧾 COMANDA #{{ $comanda->id }} @if($comanda->mesa_numero) MESA {{ $comanda->mesa_numero }} @endif

{{ $comanda->created_at->format('d/m/Y H:i') }} • Cliente: {{ $comanda->user->name ?? 'Anónimo' }}

Estado Actual

@php $estadoConfig = [ 'sin_recibir' => ['color' => 'gray', 'icon' => 'inbox', 'label' => 'Sin Recibir'], 'recibida' => ['color' => 'yellow', 'icon' => 'receipt', 'label' => 'Recibida'], 'en_preparacion' => ['color' => 'orange', 'icon' => 'schedule', 'label' => 'En Preparación'], 'lista' => ['color' => 'green', 'icon' => 'check_circle', 'label' => 'Lista'], 'entregada' => ['color' => 'blue', 'icon' => 'done_all', 'label' => 'Entregada'], ]; $config = $estadoConfig[$comanda->estado_cocina] ?? $estadoConfig['sin_recibir']; @endphp {{ $config['icon'] }}

{{ $config['label'] }}

{{ ucfirst(str_replace('_', ' ', $comanda->estado_cocina)) }}

restaurant_menu Items de la Comanda

@forelse($comanda->items as $item)

{{ $item->product->nombre ?? 'Producto' }}

{{ $item->product->descripcion ?? '' }}

CANTIDAD

{{ $item->quantity }}

Unitario: L. {{ number_format($item->unit_price, 2) }} Total: L. {{ number_format($item->total, 2) }}
@empty

No hay items en esta comanda

@endforelse
@if($comanda->notas_cocina)

notes Notas Especiales

{{ $comanda->notas_cocina }}

@endif

TOTAL DE LA COMANDA

L. {{ number_format($comanda->total, 2) }}

@if($comanda->estado_cocina === 'sin_recibir') @elseif($comanda->estado_cocina === 'recibida') @elseif($comanda->estado_cocina === 'en_preparacion') @elseif($comanda->estado_cocina === 'lista') @endif