@if($document['company_logo']) @else @endif
logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{ $document['company_name'] }}" class="company_logo" style="max-width: 300px"> {{----}}

{{ $document['company_name'] }}

{{ 'RUC '.$document['company_number'] }}

{{ $document['establishment_address'] }}
{{ $document['establishment_email'] }}
{{ $document['establishment_telephone'] }}

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

{{ $document_number }}

@if($document->transfer_reason_type_id === '09') @else @endif @if ($customer->telephone) @endif
DESTINATARIO
Razón Social: {{ $customer->name }}
{{ $customer->identity_document_type->description }}: {{ $customer->number }}
Dirección: {{ $customer->address }} - {{ $customer->country->description }} Dirección: {{ $customer->address }} {{ ($customer->district_id !== '-')? ', '.$customer->district->description : '' }} {{ ($customer->province_id !== '-')? ', '.$customer->province->description : '' }} {{ ($customer->department_id !== '-')? '- '.$customer->department->description : '' }}
Teléfono:{{ $customer->telephone }}
Vendedor: {{ $document->user->name }}
ENVIO
Fecha Emisión: {{ $document['date_of_issue'] }}
Fecha Inicio de Traslado: {{ $document['date_of_shipping'] }}
Peso Bruto Total({{ $document['unit_type_id'] }}): {{ $document['total_weight'] }}
Punto de Partida: {{ $document['sender_address_location_id'] }} - {{ $document['sender_address_address'] }}
Punto de Llegada: {{ $document['receiver_address_location_id'] }} - {{ $document['receiver_address_address'] }}
@if($document['transport_plate_number']) @endif @if($document['driver_number']) @endif @if($document['driver_license']) @endif
TRANSPORTE
Número de placa del vehículo: {{ $document['transport_plate_number'] }}
Conductor: {{ $document['driver_number'] }}
Licencia del conductor: {{ $document['driver_license'] }}
@foreach($document->items as $row) @endforeach
Item Código Descripción Modelo Unidad Cantidad
{{ $loop->iteration }} {{ $row->item->internal_id }} @if($row->name_product_pdf) {!!$row->name_product_pdf!!} @else {!!$row->item->description!!} @endif @if (!empty($row->item->presentation)) {!!$row->item->presentation->description!!} @endif @if($row->attributes) @foreach($row->attributes as $attr)
{!! $attr->description !!} : {{ $attr->value }} @endforeach @endif @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 ?? '' }} {{ $row->item->unit_type_id }} @if(((int)$row->quantity != $row->quantity)) {{ $row->quantity }} @else {{ number_format($row->quantity, 0) }} @endif
@if($document['qr'])
@endif