@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); @endphp {{--{{ $document_number }}--}} {{----}} @if($company->logo) @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 }}

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

{{ ($establishment->address !== '-')? $establishment->address : '' }}
{{ ($establishment->email !== '-')? $establishment->email : '' }}
{{ ($establishment->telephone !== '-')? $establishment->telephone : '' }}

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

{{ $document_number }}

@if ($customer->telephone) @endif
DESTINATARIO
Razón Social: {{ $customer->name }}
RUC: {{ $customer->number }}
Dirección: {{ $customer->address }}
Teléfono:{{ $customer->telephone }}
Vendedor: {{ $document->user->name }}
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
Razón Social: {{ $document->dispatcher->name }} RUC: {{ $document->dispatcher->number }}
Número de placa del vehículo: {{ $document->license_plate }} Conductor: {{ $document->driver->number }}
@foreach($document->items as $row) @endforeach
Item Código Descripción Unidad Cantidad
{{ $loop->iteration }} {{ $row->item->internal_id }} {{ $row->item->description }} {{ $row->item->unit_type_id }} {{ $row->quantity }}
OBSERVACIONES
{{ $document->observations }}