@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);
$logo = "storage/uploads/logos/{$company->logo}";
if($establishment->logo) {
$logo = "{$establishment->logo}";
}
@endphp
{{--{{ $document_number }}--}}
{{----}}
@if($company->logo)
|
@else
{{-- --}}
|
@endif
|
{{ $document->document_type->description }}
{{ 'RUC '.$company->number }}
{{ $document_number }}
|
|
|
DATOS DEL TRASLADO |
|
|
Fecha de emisión: {{ $document->date_of_issue->format('d/m/Y') }} |
Fecha de traslado: {{ $document->date_of_shipping->format('d/m/Y') }} |
Motivo de traslado: {{ $document->transfer_reason_type->description }} |
Modalidad de traslado: {{ $document->transport_mode_type->description }} |
Peso Bruto Total de la Guía: ({{ $document->unit_type_id }}) {{ $document->total_weight }} |
Documento:
@if ($document->reference_document)
{{$document->reference_document->document_type->description}} {{ $document->reference_document->number_full }}
@endif
|
|
|
DATOS DEL DESTINATARIO |
|
|
Apellidos y Nombre o Razón Social: {{ $customer->name }} |
R.U.C. / DNI: {{ $customer->number }} |
|
|
|
|
Punto de partida: |
Punto de llegada: |
{{ $document->origin->location_id }} - {{ $document->origin->address }} |
{{ $document->delivery->location_id }} - {{ $document->delivery->address }} |
DATOS DEL TRANSPORTE |
DATOS DEL CONDUCTOR |
DATOS DEL TRANSPORTISTA |
Placa: {{ $document->license_plate }} |
{{-- @if($document->driver->license) --}}
Licencia: {{ $document->driver->license }} |
{{-- @else --}}
{{-- @endif --}}
Empresa: {{ $document->dispatcher->name }} |
Placa semirremolque: {{ $document->secondary_license_plates ? $document->secondary_license_plates->semitrailer:''}} |
{{-- Marca: | --}}
Conductor: {{ $document_type_driver->description }} {{ $document->driver->number }} |
{{ $document_type_dispatcher->description }}: {{ $document->dispatcher->number }} |
Código |
Descripción del Articulo |
Unidad |
{{-- Unidad de medida | --}}
Cantidad |
Peso Total |
@foreach($document->items as $row)
@php
$total_weight_line = 0;
@endphp
{{ $row->item->internal_id }} |
{{ $row->item->description }} |
{{ $row->item->unit_type_id }} |
@if(((int)$row->quantity != $row->quantity))
{{ $row->quantity }}
@else
{{ number_format($row->quantity, 0) }}
@endif
|
@if($row->relation_item->attributes)
@foreach($row->relation_item->attributes as $attr)
@if($attr->attribute_type_id === '5032')
@php
$total_weight_line += $attr->value * $row->quantity;
@endphp
@endif
@endforeach
@endif
{{$total_weight_line}} |
|
@if($row->relation_item->name)
{{ $row->relation_item->name }} |
@else
X |
@endif
|
X |
@endforeach
OBSERVACION
{{ $document->observations }}
____________________________________________________________________
|
___________________________________
___________________________________
CONFORMIDAD DEL CLIENTE
DNI ______________________________________
|
El documento electrónico ha sido aceptado
____________________________________________________________________
|
Representación impresa de la Guía de Remisión Electrónica Remitente
____________________________________________________________________
|
Usuario: {{ $document->user->name }}
|
Fecha: {{ date('d-m-Y')}}
|
Hora: {{ date('H:i:s')}}
|
|