@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; } $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
{{ $company->name }}{{ 'RUC ' . $company->number }}{{ $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 : '' }} |
|
PUNTO PARTIDA | :{{ $document->origin->address }} @isset($document->origin->location_id) - {{ func_get_location($document->origin->location_id) }} @endisset | FECHA DE EMISIÓN | :{{ $document->date_of_issue->format('d/m/Y') }} |
PUNTO LLEGADA | :{{ $document->delivery->address }} @isset($document->delivery->location_id) - {{ func_get_location($document->delivery->location_id) }} @endisset | INICIO DE TRASLADO | :{{ $document->date_of_shipping->format('d/m/Y') }} |
INFORMACION PROVEEDOR | |
RUC: | SEÑOR(ES): |
|
|
|
|
Item | CANT. | COD. BIEN | DESCRIPCIÓN | UND MEDIDA | PESO |
---|---|---|---|---|---|
{{ $idx + 1 }} | {{ $row->quantity }} | {{ symbol_or_code($row->item->unit_type_id) }} | {{ $row->item->description }} | {{ $document->unit_type_id }} | {{ isset($row->item->weight) ? $row->item->weight : 0 }} |
USUARIO REGISTRO: {{ $document->user->name }} | |||||
NOTA: | PESO TOTAL | {{ $document->total_weight }} {{ $document->unit_type_id }} |
DATOS DE TRASLADO | ||
---|---|---|
MOTIVO DE TRASLADO: {{ optional($document->transfer_reason_type)->description }} | DOC. RELACIONADO: {{ $document->reference_check() }} | MOD. TRASLADO: {{ optional($document->transport_mode_type)->description }} |
_______________________________ Transporte |
_______________________________ Recibí conforme |
DESTINATARIO | |
---|---|
Razón Social: {{ $customer->name }} | |
{{ $customer->identity_document_type->description }}: {{ $customer->number }} | |
Dirección: {{ $customer->address }} - {{ $customer->country->description }} | @elseDirección: {{ $customer->address }} {{ $customer->district_id !== '-' ? ', ' . $customer->district->description : '' }} {{ $customer->province_id !== '-' ? ', ' . $customer->province->description : '' }} {{ $customer->department_id !== '-' ? '- ' . $customer->department->description : '' }} | @endif
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 }} |
Descripción de motivo de traslado: {{ $document->transfer_reason_description }} | |
Número de documento (DAM): {{ $document->related->number }} | Tipo documento relacionado: {{ $document->getRelatedDocumentTypeDescription() }} |
Peso Bruto Total({{ $document->unit_type_id }}): {{ $document->total_weight }} | @if ($document->packages_number)Número de Bultos: {{ $document->packages_number }} | @endif
P.Partida: {{ $document->origin->location_id }} - {{ $document->origin->address }} | |
P.Llegada: {{ $document->delivery->location_id }} - {{ $document->delivery->address }} | |
Orden de pedido: {{ $document->order_form_external }} |
TRANSPORTE | |
---|---|
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'] }} | @endif @if ($document->driver->number)Conductor: {{ $document->driver->number }} | @endif
Número de placa semirremolque: {{ $document->secondary_license_plates->semitrailer }} | @endif @endif @if ($document->driver->license)Licencia del conductor: {{ $document->driver->license }} | @endif
Item | Código | Descripción | Modelo | Unidad | Peso | Cantidad |
---|---|---|---|---|---|---|
{{ $loop->iteration }} | {{ $row->item->internal_id }} |
@if ($row->name_product_pdf)
{!! $row->name_product_pdf !!}
@else
{!! $row->item->description !!}
@endif
@if ($row->attributes)
@foreach ($row->attributes as $attr)
{!! $attr->description !!} : {{ $attr->value }} @endforeach @endif @isset($row->item->attributes) @foreach ($row->item->attributes as $attr) {!! $attr->description !!} : {{ $attr->value }} @endforeach @endisset @if ($row->discounts) @foreach ($row->discounts as $dtos) {{ $dtos->factor * 100 }}% {{ $dtos->description }} @endforeach @endif @if ($row->relation_item->is_set == 1) @inject('itemSet', 'App\Services\ItemSetService') @foreach ($itemSet->getItemsSet($row->item_id) as $item) {{ $item }} @endforeach @endif @if ($document->has_prepayment) *** Pago Anticipado *** @endif |
{{ $row->item->model ?? '' }} | {{ symbol_or_code($row->item->unit_type_id) }} | {{ $row->item->weight }} | @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 }} |
ORDEN DE PEDIDO |
{{ $document->order_form ? $document->order_form->number_full : '' }} |
ORDEN DE PEDIDO |
{{ $document->order_form_external }} |
NOTA DE VENTA |
{{ $document->sale_note ? $document->sale_note->number_full : '' }} |
|
Términos y condiciones del servicio{!! $document->terms_condition !!} |