@php $establishment = $document->establishment; //$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); $logo = "storage/uploads/logos/{$company->logo}"; if($establishment->logo) { $logo = "{$establishment->logo}"; } @endphp
{{--{{ $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 : '' }} |
{{ $document->document_type->description }} |
{{ $document_number }} |
ENVIO | |
---|---|
Fecha Emisión: {{ $document->date_of_issue->format('Y-m-d') }} | |
Fecha Inicio de Traslado: {{ $document->date_of_shipping->format('Y-m-d') }} | |
Peso Bruto Total({{ $document->unit_type_id }}): {{ $document->total_weight }} | |
P.Partida: {{ $document->sender_address_data['location_id'] }} - {{ $document->sender_address_data['address'] }} | |
P.Llegada: {{ $document->receiver_address_data['location_id'] }} - {{ $document->receiver_address_data['address'] }} | |
Datos del Remitente: {{ $document->sender_data['name'] }} - {{ $document->sender_data['number'] }} | |
Datos del Destinatario: {{ $document->receiver_data['name'] }} - {{ $document->receiver_data['number'] }} |
TRANSPORTE | |
---|---|
Número de placa del vehículo: {{ $document->transport_data['plate_number'] }} | |
Conductor: {{ $document->driver->number }} | |
Licencia del conductor: {{ $document->driver->license }} |
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 |
OBSERVACIONES |
{{ $document->observations }} |
|