@csrf @foreach($row->details as $pivot) @php($details=\App\FormDetails::find($pivot->form_details_id))
@if($details->type=='image')
is_mandatory==1) @if($pivot->image==null) required @endif @endif type="file" class="dropify" name="{{$pivot->id}}_image" data-default-file="{{asset('storage/app/public/forms')."/".$pivot['image']}}" accept="image/*"/> <{{\App\CPU\translate('Only the following formats are allowed: jpeg, jpg, png, gif, svg, webp, avif.')}}/span>
@elseif($details->type=='text')
@else
is_mandatory==1) required @endif @if($details->type=='input') maxlength="{{$details->limit_character}}" @endif type="text" class="form-control" id="{{$pivot->id}}_title" name="{{$pivot->id}}_title" value="{{$pivot->title}}">
@endif
@endforeach