@php $establishment = $document->establishment; @endphp {!! '' !!} 2.0 1.0 {{ config('configuration.signature_uri') }} {{ config('configuration.signature_note') }} {{ $company->number }} trade_name }}]]> #{{ config('configuration.signature_uri') }} {{ $document->series }}-{{ $document->number }} {{ $document->date_of_issue->format('Y-m-d') }} {{ $document->time_of_issue }} {{ $company->number }} trade_name }}]]> {{ $establishment->district_id }} address }}]]> {{ $establishment->department->description }} {{ $establishment->province->description }} {{ $establishment->district->description }} {{ $establishment->country_id }} name }}]]> {{ $document->customer->number }} customer->name }}]]> {{ $document->perception_type_id }} {{ $document->perception_type->percentage }} @if($document->observation) observation }}]]> @endif {{ $document->total_perception }} {{ $document->total }} @foreach($document->documents as $doc) {{ $doc->series }}-{{ $doc->number }} {{ $doc->date_of_issue->format('Y-m-d') }} {{ $doc->total_document }} @if($doc->payments) @foreach($doc->payments as $payment) {{ $loop->iteration }} {{ $payment->total_payment }} {{ $payment->date_of_payment }} @endforeach @endif @if($doc->total_perception && $doc->total_payment && $doc->date_of_perception) {{ $doc->total_perception }} {{ $doc->date_of_perception->format('Y-m-d') }} {{ $doc->total_payment }} @if($doc->exchange_rate) {{ $doc->exchange_rate->currency_type_id_source }} {{ $doc->exchange_rate->currency_type_id_target }} {{ $doc->exchange_rate->factor }} {{ $doc->exchange_rate->date_of_exchange_rate }} @endif @endif @endforeach