@foreach($document->additional_information as $information)
@if ($information)
OBSERVACIONES:
@if ($loop->first)
@endif
@if(\App\CoreFacturalo\Helpers\Template\TemplateHelper::canShowNewLineOnObservation())
{!! \App\CoreFacturalo\Helpers\Template\TemplateHelper::SetHtmlTag($information) !!}
@else
{{$information}}
@endif
@endif
@endforeach
@foreach(array_reverse( (array) $document->legends) as $row)
@if ($row->code == "1000")
@if (count((array) $document->legends)>1)
Leyenda
@endif
@else
{{$row->code}}: {{ $row->value }}
@inject('detractionType', 'App\Services\DetractionTypeService')
Bien o servicio: {{ $document->detraction->detraction_type_id }} - {{ $detractionType->getDetractionTypeDescription($document->detraction->detraction_type_id) }}
Medio de pago: {{ $detractionType->getPaymentMethodTypeDescription($document->detraction->payment_method_id) }}
Porcentaje de detracción: {{ $document->detraction->percentage }}%
Monto detracción:
@php
$amount_detraction = $document->detraction->amount;
// if($document->currency_type_id != "PEN"){
// $exchange_rate_sale = $document->exchange_rate_sale;
// $amount_detraction = $amount_detraction * $exchange_rate_sale;
// $amount_detraction = number_format($amount_detraction, 2, ".", "");
// }
@endphp
S/ {{ $amount_detraction }}
Nro. Cta Banco de la Nación: {{ $document->detraction->bank_account }}
@endif
@endforeach
Total Ope. Gravadas
{{ $document->currency_type->symbol }}
{{ number_format($document->total_taxed, 2) }}
Total Ope. Inafectas
{{ $document->currency_type->symbol }}
{{ number_format($document->total_unaffected, 2) }}
Total Ope. Exoneradas
{{ $document->currency_type->symbol }}
{{ number_format($document->total_exonerated, 2) }}
Total Descuentos
{{ $document->currency_type->symbol }}
{{ number_format($document->total_discount, 2) }}
Total IGV 18%
{{ $document->currency_type->symbol }}
{{ number_format($document->total_igv, 2) }}
Total ISC
{{ $document->currency_type->symbol }}
@if($document->total_isc > 0) {{ number_format($document->total_isc, 2) }} @else 0.00 @endif
TOTAL A PAGAR
{{ $document->currency_type->symbol }}
@if ($document->retention) {{ number_format($document->total-$document->retention->amount, 2) }} @else {{ number_format($document->total, 2) }} @endif