@foreach ($data as $key => $row) @endforeach
PÁGINA {{ $page }}

FECHA

No. DE EVENTO

No. DE ASIENTO

DOCUMENTO FUENTE

PÓLIZA

CÓDIGO Y NOMBRE DE LA CUENTA

DESCRIPCIÓN

MONTO

CONTABLE

PRESUPUESTAL

DEBE

HABER

CÓDIGO

NOMBRE

CÓDIGO

NOMBRE

{{ $row['policy_date'] }} {{ $row['event_code'] }} {{ $row['count'] }} {{ $row['polizable_type'] }} {{ $row['invoice'] }} {{ str_starts_with($row['account_code'], '8') ? '' : $row['account_code'] }}
{{ str_starts_with($row['account_code'], '8') ? '' : $row['account_description'] }}
{{ str_starts_with($row['account_code'], '8') ? $row['account_code'] : '' }}
{{ str_starts_with($row['account_code'], '8') ? $row['account_description'] : '' }}
{{ $row['reference'] }}
${{ number_format($row['balance'] == 2 ? $row['amount'] : 0, 2) }} ${{ number_format($row['balance'] == 3 ? $row['amount'] : 0, 2) }}
SUBTOTAL ${{ number_format($total_cargo, 2) }} ${{ number_format($total_abono, 2) }}