Package #{{$no_lenth}}
@php($required_field = ($request_data['required']==true)?'required':'')
@if(array_key_exists('title',$request_data) && $request_data['title'])
{!! Form::label('title', 'Title *:',array('class'=>'col-md-4 col-form-label','for'=>'title'),false) !!}
{!! Form::text('title['.$no_lenth.']',null,['class'=>'form-control title-multiple','placeholder'=>'Enter title','required'=>'required']) !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
@endif
{!! Form::label('length', ($request_data['required']==true)?'Length (inches) *:':'Length (inches):',array('class'=>'col-md-4 col-form-label','for'=>'length'),false) !!}
{!! Form::number('length['.$no_lenth.']',null,['class'=>'form-control','placeholder'=>'Enter length','id'=>'length'.$no_lenth,'step'=>'0.01',$required_field]) !!} @if ($errors->has('length')) {{ $errors->first('length') }} @endif
{!! Form::label('width', ($request_data['required']==true)?'Width (inches) *:':'Width (inches):',array('class'=>'col-md-4 col-form-label','for'=>'width'),false) !!}
{!! Form::number('width['.$no_lenth.']',null,['class'=>'form-control','placeholder'=>'Enter width','step'=>'0.01',$required_field]) !!} @if ($errors->has('width')) {{ $errors->first('width') }} @endif
@if(array_key_exists('item',$request_data) && $request_data['item'])
{!! Form::label('item', 'Is your item*:',array('class'=>'col-md-4 col-form-label','for'=>'item'),false) !!}
@php($pesonal_household_items = \App\Helpers\ShipmentHelper::PesonalHouseholdItem()) {!! Form::select('item['.$no_lenth.']', $pesonal_household_items, null, ['class' => 'form-control select2 item-select-multiple','placeholder'=>'Select','required'=>'required']) !!} @if ($errors->has('item')) {{ $errors->first('item') }} @endif
@endif
{!! Form::label('height', ($request_data['required']==true)?'Height (inches) *:':'Height (inches):',array('class'=>'col-md-4 col-form-label','for'=>'height'),false) !!}
{!! Form::number('height['.$no_lenth.']',null,['class'=>'form-control','placeholder'=>'Enter height','step'=>'0.01',$required_field]) !!} @if ($errors->has('height')) {{ $errors->first('height') }} @endif
{!! Form::label('weight', ($request_data['required']==true)?'Weight (lbs) *:':'Weight ('.$request_data['weight'].'):',array('class'=>'col-md-4 col-form-label','for'=>'weight'),false) !!}
{!! Form::number('weight['.$no_lenth.']',null,['class'=>'form-control','placeholder'=>'Enter weight','step'=>'0.01',$required_field]) !!} @if ($errors->has('weight')) {{ $errors->first('weight') }} @endif
@if(array_key_exists('inner_item_count',$request_data) && $request_data['inner_item_count'])
{!! Form::label('inner_item_count', 'How many items?:',array('class'=>'col-md-4 col-form-label','for'=>'inner_item_count'),false) !!}
{!! Form::number('inner_item_count['.$no_lenth.']',null,['class'=>'form-control','placeholder'=>'Enter item number']) !!} @if ($errors->has('inner_item_count')) {{ $errors->first('inner_item_count') }} @endif
@endif
@if(array_key_exists('note',$request_data) && $request_data['note'])
@php($note = (old('note[0]'))?old('note[0]'):((isset($data->dimensionWeight) && count($data->dimensionWeight) && isset($data->dimensionWeight[0]->note))?$data->dimensionWeight[0]->note:null)) {!! Form::label('note', 'Note:',array('class'=>'col-md-1 col-form-label','for'=>'note'),false) !!}
{!! Form::textarea('note['.$no_lenth.']',$note,['class'=>'form-control','placeholder'=>'Enter note','id'=>'note0','rows'=>'5']) !!} @if ($errors->has('note')) {{ $errors->first('note') }} @endif
@endif