@extends('templates.default') @section('css') @endsection @section('nav')
  • Home
  • Ordenes de Entrega
  • Consultar
  • @endsection @section('content')

    Información de la Orden de Entrega:

    Estado:
    {{ $ordenentrega->getEstadoDisplay() }}

    Gestión:
    {{ ($ordenentrega->gestion!=null)? $ordenentrega->getGestionDisplay() :"N/A" }}

    Cliente:
    {{ ($ordenentrega->getCliente()!=null)? $ordenentrega->getCliente()->razon_social :"N/A" }}

    @if( $ordenentrega->getDetalleEnvio() )

    Envio:
    # Manifiesto: {{ ($ordenentrega->getDetalleEnvio()->envio->numero_manifiesto)? $ordenentrega->getDetalleEnvio()->envio->numero_manifiesto :"N/A" }}
    # Orden: {{ ($ordenentrega->getDetalleEnvio()->envio->numero_orden)? $ordenentrega->getDetalleEnvio()->envio->numero_orden :"N/A" }}
    # Refrendo: {{ ($ordenentrega->getDetalleEnvio()->envio->numero_refrendo)? $ordenentrega->getDetalleEnvio()->envio->numero_refrendo :"N/A" }}

    @endif

    Chofer:
    {{ ($ordenentrega->chofer!=null)? $ordenentrega->chofer->razon_social :"N/A" }}

    Vehículo:
    {{ ($ordenentrega->vehiculo!=null)? $ordenentrega->vehiculo->placa :"N/A" }}

    Descripción de la Orden de Entrega:
    {{ ($ordenentrega->descripcion)?$ordenentrega->descripcion:"N/A" }}

    @if($ordenentrega->getDetalleEnvio())

    Información del Envío:

    OCE:
    @if($ordenentrega->getDetalleEnvio()->envio->oce == 'IMP') Importación @else Exportación @endif

    Cliente:
    {{ $ordenentrega->getDetalleEnvio()->envio->cliente->razon_social }}

    Fecha Apertura:
    {{ date('d/m/Y', strtotime(str_replace('/', '-', $ordenentrega->getDetalleEnvio()->envio->fecha_apertura))) }}

    Fecha Arribo/Salida:
    @if($ordenentrega->getDetalleEnvio()->envio->oce == 'IMP' && isset($ordenentrega->getDetalleEnvio()->envio->fecha_arribo)) {{ date('d/m/Y', strtotime(str_replace('/', '-', $ordenentrega->getDetalleEnvio()->envio->fecha_arribo))) }} @endif @if($ordenentrega->getDetalleEnvio()->envio->oce == 'EXP' && isset($ordenentrega->getDetalleEnvio()->envio->fecha_salida)) {{ date('d/m/Y', strtotime(str_replace('/', '-', $ordenentrega->getDetalleEnvio()->envio->fecha_salida))) }} @endif

    Agencia Naviera:
    @if($ordenentrega->getDetalleEnvio()->envio->agencia) {{ $ordenentrega->getDetalleEnvio()->envio->agencia->razon_social }} @else N/A @endif

    # Manifiesto:
    @if(!$ordenentrega->getDetalleEnvio()->envio->numero_manifiesto) N/A @else {{ $ordenentrega->getDetalleEnvio()->envio->numero_manifiesto }} @endif

    Agencia de Carga/Consolidadora:
    @if(!$ordenentrega->getDetalleEnvio()->envio->agenciacarga) N/A @else {{ $ordenentrega->getDetalleEnvio()->envio->agenciacarga->nombre_comercial }} @endif

    # Refrendo:
    @if(!$ordenentrega->getDetalleEnvio()->envio->numero_refrendo) N/A @else {{ $ordenentrega->getDetalleEnvio()->envio->numero_refrendo }} @endif

    Bodega:
    @if($ordenentrega->getDetalleEnvio()->envio->bodega) {{ $ordenentrega->getDetalleEnvio()->envio->bodega->nombre }} @else N/A @endif

    # Orden:
    @if(!$ordenentrega->getDetalleEnvio()->envio->numero_orden) N/A @else {{ $ordenentrega->getDetalleEnvio()->envio->numero_orden }} @endif

    #BL (HBL/AWB):
    {{ ($ordenentrega->getDetalleEnvio()->envio->numero_bl)?$ordenentrega->getDetalleEnvio()->envio->numero_bl:"N/A" }}

    #MASTER BL (MBL):
    {{ ($ordenentrega->getDetalleEnvio()->envio->numero_bl)?$ordenentrega->getDetalleEnvio()->envio->numero_master_bl:"N/A" }}

    Ejecutivo:
    {{ ($ordenentrega->getDetalleEnvio()->envio->usuario)?$ordenentrega->getDetalleEnvio()->envio->usuario->nombre:"N/A" }}

    Descripción del envío:
    {{ ($ordenentrega->getDetalleEnvio()->envio->descripcion)?$ordenentrega->getDetalleEnvio()->envio->descripcion:"N/A" }}

    @endif @if( $ordenentrega->getDetalleEnvio() )

    @if( $ordenentrega->contenedor_id )

    Información del Contenedor:

    Código:
    {{ $ordenentrega->getDetalleEnvio()->codigo }}

    Tipo:
    {{ $ordenentrega->getDetalleEnvio()->get_tipo_display() }}

    Garantía:
    {{ ( $ordenentrega->getDetalleEnvio()->garantia)? "Sí" :"No" }}

    Valor Garantía:
    {{ ( $ordenentrega->getDetalleEnvio()->garantia)? $ordenentrega->getDetalleEnvio()->garantia :"N/A" }}

    Peso Manifestado [ Peso Bruto(Kg.) ]:
    {{ ( $ordenentrega->getDetalleEnvio()->garantia)? "Sí" :"No" }}

    Peso Manifestado [ Peso Neto(Kg.) ]:
    {{ ( $ordenentrega->getDetalleEnvio()->garantia)? $ordenentrega->getDetalleEnvio()->garantia :"N/A" }}

    Peso Recibido [ Peso Bruto(Kg.) ]:
    {{ ( $ordenentrega->getDetalleEnvio()->garantia)? "Sí" :"No" }}

    Peso Recibido [ Tara (Kg.) ]:
    {{ ( $ordenentrega->getDetalleEnvio()->garantia)? $ordenentrega->getDetalleEnvio()->garantia :"N/A" }}

    Peso Recibido [ Peso Neto(Kg.) ]:
    {{ ( $ordenentrega->getDetalleEnvio()->garantia)? $ordenentrega->getDetalleEnvio()->garantia :"N/A" }}

    Descripción del Contenedor:
    {{ ( $ordenentrega->getDetalleEnvio()->descripcion )? $ordenentrega->getDetalleEnvio()->descripcion : "N/A" }}

    @endif @if( $ordenentrega->carga_id )

    Información de la Carga Suelta:

    Tipo:
    {{ $ordenentrega->getDetalleEnvio()->get_tipo_display() }}

    Cantidad
    {{ $ordenentrega->getDetalleEnvio()->cantidad }}

    Embalaje
    {{ $ordenentrega->getDetalleEnvio()->get_embalaje_tipo_display() }}

    Peso Bruto(Kg.)
    {{ $ordenentrega->getDetalleEnvio()->peso_bruto }}

    Peso Neto(Kg.)
    {{ $ordenentrega->getDetalleEnvio()->peso_neto }}

    Descripción de la Carga Suelta:
    {{ ( $ordenentrega->descripcion )? $ordenentrega->descripcion : "N/A" }}

    @endif @if( $ordenentrega->granel_id )

    Información del Granel:

    Cantidad:
    {{ $ordenentrega->getDetalleEnvio()->cantidad }}

    Peso Bruto(Kg.)
    {{ $ordenentrega->getDetalleEnvio()->peso_bruto }}

    Peso Neto(Kg.)
    {{ $ordenentrega->getDetalleEnvio()->peso_neto }}

    Descripción del Granel:
    {{ ( $ordenentrega->descripcion )? $ordenentrega->descripcion : "N/A" }}

    @endif @endif

    @foreach($ordenentrega->getDetalles() as $det) @endforeach
    Orden Destino Celular Email Dirección Ubicación
    {{ $det->orden }} {{ $det->destino->nombre }} {{ $det->destino->celular }} {{ $det->destino->email }} {{ $det->destino->direccion }}
    @if( $ordenentrega->estado == 'P' && ( Usuario::getLogueado()->rol == 'administrador' || ( Usuario::getLogueado()->id == $ordenentrega->getOperador()->id ) ) ) @endif @endsection @section('js-footer') {{ HTML::script('https://maps.googleapis.com/maps/api/js?key=AIzaSyBS53fWEJGaH9ZaAzzZRjDXyyQMbgQWOUw') }} {{ HTML::script('js/mapa.js') }} @endsection