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

{{ $company->name }}

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

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


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

{{ $document_number }}



@if($document->optional) @if($document->optional->invoice_number) Documento: {{ $document->optional->invoice_number }} @endif @endif
{{----}}
DESTINATARIO
Razón Social: {{ $customer->name }}
RUC: {{ $customer->number }}
Dirección: {{ $customer->address }}, {{ strtoupper($customer->department->description) }}-{{ strtoupper($customer->province->description) }}-{{ strtoupper($customer->district->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 }}, {{ \App\CoreFacturalo\Templates\FunctionLocation::getLocationName($document->origin->location_id) }}
P.Llegada: {{ $document->delivery->location_id }} - {{ $document->delivery->address }}, {{ \App\CoreFacturalo\Templates\FunctionLocation::getLocationName($document->delivery->location_id) }}
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 }} @php $unit_type_description = \App\Models\Tenant\Catalogs\UnitType::find($row->item->unit_type_id); @endphp {{ $unit_type_description->description }} {{ $row->quantity }}
@if($document->observations)
OBSERVACIONES
{{ $document->observations }}
@endif