@php
$previousPoliza = null;
$totalPolizasCobranza = 0;
$totalRecibos = 0;
$totalImporte = 0;
$totalPolizasCobranzaTotal = 0;
$totalRecibosTotal = 0;
$totalImporteTotal = 0;
@endphp
@foreach($data as $row)
@if($row->poliza != $previousPoliza)
@if($previousPoliza != null)
| Total |
Recibos: {{ $totalPolizasCobranza }} |
Recibos liquidados: {{ number_format($totalRecibos, 0, '.', ',') }} |
Importe: $ {{ number_format($totalImporte, 2, '.', ',') }} |
@endif
| {{ $row->poliza }} |
| Recibos en cobranza |
@php
$previousPoliza = $row->poliza;
$totalPolizasCobranza = 0;
$totalRecibos = 0;
$totalImporte = 0;
$totalRecibosTotal += $row->total_recibos_liquidados;
$totalImporteTotal += $row->importe_del_recibo1;
@endphp
@endif
| {{ $row->poliza }} |
{{ $row->num_de_recibo }} |
{{ \Carbon\Carbon::parse($row->fecha_de_movimiento1)->format('d/m/Y') }} |
{{ $row->nombre_del_contratante }} |
{{ $row->medio_de_pago }} |
{{ $row->forma_de_pago }} |
{{ $row->linea_de_negocio }} |
$ {{ number_format($row->importe_del_recibo1, 2, '.', ',') }} |
@php
$totalPolizasCobranza++;
$totalRecibos = $row->total_recibos_liquidados;
$totalImporte += $row->importe_del_recibo1;
$totalPolizasCobranzaTotal++;
@endphp
@endforeach
| Total |
Recibos: {{ $totalPolizasCobranza }} |
Recibos liquidados: {{ number_format($totalRecibos, 0, '.', ',') }} |
Importe: $ {{ number_format($totalImporte, 2, '.', ',') }} |
| Total |
Recibos: {{ number_format($totalPolizasCobranzaTotal, 0, '.', ',') }} |
Recibos liquidados: {{ number_format($totalRecibosTotal, 0, '.', ',') }} |
Importe: {{ number_format($totalImporteTotal, 2, '.', ',') }} |