@extends('layout.padrao') @section('title', 'Loading Plan') @section('content') @include('loading.loadingPlan.modules') @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() }}
{{ Form::hidden('loadingType', 'LGP') }} @yield('create-firstPart')
@yield('create-secoundPart')
@yield('create-thirdPart')

Stuffing Information

@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
{!! Form::label('tank_owners_id', 'Tank Owner', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('tank_owners_id[]', [''=>'------ Select Required ------']+$select['tankOwner'], null, ['class' => 'form-control']) !!}
{!! Form::label('flexi_suppliers_id', 'Flexi Supplier', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('flexi_suppliers_id[]', [''=>'------ Select Required ------']+$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 Required ------']+$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
@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 Required ------']+$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
{!! 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 Required ------']+$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
{!! Form::label('hauling_id', 'Hauling', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('hauling_id', [''=>'------ Select Required ------']+$select['hauling'], old('hauling' , ''), ['class' => 'form-control']) !!}
{!! Form::label('minQtyLoaded', 'Min Qty to be Loaded', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('minQtyLoaded', null, ['class' => 'form-control' , 'step' => '0.001']) !!}
{!! Form::label('maxQtyLoaded', 'Max Qty To Be Loaded', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('maxQtyLoaded', null, ['class' => 'form-control' , 'step' => '0.001']) !!} Please fill maximum total allowed quantity. Ex. 220.000. Sum up volume of all Equipments.
{!! Form::label('cargo_types_id', 'Cargo Type', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('cargo_types_id', [''=>'------ Select Required ------']+ $select['cargoType'], old('cargoType' , ''), ['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('UN' , ''), ['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'], old('foodgrade' , ''), ['class' => 'form-control']) !!}
{!! Form::label('fumigations', 'Fumigation', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('fumigations', [''=>'-- Select Required --']+ $select['fumigation'], old('fumigation' , ''), ['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 Required ------']+$select['isotankTypes'], old('isotank_type'), ['class' => 'form-control']) !!}
{!! Form::label('isotank_preparation', 'Isotank Preparation', [ 'class' => 'w-100 control-label' , 'id' => 'isotankPreparation']) !!} {!! Form::select('isotank_preparation', [''=>'------ Select Required ------']+$select['isotankPreparation'], old('isotank_preparation'), ['class' => 'form-control']) !!}
{!! Form::label('isotankDetails', 'Isotank Details', [ 'class' => 'w-100 control-label', 'id'=>'labelTank' ]) !!} {!! Form::textarea('isotankDetails', old('isotankDetails' , ''), ['class' => 'form-control textsAreaSuper', 'rows' => 7, 'sytle' => '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' , ''), ['class' => 'form-control textsAreaSuper', 'rows' => 7, 'sytle' => 'text-transform:uppercase;' , 'id' => 'addComments' ]) !!}
@yield('create-commentsAndAttachment') @include('loading.loadingPlan.script') @include('include.btn_registrar') @include('loading.loadingPlan.style') @endSection