@php $establishment = $document->establishment; $customer = $document->customer; $invoice = $document->invoice; $document_base = ($document->note) ? $document->note : null; //$path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css'); $document_number = $document->series.'-'.str_pad($document->number, 8, '0', STR_PAD_LEFT); $accounts = \App\Models\Tenant\BankAccount::all(); if($document_base) { $affected_document_number = $document_base->affected_document->series.'-'.str_pad($document_base->affected_document->number, 8, '0', STR_PAD_LEFT); } else { $affected_document_number = null; } //calculate items $allowed_items = 35; $quantity_items = $document->items()->count(); $cycle_items = $allowed_items - ($quantity_items * 3); $total_weight = 0; @endphp
{{--{{ $guide->document_type_description }} | @else{{ $guide->document_type_id }} | @endif: | {{ $guide->number }} |
{{ $guide->series }} | - | {{ $guide->number }} |
{{$account->bank->description}} {{$account->currency_type->description}} N°: {{$account->number}} @if($account->cci) CCI: {{$account->cci}} @endif
@endforeach @endifORDEN DE COMPRA | : | {{ $document->purchase_order }} |
COTIZACIÓN | : | {{ $document->quotation->identifier }} |
DOC. AFECTADO | : | {{ $affected_document_number }} |
TIPO DE NOTA | : | {{ ($document_base->note_type === 'credit')?$document_base->note_credit_type->description:$document_base->note_debit_type->description}} |
DESCRIPCIÓN | : | {{ $document_base->note_description }} |
Documento Afectado: | --}} {{--{{ $document_base->affected_document->series }}-{{ $document_base->affected_document->number }} | --}} {{--Tipo de nota: | --}} {{--{{ ($document_base->note_type === 'credit')?$document_base->note_credit_type->description:$document_base->note_debit_type->description}} | --}} {{--
Descripción: | --}} {{--{{ $document_base->note_description }} | --}} {{--
@foreach(array_reverse( (array) $document->legends) as $row)
@if ($row->code == "1000")
Son: {{ $row->value }} {{ $document->currency_type->description }} @if (count((array) $document->legends)>1)Leyendas @endif @else{{$row->code}}: {{ $row->value }} @endif @endforeach@foreach($document->additional_information as $information) @if ($information) @if ($loop->first) Información adicional @endif {{ $information }} @endif @endforeach@if(in_array($document->document_type->id,['01','03'])) @foreach($accounts as $account) {{$account->bank->description}} {{$account->currency_type->description}} N°: {{$account->number}} @if($account->cci) CCI: {{$account->cci}} @endif @endforeach @endif |
Código Hash: {{ $document->hash }} |