@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 @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 }}


N° {{ $document_number }}

Fecha Inicio de Traslado: {{ $document->date_of_shipping->format('Y-m-d') }}
RUC: {{ $customer->number }}
Razón Social: {{ $customer->name }}
Dirección física: {{ $customer->address }} {{ ($customer->district_id !== '-')? ', '.$customer->district->description : '' }} {{ ($customer->province_id !== '-')? ', '.$customer->province->description : '' }} {{ ($customer->department_id !== '-')? '- '.$customer->department->description : '' }}
Punto Partida: {{ $document->origin->location_id }} - {{ $document->origin->address }}
Punto Llegada: {{ $document->delivery->location_id }} - {{ $document->delivery->address }}
Motivo Traslado: {{ $document->transfer_reason_type->description }} Nro. Factura: @if ($document->reference_document) {{$document->reference_document->document_type->description}} {{$document->reference_document->number_full}} @endif O. Compra: @if ($document->reference_document) @if ($document->reference_document->purchase_order) {{$document->reference_document->purchase_order}} @endif @endif
Datos de transportista
{{-- --}}
Nombre: {{ $document->driver->name }}
{{ $document->driver->identity_document_type_id }}: {{ $document->driver->number }} N° Licencia: {{ $document->license_plate }}
Datos de transportista
@if($document->license_plate) @endif
Nombre: {{ $document->dispatcher->name }} {{ $document_type_dispatcher->description }}: {{ $document->dispatcher->number }}
Placa:{{ $document->license_plate }}