@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())
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:
@endif
@if( $ordenentrega->carga_id )
Información de la Carga Suelta:
@endif
@if( $ordenentrega->granel_id )
@endif
@endif
Orden
|
Destino
|
Celular
|
Email
|
Dirección
|
Ubicación
|
@foreach($ordenentrega->getDetalles() as $det)
{{ $det->orden }}
|
{{ $det->destino->nombre }}
|
{{ $det->destino->celular }}
|
{{ $det->destino->email }}
|
{{ $det->destino->direccion }}
|
|
@endforeach
@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