Liquidación de IVA
Empresa: {{$result['person']['field_name1']}}
CUIT: {{$result['person']['document'] }}
PERIODO: {{$result['settle']['period']['period_number']}}-{{$result['settle']['period']['year'] }}


VENTAS
@foreach($result['actividades'] as $actividades)
{{$actividades['actividad']['name']}}
{{ $result['origenes_ventas'][0]->descripcion }}
@foreach($result['ventas_debito_fiscal'] as $detail_por_actividad) @foreach($detail_por_actividad as $detail) @if( $detail->activity_id == $actividades['actividad']['id']) @endif @endforeach @endforeach
DESCRIPCION NETO GRAVADO IVA TOTAL
Alicuota de IVA {{ $detail->system_taxes->name }} ${{ number_format($detail->taxabled_amount,2,',','.') }} ${{ number_format($detail->iva_amount,2,',','.') }} ${{ number_format($detail->taxabled_amount + $detail->iva_amount,2,',','.') }}
{{ $result['origenes_ventas'][2]->descripcion }}
@foreach($result['ventas_alicuota_cero'] as $detail) @if($detail->activity_id == $actividades['actividad']['id']) @endif @endforeach
Subtotal No Gravado - Exento - No Alcanzado ${{ number_format($detail->taxabled_amount + $detail->iva_amount,2,',','.') }}
{{ $result['origenes_ventas'][3]->descripcion }}
@foreach($result['ventas_restitucion_cred_fiscal'] as $detail_por_actividad) @foreach($detail_por_actividad as $detail) @if( $detail->activity_id == $actividades['actividad']['id']) @endif @endforeach @endforeach
DESCRIPCION NETO GRAVADO IVA TOTAL
Alicuota de IVA {{ $detail->system_taxes->name }} ${{ number_format($detail->taxabled_amount,2,',','.') }} ${{ number_format($detail->iva_amount,2,',','.') }} ${{ number_format($detail->taxabled_amount + $detail->iva_amount,2,',','.') }}

@endforeach


COMPRAS
@foreach($result['iva_creditos_tipos'] as $iva_credito_tipo)
{{$iva_credito_tipo->descripcion}} @foreach($result['origenes_compras'] as $origenes)
{{$origenes->descripcion}}
@foreach($result['compras'] as $compras_agrupacion) @foreach($compras_agrupacion as $renglon) @if($renglon->iva_creditos_tipo_id == $iva_credito_tipo->id && $renglon->ordr == $origenes->id) @endif @endforeach @endforeach
DESCRIPCION NETO GRAVADO IVA TOTAL
Alicuota de IVA {{ $renglon->system_taxes->name }} ${{ number_format($renglon->taxabled_amount,2,',','.') }} ${{ number_format($renglon->iva_amount,2,',','.') }} ${{ number_format($renglon->taxabled_amount + $renglon->iva_amount,2,',','.') }}
@endforeach
@endforeach


TOTALES
@if($result['person']['person_config']['prorratear_iva']) @endif @if($result['person']['person_config']['itc']) @endif @if($result['person']['person_config']['itc']) @endif
TOTAL DEBITO ${{ number_format($result['totales']['total_debit'],2,',','.') }}
TOTAL CREDITO ${{ number_format($result['totales']['total_credit'],2,',','.') }}
CREDITO FISCAL COMPUTABLE ${{ number_format($result['totales']['credito_fiscal_comp'],2,',','.') }}
SALDO TECNICO ANTERIOR $ {{ number_format($result['totales']['previous_technical'],2,',','.') }}
SALDO TECNICO DEL PERIODO $ {{ number_format($result['totales']['technical_balance'],2,',','.') }}
SALDO TECNICO DEL PERIODO $ {{ number_format($result['totales']['technical_balance'],2,',','.') }}
SALDO DE LIBRE DISPONIBILIDAD ANTERIOR $ {{ number_format($result['totales']['previous_free_availability'],2,',','.') }}
RETENCIONES DEL SISTEMA $ {{ number_format($result['totales']['retention_amount'],2,',','.') }}
PERCEPCIONES DEL SISTEMA $ {{ number_format($result['totales']['perception_amount']) }}
COMPENSACIONES $ {{ number_format($result['totales']['compensation_amount']) }}
TOTAL DE PERCEP/RETENC $ {{ number_format($result['totales']['total_perceptions_retentions']) }}
SALDO DE LIBRE DISPONIBILIDAD DEL PERIODO $ {{ number_format($result['totales']['free_availability_balance']) }}
ITC - PAGO A CUENTA $ {{ number_format($result['totales']['pago_a_cuenta']) }}
A PAGAR $ {{ number_format($result['totales']['negative_amount']) }}
SALDO TECNICO $ {{ number_format($result['totales']['positive_amount']) }}
SALDO DE LIBRE DISPONIBILIDAD $ {{ number_format($result['totales']['total_free_availability']) }}
ITC - SALDO PAGO A CUENTA $ {{ number_format($result['totales']['saldo_pago_a_cuenta']) }}