@foreach($forms as $form)
@if($form->type=='header')
{{ strip_tags($form->label) }}
@elseif($form->type=='paragraph')
{{ strip_tags($form->label) }}
@elseif(!empty($form->name) && !empty($form->label))
@php
$ke = strip_tags($form->name);
@endphp
@if(!empty($form->type) && $form->type=='file' && !empty($data->form_content[$ke]))
:
@foreach($data->form_content[$ke] as $file)
@php
$extension = pathinfo($file, PATHINFO_EXTENSION);
@endphp
@if(in_array($extension, ['jpg', 'jpeg', 'png', 'gif']))
}})
@else
Download file
@endif
@endforeach()
@else
@endif
@elseif(!empty($form->label))
{{ strip_tags($form->label) }}
@endif()
@endforeach