@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->supplier->number }} supplier->name }}]]> {{ $document->retention_type_id }} {{ $document->retention_type->percentage }} @if($document->observations) observations }}]]> @endif {{ $document->total_retention }} {{ $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_retention && $doc->total_payment && $doc->date_of_retention) {{ $doc->total_retention }} {{ $doc->date_of_retention->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