@if( count($array[2]) == 0)
{{ $array[0] }} - {{ $array[1] }}
NĂºmero de boleta | Detalle de venta | Tipo de pago | Hora | Total | @foreach ($array[2] as $venta)
---|---|---|---|---|
{{ $venta->num_boleta }} | {{ $venta->detalle }} | {{ $venta->tipo_de_pago }} | {{ $venta->created_at }} | ${{ number_format($venta->total, 0, ",", ".") }} |
Total | @php $total = 0; for ( $i = 0 ; $i < count($array[2]) ; $i++ ){ $total = $total + $array[2][$i]->total; } @endphp $ {{ number_format($total, 0, ",", ".")}} |