@if(count($mesas))
@foreach ($mesas as $key => $mesa)
@endif
@endforeach
@endif
{{ $mesa->nombre }}
@if(count($mesa->comandas($evento->id)))
@if(count($mesa->comandasCerradas($evento->id)))
@foreach ($mesa->comandasCerradasGrupos($evento->id) as $keyHash => $grupo)
@endforeach @endif @if(count($mesa->comandas($evento->id)))
| Hora | Por | Producto | Descuento | Cantidad | Subtotal | |
|---|---|---|---|---|---|---|
| {{ date('H:i', strtotime($comanda->created_at)) }} | {{ @$comanda->user->name }} | {{ $comanda->producto->nombre }} | @if($comanda->descuento){{ $comanda->descuento * 100 }}% | @else@endif | {{ $comanda->cantidad }} | ${{ number_format($comanda->total, 0, '', '.') }} |
| Total | {{ @$comanda->medio->nombre }} | {{ $mesa->cantidadGrupo($keyHash) }} | ${{ number_format($mesa->totalGrupo($keyHash), 0, '', '.') }} |
@endforeach @endif @if(count($mesa->comandas($evento->id)))