@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
@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']) !!}
{!! 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
{!! 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('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']) !!}
@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
@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('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('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']) !!}
{{-- @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
{!! 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('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('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']) !!}
@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']) !!}
{!! 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('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
{!! 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']) !!}
@endif
@endif
@endsection
@section('edit-thirdPart')
@if (isset($register))
Comments / Attachment
@endif
@endsection