@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) ? $document_base->affected_document->series.'-'.str_pad($document_base->affected_document->number, 8, '0', STR_PAD_LEFT) : $document_base->data_affected_document->series.'-'.str_pad($document_base->data_affected_document->number, 8, '0', STR_PAD_LEFT); } else { $affected_document_number = null; } $payments = $document->payments; // $document->load('reference_guides'); // $total_payment = $document->payments->sum('payment'); // $balance = ($document->total - $total_payment) - $document->payments->sum('change'); @endphp
{{ $document_number }}
|
Fecha de EmisiĆ³n: {{ $document->date_of_issue->format('Y-m-d') }} |
|
@php $district = \App\Models\Tenant\Catalogs\District::find($document->origin->location_id); @endphp {{ $document->origin->location_id }} - {{ $document->origin->address }}. {{ $district->description }}, {{ $district->province->description }}, {{ $district->province->department->description }}. | @php $district = \App\Models\Tenant\Catalogs\District::find($document->delivery->location_id); @endphp {{ $document->delivery->location_id }} - {{ $document->delivery->address }}. {{ $district->description }}, {{ $district->province->description }}, {{ $district->province->department->description }}. |
|
{{ $document->date_of_shipping->format('Y-m-d') }} |
{{ $customer->name }} |
|
{{ $customer->identity_document_type_id == 6 ? $customer->number : '' }} | {{ $customer->identity_document_type_id == 1 ? $customer->number : '' }} |
|
{{ $document->license_plate }}
{{ $document->driver->license }} |
{{ $document->dispatcher->name }}
{{ $document->dispatcher->number }} |