@php $establishment = $document->establishment; $configuration = \App\Models\Tenant\Configuration::first(); $configurations = \App\Models\Tenant\Configuration::first(); $company_name = $company->name; $company_owner = null; if ($configurations->trade_name_pdf) { $company_name = $company->trade_name; $company_owner = $company->name; } $logo = null; if (!$document->alter_company) { $establishment__ = \App\Models\Tenant\Establishment::find($document->establishment_id); $logo = $establishment__->logo ?? $company->logo; } if ($logo === null && !file_exists(public_path("$logo}"))) { $logo = "{$company->logo}"; } if ($logo) { $logo = "storage/uploads/logos/{$logo}"; $logo = str_replace('storage/uploads/logos/storage/uploads/logos/', 'storage/uploads/logos/', $logo); } $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); // dd($document->items); @endphp
{{--
|
@else
{{-- ![]() |
@endif
|
DATOS GENERALES | |
---|---|
Indicador traslado en vehículos de categoría M1 o L: Si | |
Punto de partida: {{ $document->origin ? $document->origin->address : null }} {{ $document->origin ? func_get_location($document->origin->location_id) : null }} |
Punto de llegada:
{{ $document->delivery ? $document->delivery->address : null }} {{ $document->delivery ? func_get_location($document->delivery->location_id) : null }} |
Motivo Traslado:
{{ $document->transfer_reason_type->description }} |
Modalidad de Transporte:
{{ $document->transport_mode_type->description }} |
Fecha de emisión:
{{ $document->date_of_issue->format('d/m/Y') }} |
Fecha de traslado:
{{ $document->date_of_shipping->format('d/m/Y') }} |
Documento relacionado:
{{ $document->related_document}} |
|
Descripción de motivo de traslado:
{{ $document->transfer_reason_description }} |
@endif
@if ($document->order_form_external)
Orden de pedido:
{{ $document->order_form_external }} |
@endif
Observaciones:
{{ $document->observations }} |
@endif
@if ($document->reference_document)
{{ $document->reference_document->document_type->description }}
{{ $document->reference_document ? $document->reference_document->number_full : '' }} |
@endif
DATOS DEL DESTINATARIO | |
---|---|
Nombre o razón social: {{ $customer->name }} |
Tipo y número de identificación:
{{ $customer->identity_document_type->description }}: {{ $customer->number }} |
Dirección: @if ($document->transfer_reason_type_id === '09') {{ $customer->address }} - {{ $customer->country->description }} @else {{ $customer->address }} {{ $customer->district_id !== '-' ? ', ' . $customer->district->description : '' }} {{ $customer->province_id !== '-' ? ', ' . $customer->province->description : '' }} {{ $customer->department_id !== '-' ? '- ' . $customer->department->description : '' }} @endif |
|
Número de bultos: {{ $document->packages_number }} bultos |
Peso bruto total: {{ $document->total_weight }} {{ $document->unit_type_id }} |
DATOS DEL PROVEEDOR | |
---|---|
Razón social: {{ $document->supplier->name }} |
Tipo y número de identificación:
{{ $document->supplier->identity_document_type->description }}: {{ $document->supplier->number }} |
Dirección: {{ $document->supplier->address }} {{ $document->supplier->district_id !== '-' ? ', ' . $document->supplier->district->description : '' }} {{ $document->supplier->province_id !== '-' ? ', ' . $document->supplier->province->description : '' }} {{ $document->supplier->department_id !== '-' ? '- ' . $document->supplier->department->description : '' }} |
DATOS DEL TRANSPORTE Y TRASLADO | |||
---|---|---|---|
Placa de vehículo: {{ $document->plate_number }} | |||
Nombre y/o razón social: {{ $document->dispatcher->name }} | {{ $document_type_dispatcher->description }}: {{ $document->dispatcher->number }} | ||
Número de placa del vehículo: {{ $document->transport_data['plate_number'] }} | @if (isset($document->transport_data['auth_plate_primary']))Autorización de placa principal: {{ $document->transport_data['auth_plate_primary'] }} | @endif||
Número de placa secundaria del vehículo: {{ $document->secondary_transport_data['secondary_plate_number'] }} | @else @if (isset($document->transport_data['secondary_plate_number']))Número de placa secundaria del vehículo: {{ $document->transport_data['secondary_plate_number'] }} | @endif @endif @if (isset($document->secondary_transport_data['auth_plate_secondary']))Autorización de placa secundaria: {{ $document->secondary_transport_data['auth_plate_secondary'] }} | @else @if (isset($document->transport_data['auth_plate_secondary']))Autorización de placa secundaria: {{ $document->transport_data['auth_plate_secondary'] }} | @endif @endif
Nombre Conductor: {{ $document->driver->name }} | Documento Conductor: {{ $document->driver->number }} | ||
Nombre Conductor Secundario: {{ $document->secondary_driver->name }} | Documento Conductor Secundario: {{ $document->secondary_driver->number }} | ||
Modelo del vehículo: {{ $document->transport_data['model'] }} | |||
Marca de tracto carreta: {{ $document->tracto_carreta }} | |||
Licencia del conductor: {{ $document->driver->license }} |
# | Código | Descripción | DUA | Cantidad | U.M. |
---|---|---|---|---|---|
{{ $idx + 1 }} | {{ $row->item->internal_id }} | {{ $row->item->description }} |
@if (isset($row->item->IdLoteSelected))
@foreach ($row->item->IdLoteSelected as $lote)
{{ $lote->code }} : {{ $lote->date_of_due }}
@endforeach
@endif
|
{{ $row->quantity }} | {{ symbol_or_code($row->item->unit_type_id) }} |
|