@include('include.btn_atualizar')
{!! Form::label('userName', 'User Name', [ 'class' => 'w-100 control-label', ]) !!}
{!! Form::text('userName', old('userName',$register->usuarios->nome), ['class' => 'form-control ', 'disabled'=>'disabled', 'sytle' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('userLogin', 'User Login', [ 'class' => 'w-100 control-label', ]) !!}
{!! Form::text('userLogin', old('userLogin',$register->usuarios->login) , ['class' => 'form-control ', 'disabled'=>'disabled', 'sytle' => 'text-transform:uppercase;' ]) !!}
{!! Form::label('platforms_id', 'Platform', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('platforms_id', [''=>'------ Select Required ------']+$select['platform'], old('platforms_id',$register->platforms_id) , ['class' => ' platform_dynamic platforms form-control', 'data-dependent'=>'traders']) !!}
@if($errors->has('platforms_id'))
{{$errors->first('/')}}
@endif
{!! Form::label('traders_id', 'Trader', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('traders_id', $oldValues['traders_id'],old('traders_id', $register->traders_id),['class'=>'traders form-control']) !!}
@if($errors->has('traders_id'))
{{$errors->first('traders_id')}}
@endif
{!! Form::label('ship_to_id', 'Ship To', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('ship_to_id', [''=>'------ Select Required ------']+$select['shipTo'], old('ship_to_id',$register->ship_to_id),['class'=>'ship_To form-control']) !!}
@if($errors->has('ship_to_id'))
{{$errors->first('ship_to_id')}}
@endif
{!! Form::label('clients_id', 'Client', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('clients_id', $oldValues['clients_id'], old('clients_id',$register->clients_id), ['class' => 'dynamic_description clients form-control','multiple'=>'multiple', 'data-dependent'=>'clientDescription']) !!}
@if($errors->has('clients_id'))
{{$errors->first('clients_id')}}
@endif
{!! Form::label('brokers_id', 'Broker', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('brokers_id', $oldValues['brokers_id'], old('brokers_id',$register->brokers_id), ['class' => 'brokers form-control', 'data-dependent'=>'suppliers']) !!}
@if($errors->has('brokers_id'))
{{$errors->first('brokers_id')}}
@endif
{!! Form::label('clientDescription', 'Client Description', [ 'class' => 'w-100 control-label']) !!}
{!! Form::textarea('clientDescription', old('brokers_id',$register->clientDescription), ['id'=>'clientDescription','class' => 'form-control', 'rows' => 3,'readonly'=>'readonly']) !!}
{!! Form::label('products_id', 'Product', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('products_id', $oldValues['products_id'], old('products_id',$register->products_id), ['class' => 'products form-control', 'data-dependent'=>'brands']) !!}
@if($errors->has('products_id'))
{{$errors->first('products_id')}}
@endif
{!! Form::label('brands_id', 'Brand', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('brands_id', $oldValues['brands_id'], old('brands_id',$register->brands_id), ['class' => 'brands form-control', 'data-dependent'=>'brokers']) !!}
@if($errors->has('brands_id'))
{{$errors->first('brands_id')}}
@endif
{!! Form::label('currencies_id', 'Currancy', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('currencies_id', [''=>'------ Select Required ------']+$select['currancy'], old('currencies_id',$register->currencies_id), ['class' => 'currencies form-control']) !!}
@if($errors->has('currencies_id'))
{{$errors->first('currencies_id')}}
@endif
{!! Form::label('priceTon', 'Price/Ton', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('priceTon', old('priceTon', $register->priceTon),['class' => 'form-control','step'=>'any']) !!}
@if($errors->has('priceTon'))
{{$errors->first('priceTon')}}
@endif
Payment / Shipping Info
{!! Form::label('payment_terms_id', 'Payment Terms', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('payment_terms_id', [''=>'------ Select Required ------']+$select['paymentTerms'], old('payment_terms_id', $register->payment_terms_id), ['class' => 'dynamic_description payment_terms form-control', 'data-dependent'=>'paymentDescription']) !!}
@if($errors->has('payment_terms_id'))
{{$errors->first('payment_terms_id')}}
@endif
{!! Form::label('incoterms_id', 'Incoterm', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('incoterms_id', [''=>'------ Select Required ------']+$select['incoterm'], old('incoterms_id', $register->incoterms_id), ['class' => 'incoterms form-control']) !!}
@if($errors->has('incoterms_id'))
{{$errors->first('incoterms_id')}}
@endif
{!! Form::label('paymentDescription', 'Payment Description', [ 'class' => 'w-100 control-label']) !!}
{!! Form::textarea('paymentDescription', old('paymentDescription', $register->paymentDescription), ['id'=>'paymentDescription','class' => 'paymentDescription form-control', 'rows' => 5,'readonly'=>'readonly']) !!}
{!! Form::label('priceMtonTotal', 'Price m/Ton', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('priceMtonTotal', old('priceMtonTotal', $register->priceMtonTotal),['class' => 'form-control','step'=>'any']) !!}
@if($errors->has('priceMtonTotal'))
{{$errors->first('priceMtonTotal')}}
@endif
{!! Form::label('freightRateMton', 'Freight Rate m/ton', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('freightRateMton', old('freightRateMton', $register->freightRateMton),['class' => 'form-control','step'=>'any']) !!}
@if($errors->has('freightRateMton'))
{{$errors->first('freightRateMton')}}
@endif
{!! Form::label('insuranceMton', 'Insurance m/ton', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('insuranceMton', old('insuranceMton', $register->insuranceMton),['class' => 'form-control','step'=>'any']) !!}
@if($errors->has('insuranceMton'))
{{$errors->first('insuranceMton')}}
@endif
{!! Form::label('priceMtonCheck', 'Price m/ton Total', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('priceMtonCheck', old('priceMtonCheck', $register->priceMtonCheck),['class' => 'form-control','readonly'=>'readonly','step'=>'any']) !!}
@if($errors->has('priceMtonCheck'))
{{$errors->first('priceMtonCheck')}}
@endif
{!! Form::label('countries_id', 'Country of Destination', [ 'class' => 'col6 control-label']) !!}
{!! Form::select('countries_id', [''=>'------ Select Required ------']+$select['destinationCountry'], old('countries_id', $register->countries_id), ['class' => ' dynamic2 countries form-control', 'data-dependent'=>'port_destinations']) !!}
@if($errors->has('countries_id'))
{{$errors->first('countries_id')}}
@endif
{!! Form::label('port_destinations_id', 'Port of Destination', [ 'class' => 'col6 control-label']) !!}
{!! Form::select('port_destinations_id', $oldValues['port_destinations_id'], old('port_destinations_id',$register->port_destinations_id), ['class' => 'port_destinations form-control','multiple'=>'multiple']) !!}
@if($errors->has('port_destinations_id'))
{{$errors->first('port_destinations_id')}}
@endif
{!! Form::label('qualitySpec', 'Quality Spec', [ 'class' => 'w-100 control-label']) !!}
{!! Form::textarea('qualitySpec', old('qualitySpec',$register->qualitySpec), ['class' => 'form-control', 'rows' => 3]) !!}
@if($errors->has('qualitySpec'))
{{$errors->first('qualitySpec')}}
@endif
{!! Form::label('sample', 'Sample', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('sample', $select['sample'],old('sample',$register->sample), ['class' => 'form-control']) !!}
{!! Form::label('totalQtyT', 'Contract Total Quantity (tons)', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('totalQtyT', old('totalQtyT',$register->totalQtyT),['class' => 'form-control','step'=>'any']) !!}
@if($errors->has('totalQtyT'))
{{$errors->first('totalQtyT')}}
@endif
{!! Form::label('grossWeight', 'Gross Weight (tons)', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('grossWeight', old('grossWeight',$register->grossWeight),['class' => 'form-control','step'=>'any','readonly'=>'readonly']) !!}
@if($errors->has('grossWeight'))
{{$errors->first('grossWeight')}}
@endif
@foreach ($register->contract_packings as $item)
@if($element==0)
{!! Form::label('packing_types_id', 'Packyng Type', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('packing_types_id[]', $oldValues['packing_types_id'], old('packing_types_id.'.$element,$item->packing_types_id), ['class' => 'packing_types form-control']) !!}
{!! Form::label('packing_net_weights_id', 'Packing Net Weight (kgs)', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('packing_net_weights_id[]', $oldValues['packing_net_weights_id'], old('packing_net_weights_id.'.$element,$item->packing_net_weights_id), ['id'=>'net_weight', 'class' => 'dynamic_tare packing_net_weights form-control', 'data-dependent'=>'packing_type_nets']) !!}
{!! Form::label('packing_tares_id', 'Packing Tare', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('packing_tares_id[]', old('packing_tares_id.'.$element, $item->tare), ['id'=>'packing_type_nets', 'class' => 'packing_type_nets packing_tares_id form-control','readonly'=>'readonly']) !!}
{!! Form::label('totalPackingUnits', 'Total Of Packing Units', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('totalPackingUnits[]', old('totalPackingUnits.'.$element, $item->totalPackingUnits),['class' => 'totalPackingUnits_qty form-control']) !!}
@else
{!! Form::label('packing_types_id', 'Packyng Type', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('packing_types_id['.$element.']', $oldValues['packing_types_id'], old('packing_types_id.'.$element,$item->packing_types_id), ['class' => 'packing_types form-control']) !!}
{!! Form::label('packing_net_weights_id', 'Packing Net Weight (kgs)', [ 'class' => 'w-100 control-label']) !!}
{!! Form::select('packing_net_weights_id['.$element.']', $oldValues['packing_net_weights_id'], old('packing_net_weights_id.'.$element,$item->packing_net_weights_id), ['id'=>'net_weight', 'class' => 'dynamic_tare packing_net_weights form-control', 'data-dependent'=>'packing_type_nets']) !!}
{!! Form::label('packing_tares_id', 'Packing Tare', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('packing_tares_id['.$element.']', old('packing_tares_id.'.$element, $item->tare), ['id'=>'packing_type_nets', 'class' => 'packing_type_nets packing_tares_id form-control','readonly'=>'readonly']) !!}
{!! Form::label('totalPackingUnits', 'Total Of Packing Units', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('totalPackingUnits['.$element.']', old('totalPackingUnits.'.$element, $item->totalPackingUnits),['class' => 'totalPackingUnits_qty form-control']) !!}
@endif
@endforeach
{!! Form::label('shippingPeriodFrom', 'Shipping Period From', [ 'class' => 'w-100 control-label']) !!}
{!! Form::date('shippingPeriodFrom', old('shippingPeriodFrom',$register->shippingPeriodFrom),['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@if($errors->has('shippingPeriodFrom'))
{{$errors->first('shippingPeriodFrom')}}
@endif
{!! Form::label('shippingPeriodTo', 'Shipping Period To', [ 'class' => 'w-100 control-label']) !!}
{!! Form::date('shippingPeriodTo', old('shippingPeriodTo',$register->shippingPeriodTo),['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@if($errors->has('shippingPeriodTo'))
{{$errors->first('shippingPeriodTo')}}
@endif
Qty Per Month
@foreach ($register->qty_per_months as $item)
{!! Form::label('dtfrom', 'From', [ 'class' => 'w-100 control-label']) !!}
{!! Form::date('dtfrom[]', $item->dtfrom,['class' => $element . 'b form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@if($errors->has('dtfrom'))
{{$errors->first('dtfrom')}}
@endif
{!! Form::label('dtto', 'To', [ 'class' => 'w-100 control-label']) !!}
{!! Form::date('dtto[]', $item->dtto,['class' => 'form-control', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
@if($errors->has('dtto'))
{{$errors->first('dtto')}}
@endif
{!! Form::label('qtyTons', 'Qty (tons)', [ 'class' => 'w-100 control-label']) !!}
{!! Form::number('qtyTons[]', $item->qtyTons,['class' => 'decimalMask form-control','step'=>'any']) !!}
@if($errors->has('qtyTons'))
{{$errors->first('dtto')}}
@endif
@endforeach
{!! Form::label('totalQty', 'Qty Total (tons)', [ 'class' => 'w-100 control-label']) !!}
{!! Form::text('totalQty', old('totalQty',$item->totalQty),['class' => 'form-control', 'readonly'=>'readonly', 'step'=>'any']) !!}
@if($errors->has('totalQty'))
{{$errors->first('totalQty')}}
@endif
Attachment / Comments
@if (count($errors) > 0)
Whoops! There were some problems with your input.
- Extensões Válidas:doc,pdf,docx,zip,xml,xls,xlsx,png,ppt,mpeg,js,jpeg,jpg,csv,gif,txt
- Tamanho Máximo:300MB
@endif
@if($attachments)
@endif
{!! Form::label('comments', 'Comments', [ 'class' => 'w-100 control-label']) !!}
{!! Form::textarea('comments', old('comments',$register->comments), ['class' => 'form-control', 'rows' => 3]) !!}
@include('include.btn_atualizar')
{{ Form::close() }}