@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); $document_type_dispatcher = App\Models\Tenant\Catalogs\IdentityDocumentType::findOrFail($document->dispatcher->identity_document_type_id); $allowed_items = 80; $quantity_items = $document->items()->count(); $cycle_items = $allowed_items - ($quantity_items * 5); $total_weight = 0; $marca_agua = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'custom_multisaba'.DIRECTORY_SEPARATOR.'marca_agua.png'); $titulo = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'custom_multisaba'.DIRECTORY_SEPARATOR.'logo_titulo.png'); @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 : '' }}@isset($establishment->trade_address){{ ($establishment->trade_address !== '-')? 'D. Comercial: '.$establishment->trade_address : '' }}@endisset{{ ($establishment->telephone !== '-')? 'Central telefónica: '.$establishment->telephone : '' }}{{ ($establishment->email !== '-')? 'Email: '.$establishment->email : '' }}@isset($establishment->web_address){{ ($establishment->web_address !== '-')? 'Web: '.$establishment->web_address : '' }}@endisset @isset($establishment->aditional_information){{ ($establishment->aditional_information !== '-')? $establishment->aditional_information : '' }}@endisset |
{{ 'R.U.C. '.$company->number }}{{ $document->document_type->description }}{{ $document_number }} |
DESTINATARIO | |||
Razón Social: {{ $customer->name }} | @if ($document->reference_document)COMPROBANTE: {{$document->reference_document->document_type->description}} {{$document->reference_document->number_full}} | @else@endif | |
RUC: {{ $customer->number }} | @if ($document->reference_document) @if ($document->reference_document->purchase_order)O. COMPRA: {{$document->reference_document->purchase_order}} | @else@endif @else | @endif |
Dirección: {{ $customer->address }} {{ ($customer->district_id !== '-')? ', '.$customer->district->description : '' }} {{ ($customer->province_id !== '-')? ', '.$customer->province->description : '' }} {{ ($customer->department_id !== '-')? '- '.$customer->department->description : '' }} |
ENVIO | |
Fecha Emisión: {{ $document->date_of_issue->format('d/m/Y') }} |
PUNTO DE PARTIDA |
Fecha de Traslado: {{ $document->date_of_shipping->format('d/m/Y') }} | |
Motivo Traslado: {{ $document->transfer_reason_type->description }} |
PUNTO DE LLEGADA |
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 }} |
|
|
ITEM | CÓDIGO | CANTIDAD | U.M. | DESCRIPCIÓN | PESO |
---|---|---|---|---|---|
{{ $loop->iteration }} | {{ $row->item->internal_id }} | @if(((int)$row->quantity != $row->quantity)) {{ $row->quantity }} @else {{ number_format($row->quantity, 0) }} @endif | {{ $row->item->unit_type_id }} |
{!!$row->item->description!!}
@if($row->relation_item->attributes)
@foreach($row->relation_item->attributes as $attr)
@if($attr->attribute_type_id === '5032')
@php
$total_weight += $attr->value * $row->quantity;
$total_weight_line += $attr->value * $row->quantity;
@endphp
@endif
{!! $attr->description !!} : {{ $attr->value }} @endforeach @endif |
{{ $total_weight_line }} |
|
|
|
|