@php
$is_enabled_sub_ref_no = false;
if(isset($form->schema['settings']['form_submision_ref']['is_enabled']) && $form->schema['settings']['form_submision_ref']['is_enabled']) {
$is_enabled_sub_ref_no = true;
}
@endphp
@if(!empty($form->schema))
@php
$schema = $form->schema['form'];
$col_visible = $form['schema']['settings']['form_data']['col_visible'];
$btn_enabled = $form['schema']['settings']['form_data']['btn_enabled'];
@endphp
| @lang('messages.action') |
@if($is_enabled_sub_ref_no)
@lang('messages.submission_numbering') |
@endif
@foreach($schema as $element)
@if(in_array($element['name'], $col_visible))
{{ Str::limit($element['label'], 25)}}
|
@endif
@endforeach
@lang('messages.submitted_on') |
@foreach($data as $k => $row)
|
|
@if($is_enabled_sub_ref_no)
{{$row['submission_ref']}}
|
@endif
@foreach($schema as $row_element)
@if(in_array($row_element['name'], $col_visible))
@isset($row->data[$row_element['name']])
@if($row_element['type'] == 'file_upload')
@include('form_data.file_view', ['form_upload' => $row->data[$row_element['name']]])
@elseif($row_element['type'] == 'signature')
@if(!empty($row->data[$row_element['name']]))
@endif
@elseif(is_array($row->data[$row_element['name']]) && $row_element['type'] != 'file_upload')
{{implode(', ', $row->data[$row_element['name']])}}
@else
{!! nl2br($row->data[$row_element['name']]) !!}
@endif
@endisset
|
@endif
@endforeach
{{\Carbon\Carbon::createFromTimestamp(strtotime($row->created_at))->format($date_format)}}
{{$row->created_at->diffForHumans()}}
|
@endforeach
@else
Form Not found
@endif