@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 {{--{{ $document_number }}--}} {{----}} @if($company->logo) @else @endif
logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{$company->name}}" alt="{{ $company->name }}" class="company_logo" style="max-width: 300px"> {{----}}

{{ $company->name }}

{{ ($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 : '' }}

{{ 'RUC '.$company->number }}

{{ $document->document_type->description }}

{{ $document_number }}

Punto de Partida _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Punto de LLegada _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Nombre o razon social del Destinatario
Fecha de Inicio de traslado _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Costo Minimo _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ RUC _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ DNI _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
UNIDAD DE TRANSPORTES Y CONDUCTOR EMPRESA DE TRANSPORTES
Marca y numero de placa _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Razon social _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
N de constancia de inscripcion _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
N (s) de Licencia (s) de conducir _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ RUC _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Código Descripción Cantidad UNIDAD DE MEDIDA PESO TOTAL
Tipo y Numero del Comprobante de Pago:
MOTIVO DEL TRASLADO [ ] Venta [ ] Consignacion [ ] Traslado de bienes para transformacion [ ] Traslado por zona primaria [ ] Exhibicion
[ ] Venta sujeta a confirmar [ ] Devolucion [ ] Recojo de bienes [ ] Importacion [ ] Entrega de uso
[ ] Compra [ ] Traslado entre establecimientos de la misma empresa [ ] Traslado por emisor itinerante de comprobante de pago [ ] Exportacion [ ] Demostracion
[ ] Otros _______________________________________________________________________________ [ ] Venta con entrega a terceros [ ] Traslado para propia utilizacion
@if ($document->reference_document) @if($document->reference_document) @endif
{{$document->reference_document->document_type->description}}
{{ ($document->reference_document) ? $document->reference_document->number_full : "" }}
@endif @if ($document->data_affected_document) @php $document_data_affected_document = $document->data_affected_document; $number = (property_exists($document_data_affected_document,'number'))?$document_data_affected_document->number:null; $series = (property_exists($document_data_affected_document,'series'))?$document_data_affected_document->series:null; $document_type_id = (property_exists($document_data_affected_document,'document_type_id'))?$document_data_affected_document->document_type_id:null; @endphp @if($number !== null && $series !== null && $document_type_id !== null) @php $documentType = App\Models\Tenant\Catalogs\DocumentType::find($document_type_id); $textDocumentType = $documentType->getDescription(); @endphp
{{$textDocumentType}}
{{$series }}-{{$number}}
@endif @endif @if ($document->reference_order_form_id) @if($document->order_form) @endif
ORDEN DE PEDIDO
{{ ($document->order_form) ? $document->order_form->number_full : "" }}
@endif