@if( count($ventas) == 0)
{{ $ventas[0]->created_at }}
Justificación | Detalle | Tipo de pago | Total | Fecha y hora | @foreach ($ventas as $venta)
---|---|---|---|---|
{{ $venta->justificacion }} | {{ $venta->detalle }} | {{ $venta->tipo_de_pago }} | {{ $venta->total }} | {{ $venta->created_at }} |
Total | @php $total = 0; for ( $i = 0 ; $i < count($ventas) ; $i++ ){ $total = $total + $ventas[$i]->total; } @endphp $ {{ number_format($total, 0, ",", ".")}} |