@section('create-firstPart') @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', 'SAOE Number', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('SAOE', '', ['class' => 'form-control', 'disabled' => 'disabled']) !!}
@endsection @section('create-secoundPart')

Booking Details

CSA Service

{!! Form::checkbox('BlDraft', 1); !!} {!! Form::label('BlDraft', 'BL Draft', [ 'class' => 'pr-16 control-label form-check-label alignCheck']) !!}
{!! Form::checkbox('VGM', 1); !!} {!! Form::label('VGM', 'VGM', [ 'class' => 'w-15 control-label form-check-label alignCheck']) !!}
{!! 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['client'], old('clients_id',null), ['class' => 'dynamic2 clients_id form-control', 'data-dependent'=>'shippers']) !!} {{ Form::hidden('clients_fantasyName', old('clients_fantasyName',null)) }}
{!! Form::label('shippers_id', 'Shipper', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('shippers_id', $select['shipper'], old('shippers_id',null), ['class' => ' shippers form-control', 'data-dependent'=>'platform']) !!}
{!! Form::label('shipperReference', 'Shipper Reference', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('shipperReference', (old('shipperReference') != null ? 'shipperReference' : ''), ['class' => 'form-control']) !!}
@if( (isset($register)) && ($register->spotSales()->exists()) )

SPOT Booking!!!

@endif
@endsection @section('create-thirdPart')
{!! Form::label('carriers_id', 'Carrier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('carriers_id', $select['carrier'], old('carriers_id',null), ['class' => 'dynamicCarrier form-control', 'data-dependent'=>'routes']) !!}
{!! Form::label('routes_id', 'Route', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('routes_id', $select['routes'], old('routes_id',null), ['class' => 'routes form-control']) !!}
{!! Form::label('freight_forwarders_id', 'Freight Forwarder', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('freight_forwarders_id', $select['freight_forwarders'], old('freight_forwarders_id',80), ['class' => 'form-control']) !!}
{!! Form::label('platforms_id', 'Product', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('platforms_id', $select['platform'], old('platforms_id',null), ['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',null), ['class' => 'form-control select_vessel']) !!}
{!! Form::label('voyage', 'Voyage', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('voyage', old('voyage',null), ['class' => 'form-control']) !!}

ETA POD deve ser maior que o ETD POL

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

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', old('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['containerType'], old('container_types_id',null), ['class' => 'form-control', 'id'=>'container_types_id']) !!}
{!! Form::label('containerQty', 'Container Quantity', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('containerQty', old('containerQty',null), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('loading_terminals_id', 'Loading Terminal', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('loading_terminals_id', $select['loadingTerminal'], old('loading_terminals_id',null), ['class' => 'form-control']) !!}
{!! Form::label('gateInForecast', 'Gate IN / Opening Forecast', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::date('gateInForecast', old('gateInForecast',null), ['class' => 'form-control ', 'min' => '2019-01-01', 'max' => '2080-01-01', 'style' => 'text-transform:uppercase;' ]) !!}

Data fora do período permitido

{!! Form::label('freeTimeDestination', 'Free Time At Destination (days)', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('freeTimeDestination', old('freeTimeDestination',null), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('freeTimeOrigin', 'Free Time Origin (days)', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('freeTimeOrigin', old('freeTimeOrigin',null), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;', 'step'=>'Any' ]) !!}
{!! Form::label('incoterm', 'Incoterm ', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('incoterm', $select['incoterm'], old('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', old('FreightRate',null), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('FreightBy', 'Freigh Payable By', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('FreightBy', old('FreightBy',null), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('FreightAt', 'Freight In', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::text('FreightAt', old('FreightAt',null), ['class' => 'form-control ', 'style' => 'text-transform:uppercase;' ]) !!}
@endsection @section('create-commentsAndAttachment')

Comments / Attachment

{!! Form::label('comments', 'Comments / Especial Instructions', [ 'class' => 'w-100 control-label']) !!} {!! Form::textarea('comments', old('comments',null), ['class' => 'form-control textsAreaSuper', 'rows' => 3 , 'id' => 'comments']) !!}
{!! Form::select('anexo_types_id[]',$select['anexo_types_id'], null, ['class' => 'form-control', 'style'=>'height:40px']) !!}
@endsection @section('edit-firstPart') @if (isset($register))
{!! 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::label('SAOE', 'SAOE Number', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('SAOE', old('SAOE',$register->SAOE) , ['class' => 'form-control', 'disabled' => 'disabled']) !!}
@endif @endsection @section('edit-secoundPart') @if (isset($register))

Booking Details

@if(isset($select['ExBooking'])) {!! $select['ExBooking'] !!} @endif

CSA Service

{!! Form::checkbox('BlDraft', 1, old('BlDraft',$register->BlDraft)); !!} {!! Form::label('BlDraft', 'BL Draft', [ 'class' => 'pr-16 control-label form-check-label alignCheck']) !!}
{!! Form::checkbox('VGM', 1, old('VGM',$register->VGM)); !!} {!! Form::label('VGM', 'VGM', [ 'class' => 'w-15 control-label form-check-label alignCheck']) !!}
@if($register->manualEdit != 'Yes')

{{$register->loadingType == 'BKP' ? 'Logistics Plan' : 'Booking'}}

{!! Form::checkbox('changePlan', 1, null, [ "data-toggle"=>"modal", "data-target"=>"#changeBKP", "data-placement"=>"top", "data-catid"=>$register->id, 'class'=>'changePlan logisticPlan' ]) !!} {!! Form::label('changePlan', ($register->loadingType == 'BKP' ? 'Add Schedule' : 'Delete Schedule'), [ 'class' => 'pr-16 control-label w-50']) !!}
@endif @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['client'], old('clients_id',$register->clients_id), ['class' => 'dynamic2 clients_id form-control', 'data-dependent'=>'shippers' , (isset($register->manualEdit) && $register->manualEdit == 'Yes' ? 'Readonly' : '')]) !!} {{ 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['shipper'], old('shippers_id',$register->shippers_id), ['class' => ' shippers form-control', 'data-dependent'=>'platform']) !!}
{!! Form::label('shipperReference', 'Shipper Reference', [ 'class' => 'w-100 control-label']) !!} {!! Form::text('shipperReference', (old('shipperReference', $register->shipperReference)), ['class' => 'form-control']) !!}
@if($register->spotSales()->exists())

SPOT Booking!!!

@endif
{!! Form::label('carriers_id', 'Carrier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('carriers_id', $select['carrier'], old('carriers_id',$register->carriers_id), ['class' => 'dynamicCarrier form-control', 'data-dependent'=>'routes',(isset($register->booking) && $register->booking != null) ? 'disabled' : '' ]) !!}
{!! Form::label('routes_id', 'Route', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('routes_id', $select['routes'], old('routes_id',$register->routes_id), ['class' => 'routes form-control']) !!}
{!! Form::label('freight_forwarders_id', 'Freight Forwarder', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('freight_forwarders_id', $select['freight_forwarders'], old('routes_id',$register->freight_forwarders_id), ['class' => 'equipment form-control']) !!}
{!! Form::label('platforms_id', 'Product', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('platforms_id', $select['platform'], old('platforms_id',$register->platforms_id), ['class' => 'form-control platform', 'data-dependent'=>'loading_plants']) !!} {!! (isset($register->contract_qty_per_months[0]) ? '

Contract Info: ' . ($register->contract_qty_per_months[0]->contract_details->platforms->descricao ?? '-') .'

': '') !!}
{!! Form::label('vessel_id', 'Vessel', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('vessel_id', $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']) !!}
manual_integration == 'Yes' ? 'Checked' : '')) ))}} data-toggle="toggle" data-on="Manual Integ." data-off="Auto Integ." data-size="mini"> {!! (isset($register->contract_qty_per_months[0]) ? '

Contract Period: ' . date('d-m-Y', strtotime($register->contract_qty_per_months[0]->dtfrom)) . ' To: ' . date('d-m-Y', strtotime($register->contract_qty_per_months[0]->dtto)) . '

': '') !!}

ETA POD deve ser maior que o ETD POL

{!! Form::label('loading_ports_id', 'Loading Port', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('loading_ports_id', $select['loadingPort'], old('loading_ports_id',$register->loading_ports_id), ['class' => 'form-control']) !!} {!! (isset($register->contract_qty_per_months[0]) ? '

Contract Loading Port: ' . ($register->contract_qty_per_months[0]->loading_ports->descricao ?? '-'). '

': '') !!}
{!! Form::label('port_destinations', 'Destination Port', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('port_destinations', $select['destinationPort'], old('loading_ports_id',$register->port_destinations), ['class' => 'destinationPort form-control','multiple'=>'multiple']) !!} @if($errors->has('port_destinations')) {{$errors->first('port_destinations')}} @endif {!! (isset($register->contract_qty_per_months[0]) ? '

Contract Destination: ' . $register->contract_qty_per_months[0]->contract_details->port_destination->place . ', ' . $register->contract_qty_per_months[0]->contract_details->port_destination->country . '

': '') !!}
{{-- @dd($depara['draft']) --}} @php $draftCutoff = old('draftCutoffDate',( isset($scrapFile['draft']) ? $scrapFile['draft']: (isset($register->draftCutoffDate) ? $register->draftCutoffDate.'T'.date( 'H:i' , strtotime($register->draftCutofftime)) : '') )); $cargoCutoff = old('cargoCutoffDate',( isset($scrapFile['cargo']) ? $scrapFile['cargo']: (isset($register->cargoCutoffDate) ? $register->cargoCutoffDate.'T'.date( 'H:i' , strtotime($register->cargoCutofftime)) : '') )); $vgmCutoff = old('vgmCutoffDate',( isset($scrapFile['vgm']) ? $scrapFile['vgm']: (isset($register->vgmCutoffDate) ? $register->vgmCutoffDate.'T'.date( 'H:i' , strtotime($register->vgmCutoffTime)) : '') )); $imoCutoff = old('imoCutoffDate',(isset($register->imoCutoffDate) ? $register->imoCutoffDate.'T'.date( 'H:i' , strtotime($register->imoCutoffTime)) : '')) ; @endphp

Draft Cutoff deve ser menor que ETD POL

{!! isset($scrapFile['draft']) ? '

Old Draft Date: ' . (isset($register->draftCutoffDate) ? date('d-m-Y', strtotime($register->draftCutoffDate)).' '.$register->draftCutofftime : '') . '

': '' !!}

Cargo estar entre ETD POL e Draft Cutoff

{!! isset($scrapFile['cargo']) ? '

Old Cargo Date: ' . (isset($register->cargoCutoffDate) ? date('d-m-Y', strtotime($register->cargoCutoffDate)).' '.$register->cargoCutofftime : '') . '

': '' !!}

VGM deve estar entre Draft Cutoff e Cargo Cutoff

{!! isset($scrapFile['vgm']) ? '

Old VGM Date: ' . (isset($register->vgmCutoffDate) ? date('d-m-Y', strtotime($register->vgmCutoffDate)).' '.$register->vgmCutoffTime : '') . '

': '' !!}
{!! 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-80 control-label']) !!} {!! Form::checkbox('has_flexitank', 'Yes', $register->has_flexitank == 'No' ? false : true, ['disabled', 'data-toggle="toggle"', 'data-on="Has Flexi"', 'data-off="Has Flexi"', 'data-size="mini"']) !!} {!! Form::select('container_types_id', $select['containerType'], old('container_types_id',$register->container_types_id), ['class' => 'form-control', 'id'=>'container_types_id']) !!} {!! (isset($register->contract_qty_per_months[0]) ? '

Contract Eq. Type: ' . ($register->contract_qty_per_months[0]->container_types->descricao ?? '-' ). '

': '') !!}
{!! 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('loading_terminals_id', 'Loading Terminal', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('loading_terminals_id', $select['loadingTerminal'], old('loading_terminals_id',$register->loading_terminals_id), ['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;' ]) !!}

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;' ]) !!}
@if ($register->loadingType == 'BKP')
{!! Form::label('cargo_types_id', 'Cargo Type', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('cargo_types_id', $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['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

@endif
@if ($register->loadingType == 'LGP')

Stuffing Information

{!! (isset($register->contract_qty_per_months[0]) ? '

Contract Period Qty: ' . ($register->contract_qty_per_months[0]->qtyTons ?? '-') . '
' . 'Contract Supplier: ' . ($register->contract_qty_per_months[0]->loading_plants->descricao ?? '-') . '

': '') !!}
@if(old('emptyReleaseQty')) @for($i=0; $i < count(old('emptyReleaseQty')) ; $i++)
{!! Form::label('tank_owners_id', 'Tank Owner', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('tank_owners_id[]', [''=>'------ Select Required ------']+$select['tankOwner'], old('tank_owners_id.'.$i), ['class' => 'form-control']) !!}
{!! Form::label('flexi_suppliers_id', 'Flexi Supplier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('flexi_suppliers_id[]', [''=>'------ Select Required ------']+$select['flexiSupplier'], old('flexi_suppliers_id.'.$i), ['class' => 'form-control']) !!}
{!! Form::label('empty_realese_places_id', 'Empty Release Place', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('empty_realese_places_id[]', [''=>'------ Select Required ------']+$select['EmptyRealesePlace'], old('empty_realese_places_id.'.$i), ['class' => 'form-control']) !!}
{!! Form::label('emptyReleaseQty', 'Qty', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('emptyReleaseQty[]', old('emptyReleaseQty.'.$i),['class' => 'form-control']) !!}
{!! Form::label('emptyReleaseDate', 'Empty Release Date', [ 'class' => 'w-100 control-label']) !!} {!! Form::date('emptyReleaseDate[]', old('emptyReleaseDate.'.$i),['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@if($i==0)
@else
@endif
@endfor @else @foreach ($loading_empties as $item) @if($element==0)
{!! Form::label('tank_owners_id', 'Tank Owner', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('tank_owners_id[]', $select['tankOwner'], old('tank_owners_id.'.$element, $item->tank_owners_id), ['class' => 'form-control']) !!}
{!! Form::label('flexi_suppliers_id', 'Flexi Supplier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('flexi_suppliers_id[]', $select['flexiSupplier'], old('flexi_suppliers_id.'.$element, $item->flexi_suppliers_id), ['class' => 'form-control']) !!}
{!! Form::label('empty_realese_places_id', 'Empty Release Place', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('empty_realese_places_id[]', $select['EmptyRealesePlace'], old('empty_realese_places_id.'.$element, $item->empty_realese_places_id), ['class' => 'form-control']) !!}
{!! Form::label('emptyReleaseQty', 'Qty', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('emptyReleaseQty[]', old('emptyReleaseQty.'.$element, $item->emptyReleaseQty),['class' => 'form-control']) !!}
{!! Form::label('emptyReleaseDate', 'Empty Release Date', [ 'class' => 'w-100 control-label']) !!} {!! Form::date('emptyReleaseDate[]', old('emptyReleaseDate.'.$element, $item->emptyReleaseDate),['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@else
{!! Form::label('tank_owners_id', 'Tank Owner', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('tank_owners_id['.$element.']', $select['tankOwner'], old('tank_owners_id.'.$element, $item->tank_owners_id), ['class' => 'form-control' ]) !!}
{!! Form::label('flexi_suppliers_id', 'Flexi Supplier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('flexi_suppliers_id['.$element.']', $select['flexiSupplier'], old('flexi_suppliers_id.'.$element, $item->flexi_suppliers_id), ['class' => 'form-control' ]) !!}
{!! Form::label('empty_realese_places_id', 'Empty Release Place', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('empty_realese_places_id['.$element.']', $select['EmptyRealesePlace'], old('empty_realese_places_id.'.$element, $item->empty_realese_places_id), ['class' => 'form-control']) !!}
{!! Form::label('emptyReleaseQty', 'Qty', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('emptyReleaseQty['.$element.']', old('emptyReleaseQty.'.$element, $item->emptyReleaseQty),['class' => 'form-control']) !!}
{!! Form::label('emptyReleaseDate', 'Empty Release Date', [ 'class' => 'w-100 control-label']) !!} {!! Form::date('emptyReleaseDate['.$element.']', old('emptyReleaseDate.'.$element, $item->emptyReleaseDate),['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@endif
@endforeach @if($element==0)
{!! Form::label('tank_owners_id', 'Tank Owner', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('tank_owners_id[]', $select['tankOwner'], null, ['class' => 'form-control']) !!}
{!! Form::label('flexi_suppliers_id', 'Flexi Supplier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('flexi_suppliers_id[]', $select['flexiSupplier'], null, ['class' => 'form-control']) !!}
{!! Form::label('empty_realese_places_id', 'Empty Release Place', [ 'class' => 'w-100 control-label']) !!} {!! Form::select("empty_realese_places_id[]", $select['EmptyRealesePlace'], null, ['class' => 'form-control']) !!}
{!! Form::label('emptyReleaseQty', 'Qty', [ 'class' => 'w-100 control-label']) !!} {!! Form::number("emptyReleaseQty[]", null,['class' => 'form-control']) !!}
{!! Form::label('emptyReleaseDate', 'Empty Release Date', [ 'class' => 'w-100 control-label']) !!} {!! Form::date("emptyReleaseDate[]", null,['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@endif @endif
@if(old('stuffingQty')) @for($i=0; $i < count(old('stuffingQty')) ; $i++)
{!! Form::label('loading_plants_id', 'Loading Plant', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('loading_plants_id[]', $select['loadingPlant'], old('loading_plants_id.'.$i), ['class' => 'loading_plants form-control']) !!}
{!! Form::label('stuffing_terminals_id', 'Stuffing Place', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('stuffing_terminals_id[]', $select['StuffingTerminal'], old('stuffing_terminals_id.'.$i), ['class' => 'form-control']) !!}
{!! Form::label('stuffingQty', 'Qty', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('stuffingQty[]', old('stuffingQty.'.$i),['class' => 'form-control']) !!}
{!! Form::label('stuffingDate', 'Stuffing Date', [ 'class' => 'w-100 control-label']) !!} {!! Form::date('stuffingDate[]', old('stuffingDate.'.$i),['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@if($i==0)
@else
@endif
@endfor @else @foreach ($loading_stuffings as $item) @if($element==0)
{!! Form::label('loading_plants_id', 'Loading Plant', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('loading_plants_id[]', $select['loadingPlant'], old('loading_plants_id.'.$element, $item->loading_plants_id), ['class' => 'loading_plants form-control']) !!}
{!! Form::label('stuffing_terminals_id', 'Stuffing Place', [ 'class' => 'w-100 control-label']) !!} {!! Form::select("stuffing_terminals_id[]", $select['StuffingTerminal'], old('stuffing_terminals_id.'.$element, $item->stuffing_terminals_id), ['class' => 'equipment form-control']) !!}
{!! Form::label('stuffingQty', 'Qty', [ 'class' => 'w-100 control-label']) !!} {!! Form::number("stuffingQty[]", old('stuffingQty.'.$element, $item->stuffingQty),['class' => 'form-control']) !!}
{!! Form::label('stuffingDate', 'Stuffing Date', [ 'class' => 'w-100 control-label']) !!} {!! Form::date("stuffingDate[]", old('stuffingDate.'.$element, $item->stuffingDate),['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@else
{!! Form::label('loading_plants_id', 'Loading Plant', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('loading_plants_id['.$element.']', $select['loadingPlant'], old('loading_plants_id.'.$element, $item->loading_plants_id), ['class' => 'loading_plants form-control']) !!}
{!! Form::label('stuffing_terminals_id', 'Stuffing Place', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('stuffing_terminals_id['.$element.']', $select['StuffingTerminal'], old('stuffing_terminals_id.'.$element, $item->stuffing_terminals_id), ['class' => 'equipment form-control']) !!}
{!! Form::label('stuffingQty', 'Qty', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('stuffingQty['.$element.']', old('stuffingQty.'.$element, $item->stuffingQty),['class' => 'form-control']) !!}
{!! Form::label('stuffingDate', 'Stuffing Date', [ 'class' => 'w-100 control-label']) !!} {!! Form::date('stuffingDate['.$element.']', old('stuffingDate.'.$element, $item->stuffingDate),['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@endif
@endforeach @if($element==0)
{!! Form::label('loading_plants_id', 'Loading Plant', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('loading_plants_id[]', $select['loadingPlant'], old('loading_plants_id'), ['class' => 'loading_plants form-control']) !!}
{!! Form::label('stuffing_terminals_id', 'Stuffing Place', [ 'class' => 'w-100 control-label']) !!} {!! Form::select("stuffing_terminals_id[]", $select['StuffingTerminal'], null, ['class' => 'form-control']) !!}
{!! Form::label('stuffingQty', 'Qty', [ 'class' => 'w-100 control-label']) !!} {!! Form::number("stuffingQty[]", null,['class' => 'form-control']) !!}
{!! Form::label('stuffingDate', 'Stuffing Date', [ 'class' => 'w-100 control-label']) !!} {!! Form::date("stuffingDate[]", null,['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@endif @endif
{!! Form::label('hauling_id', 'Hauling', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('hauling_id', $select['hauling'], old('hauling_id',$register->hauling_id), ['class' => 'form-control']) !!}
{!! Form::label('unity_minQtyLoaded', 'Min Qty per Eq.', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('unity_minQtyLoaded', old('unity_minQtyLoaded', $register->unity_minQtyLoaded), ['class' => 'form-control']) !!} Min load per equipment.
{!! Form::label('unity_maxQtyLoaded', 'Max Qty To Be Loaded', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('unity_maxQtyLoaded', old('unity_maxQtyLoaded',$register->unity_maxQtyLoaded), ['class' => 'form-control']) !!} Max load per equipment.
{!! Form::label('minQtyLoaded', 'Min Qty to be Loaded', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('minQtyLoaded', old('minQtyLoaded',$register->minQtyLoaded), ['class' => 'form-control', 'readonly']) !!}
{!! Form::label('maxQtyLoaded', 'Max Qty To Be Loaded', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('maxQtyLoaded', old('maxQtyLoaded',$register->maxQtyLoaded), ['class' => 'form-control', 'readonly']) !!}
{!! Form::label('cargo_types_id', 'Cargo Type', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('cargo_types_id', $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['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']) !!}
{!! Form::label('fumigations', 'Fumigation', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('fumigations', [''=>'-- Select Required --']+ $select['fumigation'], old('fumigations',$register->fumigations), ['class' => 'form-control']) !!}

IMO Cutoff deve ser menor que ETD POL

{!! Form::label('isotank_type', 'Isotank Type', [ 'class' => 'w-100 control-label' , 'id' => 'isotankType']) !!} {!! Form::select('isotank_type', $select['isotankTypes'], old('isotank_type',($register->isotankType->id ?? null)), ['class' => 'form-control']) !!}
{!! Form::label('isotank_preparation', 'Isotank Preparation', [ 'class' => 'w-100 control-label' , 'id' => 'isotankPreparation']) !!} {!! Form::select('isotank_preparation', $select['isotankPreparation'], old('isotank_preparation',($register->isotankPreparation->id ?? null)), ['class' => 'form-control']) !!}
{!! Form::label('isotankDetails', 'Isotank Details', [ 'class' => 'w-100 control-label', 'id'=>'labelTank' ]) !!} {!! Form::textarea('isotankDetails', old('isotankDetails',$register->isotankDetails), ['class' => 'form-control textsAreaSuper', 'rows' => 7, 'style' => 'text-transform:uppercase;' , 'id' => 'isoComments' ]) !!}

*Preencher apenas quando dados do(s) Equipamento(s) estiverem disponíveis

{!! Form::label('additionalDetails', 'Additional Details', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::textarea('additionalDetails', old('additionalDetails',$register->additionalDetails), ['class' => 'form-control textsAreaSuper', 'rows' => 7, 'style' => 'text-transform:uppercase;' , 'id' => 'addComments']) !!}
@else

Tank Owner

@forelse ($loading_empties as $key => $item)
{!! Form::label('tank_owners_id', 'Tank Owner', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('tank_owners_id[]', $select['tankOwner'], old('tank_owners_id[]', $item->tank_owners_id), ['class' => 'form-control']) !!}
{!! Form::label('flexi_suppliers_id', 'Flexi Supplier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('flexi_suppliers_id[]', $select['flexiSupplier'], old('flexi_suppliers_id[]', $item->flexi_suppliers_id), ['class' => 'form-control']) !!}
{!! Form::label('emptyReleaseQty', 'Qty', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('emptyReleaseQty[]', old('emptyReleaseQty[]', $item->emptyReleaseQty),['class' => 'form-control']) !!}
{{ Form::hidden('emptyReleaseDate[]', null) }} @if($loop->first)
@else
@endif
@empty
{!! Form::label('tank_owners_id', 'Tank Owner', [ 'class' => 'w-100 control-label' , 'id' => 'tankOwnerLabel']) !!} {!! Form::select('tank_owners_id[]', [''=>'------ Select Required ------']+$select['tankOwner'], old('tank_owners_id'), ['class' => 'form-control']) !!}
{!! Form::label('flexi_suppliers_id', 'Flexi Supplier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('flexi_suppliers_id[]', [''=>'------ Select Required ------']+$select['flexiSupplier'], old('tank_owners_id'), ['class' => 'form-control']) !!}
{!! Form::label('emptyReleaseQty', 'Quantity', [ 'class' => 'w-100 control-label']) !!} {!! Form::number("emptyReleaseQty[]", null,['class' => 'form-control']) !!}
{{ Form::hidden('emptyReleaseDate[]', null) }}
@endforelse
{!! Form::label('isotank_type', 'Isotank Type', [ 'class' => 'w-100 control-label' , 'id' => 'isotankType']) !!} {!! Form::select('isotank_type', $select['isotankTypes'], old('isotank_type',($register->isotankType->id ?? null)), ['class' => 'form-control']) !!}
{!! Form::label('isotank_preparation', 'Isotank Preparation', [ 'class' => 'w-100 control-label' , 'id' => 'isotankPreparation']) !!} {!! Form::select('isotank_preparation', $select['isotankPreparation'], old('isotank_preparation',($register->isotankPreparation->id ?? null)), ['class' => 'form-control']) !!}
{!! Form::label('isotankDetails', 'Isotank Details', [ 'class' => 'w-100 control-label', 'id'=>'labelTank' ]) !!} {!! Form::textarea('isotankDetails', old('isotankDetails',$register->isotankDetails), ['class' => 'form-control textsAreaSuper', 'rows' => 7, 'style' => 'text-transform:uppercase;' , 'id' => 'isoTankComments' ]) !!}

*Preencher apenas quando dados do(s) Equipamento(s) estiverem disponíveis

@endif @endif @endsection @section('edit-thirdPart') @if (isset($register))

Comments / Attachment

{!! Form::label('comments', 'Comments', [ '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['anexo_types_id'], null, ['class' => 'form-control', 'style'=>'height:40px']) !!}
@endif @endsection