Liquidación de IIBB
Empresa: {{ $person->field_name1 }}
CUIT: {{ $person->document }}
PERIODO: {{ $period->code ?? '' }}

@foreach($registros as $registro) @endforeach
JURISDICCION IMPUESTO IVA SALDO A FAVOR ANT SIRCREB SIRTAC RETENCIONES PERCEPCIONES A PAGAR A FAVOR
{{ strtoupper($registro->zone->name) }} $ {{ number_format($registro->impuesto, 2, ',', '.') }} $ {{ number_format($registro->iva, 2, ',', '.') }} $ {{ number_format($registro->saldo_a_favor_ant, 2, ',', '.') }} $ {{ number_format($registro->sircreb, 2, ',', '.') }} $ {{ number_format($registro->sirtac, 2, ',', '.') }} $ {{ number_format($registro->retenciones, 2, ',', '.') }} $ {{ number_format($registro->percepciones, 2, ',', '.') }} $ {{ number_format($registro->a_pagar, 2, ',', '.') }} $ {{ number_format($registro->a_favor, 2, ',', '.') }}
TOTAL $ {{ number_format($registros->sum('impuesto'), 2, ',', '.') }} $ {{ number_format($registros->sum('iva'), 2, ',', '.') }} $ {{ number_format($registros->sum('saldo_a_favor_ant'), 2, ',', '.') }} $ {{ number_format($registros->sum('sircreb'), 2, ',', '.') }} $ {{ number_format($registros->sum('sirtac'), 2, ',', '.') }} $ {{ number_format($registros->sum('retenciones'), 2, ',', '.') }} $ {{ number_format($registros->sum('percepciones'), 2, ',', '.') }} $ {{ number_format($registros->sum('a_pagar'), 2, ',', '.') }} $ {{ number_format($registros->sum('a_favor'), 2, ',', '.') }}

Detalle por actividad
@foreach($registros as $registro) @foreach($registro->details->where('zone_id', $registro->zone_id) as $detail) @endforeach @endforeach
JURISDICCION ACTIVIDAD COEF ALICUOTA BASE IMP. IMPUESTO
{{ strtoupper($registro->zone->name) }} {{ ($detail->actividad->codigo_cm ? $detail->actividad->codigo_cm . ' - ' : '') . $detail->actividad->name }} {{ $detail->coef }} {{ $detail->aliquot }} $ {{ number_format($detail->base_amount, 2, ',', '.') }} $ {{ number_format($detail->tax_amount, 2, ',', '.') }}