@php $data = $data["data"]; $data = json_decode($data); $origen = $data->origin_station; $destino = $data->destination_station; $typeService = $data->service_order_type; $total = 0; $manifest = ""; if (isset($data->manifest)) { if(count($data->manifest->service_order_manifest)) { $manifest = $data->manifest->service_order_manifest[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 @foreach ([1,2] as $contador)

{{$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 == 1)
N° REGISTRO MTC 1557500 - CNG
@elseif ($data->our_companies->id == 2)
N° REGISTRO MTC 1569422 - CNG
@endif
Fecha Emision: {{$data->issue_date}}
DATOS DE LA ORDEN DE SERVICIO
{{$origen->name}} - {{$destino->name}}
@if(!($data->number_order === 0 || $data->number_order === "0")) @endif @if(!($data->number_order === 0 || $data->number_order === "0")) @endif
SERIE ORDEN SERVICIO CÓDIGO CODIFICADO
{{$data->guia_series}} {{$data->guia_number}} {{$data->guide_code}} {{$data->number_order}}
Origen : {{ $origen->address }}
Destino : {{ $destino->address }}
 
@if ( $typeService && $typeService == 0 ) @elseif ( $typeService && $typeService == 1 ) @else @endif
Servicio : TERRESTRE
Servicio : AEREO
Servicio : TERRESTRE

DATOS DEL REMITENTE
@if(isset($data->sender_person->phone) || isset($data->sender_company->central_phone)) @endif @if($grr != "") @endif @if(isset($data->person_contact_sender_id)) @endif
Nombre/Rz. Soc. : {{isset($data->sender_person)?$data->sender_person->full_name:(is_null($data->sender_company)?$data->name_sender:$data->sender_company->legal_name)}}
DNI/RUC : {{isset($data->sender_person)?$data->sender_person->document:(is_null($data->sender_company)?'':$data->sender_company->number_document)}}
Telefono : {{isset($data->sender_person)?$data->sender_person->phone:(is_null($data->sender_company)?'':$data->sender_company->central_phone)}}
GRR : {{$grr}}
Contacto : {{$data->person_contact_sender->document.' '.$data->person_contact_sender->full_name}}

DATOS DEL DESTINATARIO
@if(isset($data->receiver_person->phone) || isset($data->receiver_company->central_phone)) @endif @if(isset($data->person_contact)) @endif
Nombre/Rz. Soc. : {{isset($data->receiver_person)?$data->receiver_person->full_name:(is_null($data->receiver_company)?$data->name_receiver:$data->receiver_company->legal_name)}}
DNI/RUC : {{isset($data->receiver_person)?$data->receiver_person->document:(is_null($data->receiver_company)?'':$data->receiver_company->number_document)}}
Telefono : {{isset($data->receiver_person)?$data->receiver_person->phone:(is_null($data->receiver_company)?'':$data->receiver_company->central_phone)}}
Contacto : {{$data->person_contact->document.' '.$data->person_contact->full_name}}
ENTREGA
@if ($data->type_of_delivery == "DOMICILIO") @endif
Tipo : {{$data->type_of_delivery}}
Dirección : {{$data->destination_address}}

FORMA DE PAGO: {{$data->method_of_payment}}
@if(count($data->detail_service)>0) @foreach($data->detail_service as $key=>$item) @if ($typeService && $typeService == 0) @if(floatval($item->weight)>0 && (floatval($item->length) != 2)) @endif @if(floatval($item->weight)>0 && floatval($item->length) == 2) @endif @if(floatval($item->volume)>0) @endif @if(floatval($item->length) == 3) @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 @elseif ( $typeService && $typeService == 1 ) @if(floatval($item->length) == 10)) @endif @if(floatval($item->length) == 11) @endif @if(floatval($item->length) == 12) @endif @if(floatval($item->length) == 13) @endif @if(floatval($item->length) == 14) @endif @if(floatval($item->weight) > 0) @endif @else @if(floatval($item->weight)>0 && (floatval($item->length) != 2)) @endif @if(floatval($item->weight)>0 && floatval($item->length) == 2) @endif @if(floatval($item->volume)>0) @endif @if(floatval($item->length) == 3) @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 @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}}PesoP. VolumenM3BultoSobreOtros{{$item->weight}}{{$item->volume}}GRLDGRDIM-HEASOBREOTROS{{$item->weight}}PesoP. VolumenM3BultoSobreOtros{{$item->weight}}{{$item->volume}}0.00{{$item->amount}}
Total: S/.{{$data->total_amount}}

OBSERVACIONES
@if ($data->observations->perishables) @endif @if ($data->observations->poor_packaging) @endif
Perecible : Bajo responsabilidad del remitente.
Mal Embalaje : Embalaje en mal estado Bajo responsabilidad del remitente.
@if ($data->observations->address_provider)
RETORNO DE CARGO
@endif
USUARIO : {{$data->personFromUser->name[0]}}. {{$data->personFromUser->last_name}}

Nombre y Apellidos
DNI Firma

USTED NO CONTRATO EL SEGURO DE CARGA
TERMINOS Y CONDICIONES DEL SERVICIO
  • -El cliente será el único responsable del embalaje y
    rotulado del envío.
  • -La empresa no realiza la verificación del
    contenido ni del estado interno de los envíos.
  • -La indemnización a favor de el cliente se regirá de
    acuerdo a lo estipulado en el Art. 146 del D.S. 032-
    2005-MTC, es decir se abonará como única
    indemnización 10 veces el valor del flete pagado.
  • -El cliente tendrá un plazo de tolerancia de siete
    días (7) hábiles luego de que el envío haya llegado
    a su destino final.
  • -El cliente al recibir el comprobante asume estar
    de acuerdo con todo los términos y condiciones
    publicado en la página web gppcargo.com.
@if($contador<2) @endif @endforeach