@foreach($empresa as $value_empresa)
@endforeach
@foreach($data as $value)
NOMBRE DEL NEGOCIO
Ticket de venta #{{$value->id}}
{{$value->created_at}}
@php
$nombre = json_decode($value->productos);
$cantidad = json_decode($value->cantidad);
$total = json_decode($value->total);
$inicio = 1;
$count = count($nombre);
@endphp
| CANT |
PRODUCTO |
$$ |
@for( $i = 0; $i < count($nombre); $i ++ )
| {{$cantidad[$i]}} |
{{$nombre[$i]}} |
RD${{ number_format($total[$i], 2) }} |
@endfor
|
TOTAL
|
RD${{ number_format($value->total_final, 2) }} |
@endforeach