@if (isset($overallFormsData) && !empty($overallFormsData) && count($overallFormsData) > 0)
@php $header = []; @endphp @foreach ($formsHeader as $headKey => $headVal) @php $header[] = $headVal->component_question_title; @endphp @endforeach @foreach ($overallFormsData as $userId => $userData) @php $keys = array_column($overallFormsData, 'user_id'); $currentIndex = array_search($userData['user_id'], $keys); $previousUserId = $currentIndex > 0 ? $keys[$currentIndex - 1] : null; $nextUserId = $currentIndex < count($keys) - 1 ? $keys[$currentIndex + 1] : null; $nextToNextUserId = $currentIndex < count($keys) - 2 ? $keys[$currentIndex + 2] : null; @endphp @php $lockedCount = 1; @endphp @if (!empty($userData['concatenated_answers'])) @php $comment_header = []; @endphp @foreach ($userData['concatenated_answers'] as $ansDetails) @php $lockenableclass = (isset($ansDetails['is_locked']) && $ansDetails['is_locked'] == '1') ? 'locksticky' : ''; if ($lockenableclass) { $lockedCount++; // Increment the locked column counter } @endphp @endforeach @endif @php $prizeWon = ''; if($template->form_type == '3') { $prizeWon = App\Helpers\Helper::getPrizeFormWon($userData['user_id']); } @endphp @if($template->form_type == '3') @endif @php $formattedDate = ''; $submitted_on = $userData['formuser_submittedon'] ?? null; $getConvertedtime = \App\Helpers\AppHelper::changeTimeZone($submitted_on, $studioId); //$dateTime = \Carbon\Carbon::parse($submitted_on); //$formattedDate = $dateTime->format('d M Y'); $restrictClass =''; $buttonDisable = ''; if(Session::has('selected_studio_uuid')!=null){ if(Auth::user()->role_id==1){ $restrictClass = 'disabled-linkss'; $buttonDisable = 'disableLink'; } } @endphp @endforeach
{{ Illuminate\Support\Str::limit($headVal->component_question_title ?? '', 60, '...') }}Form Submitted PDF View Actioned By
{{ $prizeWon }}{{ $getConvertedtime }} Full Form {{ $userData['actioned_by'] }}
@else @if($exportAlone == '1')

This form data is only available for export. It doesn't contain any listing input.

@else @include('includes.no_results', ['noResultText' => 'No Submissions Found']) @endif @endif