@extends('layout.padrao') @section('title', 'Import - Booking Plan') @section('content') @if($errors->any())

Algo deu errado. Verificar Campos Obrigatórios

@foreach($errors->all() as $error) {{ $error }}
@endforeach
@else @endif {{ Form::open(array('method' => 'post', 'files'=>true, 'enctype'=>'multipart/form-data', 'route'=>'storeLoading', 'id'=>'loading_create')) }} {{ csrf_field() }}
@include('include.btn_registrar')
{!! Form::label('nome', 'User Name', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('nome', Auth::user()->nome, ['class' => 'form-control ', 'disabled'=>'disabled', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('login', 'User Login', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('login', Auth::user()->login , ['class' => 'form-control ', 'disabled'=>'disabled', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('SAOE', 'SAOI Number', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('SAOE', '', ['class' => 'form-control', 'disabled' => 'disabled']) !!}
{{ Form::hidden('loadingType', 'BKP') }}
{!! Form::label('booking', 'Booking', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('booking', null, ['class' => 'form-control']) !!}
{!! Form::label('cargooReference', 'Cargoo Ref.', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('cargooReference', null, ['class' => 'form-control']) !!}
{!! Form::label('clients_id', 'Client', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('clients_id', [''=>'------ Select Required ------']+$select['client'], null, ['class' => 'dynamic2 clients_id form-control', 'data-dependent'=>'platform']) !!} {{ Form::hidden('clients_fantasyName', old('clients_fantasyName',null)) }}
{!! Form::label('shippers_id', 'Shipper', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('shippers_id', [''=>'------ Select Required ------']+$select['shipper'], null, ['class' => 'shippers form-control']) !!}
{!! Form::label('shipperReference', 'Shipper Reference', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('shipperReference', null, ['class' => 'form-control']) !!}
{!! Form::label('carriers_id', 'Carrier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('carriers_id', [''=>'------ Select Required ------']+$select['carrier'], null, ['class' => 'dynamicCarrier form-control', 'data-dependent'=>'routes']) !!}
{!! Form::label('routes_id', 'Route', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('routes_id', [''=>'------ Select Required ------']+$select['routes'], null, ['class' => 'routes form-control']) !!}
{!! Form::label('platforms_id', 'Product', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('platforms_id', [''=>'------ Select Required ------']+$select['platform'], null, ['class' => 'form-control platform']) !!}
{!! Form::label('vessel_id', 'Vessel', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('vessel_id', [''=>'------ Select Required ------']+$select['vessel'], null, ['class' => 'form-control select_vessel']) !!}
{!! Form::label('voyage', 'Voyage', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('voyage', null, ['class' => 'form-control']) !!}

ETA POD deve ser maior que o ETD POL

{!! Form::label('port_destinations', 'Loading Port', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('port_destinations', $select['loadingPortImport'], null, ['class' => 'form-control']) !!} @if($errors->has('port_destinations')) {{$errors->first('port_destinations')}} @endif
{!! Form::label('loading_ports_id', 'Destination Port', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('loading_ports_id', $select['destinationPortImport'], old('port_destinations',null), ['class' => 'destinationPort form-control','multiple'=>'multiple']) !!}

Draft Cutoff deve ser menor que ETD POL

Cargo estar entre ETD POL e Draft Cutoff

VGM deve estar entre Draft Cutoff e Cargo Cutoff

{!! Form::label('transhipments', 'TS - Transhipment Port', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('transhipments', $select['transhipments'], old('transhipments',null), ['class' => 'transhipments form-control','multiple'=>'multiple']) !!} @if($errors->has('transhipments')) {{$errors->first('transhipments')}} @endif
{!! Form::label('transitTime', 'Transit Time (days)', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('transitTime', null, ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('container_types_id', 'Container Type', [ 'class' => 'w-80 control-label']) !!} {!! Form::checkbox('has_flexitank', 'Yes', false, ['disabled', 'data-toggle="toggle"', 'data-on="Has Flexi"', 'data-off="Has Flexi"', 'data-size="mini"']) !!} {!! Form::select('container_types_id', [''=>'------ Select Required ------']+$select['containerType'], null, ['class' => 'form-control']) !!}
{!! Form::label('containerQty', 'Container Quantity', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('containerQty', null, ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' , 'id' => 'containerQty' ]) !!}
{!! Form::label('dischargeTerminal', 'Discharge Terminal', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('dischargeTerminal', [''=>'------ Select Required ------']+$select['loadingTerminal'], null, ['class' => 'form-control']) !!}
{!! Form::label('gateInForecast', 'Gate IN / Opening Forecast', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::date('gateInForecast', null, ['class' => 'form-control ', 'min' => '2019-01-01', 'max' => '2080-01-01', 'style' => 'text-transform:uppercase;', 'disabled' => 'disabled' ]) !!}

Data fora do período permitido

{!! Form::label('freeTimeDestination', 'Free Time At Destination (days)', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('freeTimeDestination', null, ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('freeTimeOrigin', 'Free Time Origin (days)', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('freeTimeOrigin', null, ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('incoterm', 'Incoterm ', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('incoterm', [''=>'-- Select Required --']+$select['incoterm'], null, ['class' => 'form-control ', 'style' => 'text-transform:uppercase;', 'step'=>'Any' ]) !!}
{!! Form::label('FreightRate', 'Freight Rate (USD)', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('FreightRate', null, ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('FreightBy', 'Freigh Payable By', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('FreightBy', null, ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('FreightAt', 'Freight In', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('FreightAt', null, ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('cargo_types_id', 'Cargo Type', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('cargo_types_id', [''=>'------ Select Required ------']+ $select['cargoType'], null, ['class' => 'form-control']) !!}
{!! Form::label('u_n_s_id', 'U.N.', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('u_n_s_id', [''=>'------ Select Required ------']+ $select['UN'], null, ['class' => 'form-control']) !!}
{!! Form::label('temperature', 'Temperature (°C)', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('temperature', null, ['class' => 'form-control']) !!}
{!! Form::label('foodgrade', 'Foodgrade', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('foodgrade', [''=>'- Select Required -']+ $select['foodgrade'], null, ['class' => 'form-control']) !!}

IMO Cutoff deve ser menor que ETD POL

Comments / Attachment

{!! Form::label('comments', 'Comments / Especial Instructions', [ 'class' => 'w-100 control-label']) !!} {!! Form::textarea('comments', $value = null, ['class' => 'form-control textsAreaSuper', 'rows' => 3 , 'id' => 'comments']) !!}
{!! Form::select('anexo_types_id[]',[''=>'------ Select Required ------']+$select['anexo_types_id'], null, ['class' => 'form-control', 'style'=>'height:40px']) !!}
@include('include.btn_registrar') @include('loading.loadingPlan.scriptBk') @include('loading.loadingPlan.style') @endSection