@php $data = $data["data"]; $data = json_decode($data); $origen = $data->origin_station; $destino = $data->destination_station; $total = 0; $grr = ''; if(count($data->senders_guide)>0){ foreach ($data->senders_guide as $key=>$value){ $grr.= $value->number; if ($key != count($data->senders_guide)-1) { $grr.=", "; } } } @endphp


{{$data->our_companies->company->legal_name}}
{{$data->our_companies->company->central_address}}
RUC : {{$data->our_companies->company->number_document}}
CENTRAL TELEFÓNICA : {{$data->our_companies->company->central_phone}}
https://gppcargo.com
@if ($data->our_companies->id == 2)
N° REGISTRO MTC 15133225 - CNG
@endif
DATOS GUIA REMISIÓN - TRANSPORTISTA

{{$origen->name}} - {{$destino->name}}

DATOS DE LA GUÍA ELECTRONICA

SERIE: {{$data->guia_series}} NRO. GUIA: {{$data->guia_number}} CÓDIGO: {{$data->guide_code}}
@if ($data->number_order > 0)
NRO. ORDEN: {{$data->number_order}}
@endif
Fecha Emisión: {{$data->issue_date}}




Origen: {{ $origen->address }}
Destino: {{ $destino->address }}

DATOS DEL REMITENTE
Nombre/Raz. Social: {{isset($data->sender_person)?$data->sender_person->full_name:$data->sender_company->legal_name}}
DNI/RUC: {{isset($data->sender_person)?$data->sender_person->document:$data->sender_company->number_document}} - Telefono: {{isset($data->sender_person)?$data->sender_person->phone:$data->sender_company->central_phone}}
GRR: {{$grr}}

DATOS DEL DESTINATARIO
Nombre/Raz. Social: {{isset($data->receiver_person)?$data->receiver_person->full_name:$data->receiver_company->legal_name}}
DNI/RUC: {{isset($data->receiver_person)?$data->receiver_person->document:$data->receiver_company->number_document}} Telefono: {{isset($data->receiver_person)?$data->receiver_person->phone:$data->receiver_company->central_phone}}

@php if(isset($data->person_contact)){ echo '
CONTACTO: '.$data->person_contact->document.' '.$data->person_contact->full_name.'

'; } @endphp
ENTREGA
TIPO: {{$data->type_of_delivery}}
@if ($data->type_of_delivery == "DOMICILIO")
DIRECCIÓN: {{$data->destination_address}}
@endif

FORMA DE PAGO: {{$data->method_of_payment}}
@if(count($data->detail_service)>0) @foreach($data->detail_service as $key=>$item) @if(floatval($item->weight)>0 && (floatval($item->length) != 2)) @endif @if(floatval($item->weight)>0 && floatval($item->length) == 2) @endif @if(floatval($item->weight)== 0 && floatval($item->volume)>0) @endif @if((floatval($item->weight) == 0) && (floatval($item->volume) == 0) && (floatval($item->length) == 1)) @endif @if((floatval($item->weight) == 0) && (floatval($item->volume) == 0) && (floatval($item->length) == 0)) @endif @if(floatval($item->weight) > 0) @endif @if(floatval($item->volume) > 0) @endif @if((floatval($item->volume) == 0) && (floatval($item->weight)) == 0) @endif @php $total += $item->amount @endphp @endforeach @endif
Descripción Cant U.medida Medida Sub total
{{$item->type_product}} {{$item->quantity}}PesoPeso VolumétricoVolumenSobreOtros{{$item->weight}}{{$item->volume}}0.00{{$item->amount}}

Total: S/.{{$data->total_amount}}

{{--
--}} {{--
Observaciones:
--}} {{--{{$data->observations->perishables?'Perecebibles':''}}
--}} {{--{{$data->observations->poor_packaging?'Mal Embalaje':''}}
--}} {{--{{$data->observations->address_provider?'Proveedor Dirección':''}}
--}} {{--
--}} {{--

--}}
DATOS DE IDENTIFICACIÓN DE LA UNIDAD DE TRANSPORTE Y DEL CONDUCTOR
Marca del Vehículo:
Placa N°:
{{--
Configuración Vehicular:
--}}
N° de Certificado de Inscripción:
N° de Licencia del Conductor:

DNI:
Nombre y Apellidos:
Firma: