| {{ $num += 1 }} |
{{ \Carbon\Carbon::parse($reg->fecha)->format('d M Y')}} |
{{ str_pad($reg->factura, 10, 'FAC-000000', STR_PAD_LEFT) }} |
{{ $reg->cliente }} |
00000000{{ $reg->secuencia }}{{ str_pad($reg->ncf, 8, '0000', STR_PAD_LEFT) }} |
RD${{ number_format($reg->total - $reg->itbis, 2) }} |
RD${{ number_format($reg->itbis, 2) }} |
RD${{ number_format($reg->total, 2) }} |
@if($reg->saldo == 1)
C
@else
P
@endif
|
@endforeach
@php
$subto_col = $total_col - $itbis_col;
$totalglobal += $total_col;
$itbisglobal += $itbis_col;
@endphp
|
|
|
|
{{ strtoupper($g['vendedor']) }} |
RD${{ number_format($subto_col, 2) }} |
RD${{ number_format($itbis_col, 2) }} |
RD${{ number_format($total_col, 2) }} |
|
@php
// aqui reseteamos los valores a 0 de las siguientes variables
$num = 0;
$subto_col = 0;
$itbis_col = 0;
$total_col = 0;
@endphp