@php $establishment = $document->establishment; $customer = $document->customer; //$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); $document_type_driver = App\Models\Tenant\Catalogs\IdentityDocumentType::findOrFail($document->driver->identity_document_type_id); $document_type_dispatcher = App\Models\Tenant\Catalogs\IdentityDocumentType::findOrFail($document->dispatcher->identity_document_type_id); @endphp
{{--
|
@else
{{--![]() |
@endif
{{ $company->trade_name }}{{ 'RUC '.$company->number }}{{ ($establishment->address !== '-')? $establishment->address : '' }} {{ ($establishment->district_id !== '-')? ', '.$establishment->district->description : '' }} {{ ($establishment->province_id !== '-')? ', '.$establishment->province->description : '' }} {{ ($establishment->department_id !== '-')? '- '.$establishment->department->description : '' }}{{ ($establishment->email !== '-')? $establishment->email : '' }}{{ ($establishment->telephone !== '-')? $establishment->telephone : '' }} |
{{ $document->document_type->description }}{{ $document_number }} |
DESTINATARIO |
---|
Razón Social: {{ $customer->name }} |
RUC: {{ $customer->number }} {{ ($customer->district_id !== '-')? ', '.$customer->district->description : '' }} {{ ($customer->province_id !== '-')? ', '.$customer->province->description : '' }} {{ ($customer->department_id !== '-')? '- '.$customer->department->description : '' }} |
Dirección: {{ $customer->address }} |
ENVIO | |
---|---|
Fecha Emisión: {{ $document->date_of_issue->format('Y-m-d') }} | Fecha Inicio de Traslado: {{ $document->date_of_shipping->format('Y-m-d') }} |
Motivo Traslado: {{ $document->transfer_reason_type->description }} | Modalidad de Transporte: {{ $document->transport_mode_type->description }} |
Peso Bruto Total({{ $document->unit_type_id }}): {{ $document->total_weight }} | Número de Bultos: {{ $document->packages_number }} |
P.Partida: {{ $document->origin->location_id }} - {{ $document->origin->address }} | P.Llegada: {{ $document->delivery->location_id }} - {{ $document->delivery->address }} |
TRANSPORTE | |
---|---|
Nombre y/o razón social: {{ $document->dispatcher->name }} | {{ $document_type_dispatcher->description }}: {{ $document->dispatcher->number }} |
Número de placa del vehículo: {{ $document->license_plate }} | Conductor: {{ $document->driver->number }} |
Número de placa semirremolque: {{ $document->secondary_license_plates->semitrailer }} | @endif @endif @if($document->driver->license)Licencia del conductor: {{ $document->driver->license }} | @endif
Item | Código | Descripción | Unidad | Cantidad |
---|---|---|---|---|
{{ $loop->iteration }} | {{ $row->item->internal_id }} | {{ $row->item->description }} | {{ $row->item->unit_type_id }} | @if(((int)$row->quantity != $row->quantity)) {{ $row->quantity }} @else {{ number_format($row->quantity, 0) }} @endif |
OBSERVACIONES |
{{ $document->observations }} |
{{$document->reference_document->document_type->description}} |
{{ ($document->reference_document) ? $document->reference_document->number_full : "" }} |
{{$textDocumentType}} |
{{$series }}-{{$number}} |
{{$textDocumentType}} |
{{$series }}-{{$number}} |
ORDEN DE PEDIDO |
{{ ($document->order_form) ? $document->order_form->number_full : "" }} |