@if( count($ventas) == 0)

No hay registro de ventas para el día seleccionado

@else

Resumen del dia seleccionado

{{ $ventas[0]->created_at }}


Servir/Llevar

@foreach ($ventas as $venta) @if ($venta->tipo != "Reparto") @endif @endforeach
Num comanda Detalle Tipo de pago Total Fecha y hora Borrar
{{ $venta->comanda }} {{ $venta->detalle }} {{ $venta->tipo_de_pago }} {{ $venta->total }} {{ $venta->created_at }} delete
Total @php $total = 0; for ( $i = 0 ; $i < count($ventas) ; $i++ ){ if ( $ventas[$i]->tipo != "Reparto"){ $total = $total + $ventas[$i]->total; } } @endphp $ {{ number_format($total, 0, ",", ".")}}

Reparto

@foreach ($ventas as $venta) @if ($venta->tipo == "Reparto") @endif @endforeach
Num comanda Detalle Tipo de pago Total Fecha y hora Borrar
{{ $venta->comanda }} {{ $venta->detalle }} {{ $venta->tipo_de_pago }} {{ $venta->total }} {{ $venta->created_at }} delete
Total @php $total = 0; for ( $i = 0 ; $i < count($ventas) ; $i++ ){ if ( $ventas[$i]->tipo == "Reparto"){ $total = $total + $ventas[$i]->total; } } @endphp $ {{ number_format($total, 0, ",", ".")}}
@endif