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

Algo deu errado. Verificar Campos Obrigatórios

@foreach($errors->all() as $error) {{ $error }}
@endforeach
@else @endif {{ Form::open(array('id' => 'form-bk-lgp', 'method' => 'post', 'files'=>true, 'enctype'=>'multipart/form-data', 'route'=>array('updateLoading', $register->id))) }} {{method_field('PUT')}} {{ csrf_field() }}
{!! Form::label('nome', 'User Name', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('nome', old('nome',(isset($register->usuarios->nome) ? $register->usuarios->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', old('login', (isset($register->usuarios->login) ? $register->usuarios->login : Auth::user()->login)), ['class' => 'form-control ', 'disabled'=>'disabled', 'style' => 'text-transform:uppercase;' ]) !!}
{{ Form::hidden('loadingType', 'BKP') }}
{!! Form::label('SAOE', 'SAOE Number', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('SAOE', old('SAOE',$register->SAOE) , ['class' => 'form-control', 'disabled' => 'disabled']) !!}
@if(isset($dePara) && $dePara != null )

Alterações Automatizadas Foram:

@foreach($dePara as $item) {!! $item !!} @if($loop->last) @else @endif @endforeach
@endif
{!! Form::label('booking', 'Booking', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('booking', ( old('booking') == null ?$register->booking:'booking' ), ['class' => 'form-control', ($register->cargooReference && $register->booking)? "readonly ":""]) !!}
{!! Form::label('cargooReference', 'Cargoo Ref.', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('cargooReference', ( old('cargooReference') == null ?$register->cargooReference:'cargooReference' ), ['class' => 'form-control', ($register->cargooReference)? "readonly ":""]) !!}
{!! Form::label('clients_id', 'Client', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('clients_id', [''=>'------ Select Required ------']+$select['client'], old('clients_id',$register->clients_id), ['class' => 'dynamic2 clients_id form-control', 'data-dependent'=>'platform']) !!} {{ Form::hidden('clients_fantasyName', old('clients_fantasyName',$register->clients_fantasyName)) }}
{!! Form::label('shippers_id', 'Shipper', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('shippers_id', [''=>'------ Select Required ------']+$select['shipper'], old('shippers_id',$register->shippers_id), ['class' => 'shippers form-control']) !!}
{!! Form::label('shipperReference', 'Shipper Reference', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('shipperReference', old('shipperReference',$register->shipperReference), ['class' => 'form-control']) !!}
@if ($register->spotSales()->exists())
{!! Form::label('spotSale', 'SPOT Booking', [ 'class' => 'w-100 control-label']) !!}
@endif
{!! Form::label('carriers_id', 'Carrier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('carriers_id', [''=>'------ Select Required ------']+$select['carrier'], old('carriers_id',$register->carriers_id), ['class' => 'dynamicCarrier form-control', 'data-dependent'=>'routes',(isset($register->booking) && $register->booking != null) ? 'readonly' : '' ]) !!}
{!! Form::label('routes_id', 'Route', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('routes_id', [''=>'------ Select Required ------']+$select['routes'], old('routes_id',$register->routes_id), ['class' => 'routes form-control']) !!}
{!! Form::label('platforms_id', 'Product', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('platforms_id', [''=>'------ Select Required ------']+$select['platform'], old('platforms_id',$register->platforms_id), ['class' => 'form-control platform', 'data-dependent'=>'loading_plants']) !!}
{!! Form::label('vessel_id', 'Vessel', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('vessel_id', [''=>'------ Select Required ------']+$select['vessel'], old('vessel_id',$register->vessel_id), ['class' => 'form-control select_vessel']) !!}
{!! Form::label('voyage', 'Voyage', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('voyage', old('voyage',$register->voyage), ['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'], old('port_destinations',$register->port_destinations), ['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('loading_ports_id',$register->loading_ports_id), ['class' => 'destinationPort form-control','multiple'=>'multiple']) !!}
@php $draftCutoff = $register->draftCutoffDate.'T'.date( 'H:i' , strtotime($register->draftCutofftime)); $cargoCutoff = $register->cargoCutoffDate.'T'.date( 'H:i' , strtotime($register->cargoCutofftime)); $vgmCutoff = $register->vgmCutoffDate.'T'.date( 'H:i' , strtotime($register->vgmCutoffTime)); if($register->imoCutoffDate) $imoCutoff = $register->imoCutoffDate .'T'.date( 'H:i' , strtotime($register->imoCutoffTime)); else $imoCutoff = ''; @endphp

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',$register->transhipments), ['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', old('transitTime',$register->transitTime), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('container_types_id', 'Container Type', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('container_types_id', [''=>'------ Select Required ------']+$select['containerType'], old('container_types_id',$register->container_types_id), ['class' => 'form-control']) !!}
{!! Form::label('containerQty', 'Container Quantity', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('containerQty', old('containerQty',$register->containerQty), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('dischargeTerminal', 'Discharge Terminal', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('dischargeTerminal', [''=>'------ Select Required ------']+$select['loadingTerminal'], old('dischargeTerminal',$register->dischargeTerminal), ['class' => 'form-control']) !!}
{!! Form::label('gateInForecast', 'Gate IN / Opening Forecast', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::date('gateInForecast', old('gateInForecast',$register->gateInForecast), ['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', old('freeTimeDestination',$register->freeTimeDestination), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('freeTimeOrigin', 'Free Time Origin (days)', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('freeTimeOrigin', old('freeTimeOrigin',$register->freeTimeOrigin), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('incoterm', 'Incoterm ', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('incoterm', [''=>'-- Select Required --']+$select['incoterm'], old('incoterm', $register->incoterm), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;']) !!}
{!! Form::label('FreightRate', 'Freight Rate (USD)', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('FreightRate', old('FreightRate',$register->FreightRate), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('FreightBy', 'Freigh Payable By', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('FreightBy', old('FreightBy',$register->FreightBy), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('FreightAt', 'Freight In', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('FreightAt', old('FreightAt',$register->FreightAt), ['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'], old('cargo_types_id',$register->cargo_types_id), ['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'], old('u_n_s_id',$register->u_n_s_id), ['class' => 'form-control']) !!}
{!! Form::label('temperature', 'Temperature (°C)', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('temperature', old('temperature',$register->temperature), ['class' => 'form-control']) !!}
{!! Form::label('foodgrade', 'Foodgrade', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('foodgrade', [''=>'- Select Required -']+ $select['foodgrade'], old('foodgrade',$register->foodgrade), ['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', old('comments',$register->comments), ['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']) !!}
@yield('attach_edit_list')
{{-- --}}
@include('loading.modalTimeline.modal_timeline') @include('include.modal_changeBKP', ["rota" => '']) @include('include.modal_transferEmail', ["rota" => '']) @include('include.modal_updateEmail', ["rota" => '']) @include('loading.loadingPlan.scriptBk') @include('include.modal_deletar', ["rota" => "Booking Plan"]) @endSection