{!! Form::open(['name'=>'editProjSpecFrm', 'id'=>'editProjSpecFrm', 'route' => 'projects.update.step3', 'method' => 'post', 'files' => true]) !!} {!! Form::hidden('project_id',$project->id) !!}
@php $specifications = ['Civil','Mechanical','Electrical','SCADA','O&M','Instrumental','Pipeline']; @endphp @foreach($specifications as $key=>$specification) {!! Form::hidden('specification_id['.$key.']',$key) !!}
{!! Form::label('specification_details_'.$key, 'Details *', ['for' => 'specification_details_'.$key]) !!} {!! Form::textarea('specification_details['.$key.']', isset($specification_data[$key]['details']) ? $specification_data[$key]['details'] : '',['id'=>'specification_details_'.$key,'class'=>'form-control text-editor']) !!}
{!! Form::label('specification_document_'.$key, 'Document *', ['for' => 'specification_document_'.$key]) !!}
{!! Form::file('specification_document['.$key.'][]',['id'=>'specification_document_'.$key,'class'=>'custom-file-input','multiple'=>true]) !!} {!! Form::label('specification_document_'.$key, 'Choose file', ['class' => 'custom-file-label']) !!}
@if(isset($specification_data[$key]['documents']) && !empty($specification_data[$key]['documents'])) @foreach($specification_data[$key]['documents'] as $key1 => $spec_doc) @endforeach @endif
@endforeach
{!! Form::close() !!}