@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); $configuration = \App\Models\Tenant\Configuration::first(); @endphp
{{--|
|
{{ 'RUC '.$company->number }}{{ $document->document_type->description }}{{ $document_number }} |
@else
{{-- --}}
|
{{ 'RUC '.$company->number }}{{ $document->document_type->description }}{{ $document_number }} |
@endif
| 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_driver->description }}: {{ $document->dispatcher->number }} |
| Número de placa del vehículo: {{ $document->license_plate }} | Conductor: {{ $document->driver->number }} |
| 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}} |
Términos y condiciones del servicio{!! $document->terms_condition !!} |