@if (isset($recentSubmittedForms) && !empty($recentSubmittedForms)) @foreach (reset($recentSubmittedForms) as $key => $form) @endforeach @foreach ($recentSubmittedForms as $userId => $userData) @php $keys = array_keys($recentSubmittedForms); $currentIndex = array_search($userId, $keys); $previousUserId = $currentIndex > 0 ? $keys[$currentIndex - 1] : null; $nextUserId = $currentIndex < count($keys) - 1 ? $keys[$currentIndex + 1] : null; @endphp @foreach ($userData as $questionTitle => $formDetails) @php $submitted_on = $formDetails['submitted_on'] ?? null; $dateTime = \Carbon\Carbon::parse($submitted_on); $formattedDate = $dateTime->format('Y-m-d'); @endphp @endforeach @endforeach @else {{-- @include('includes.no_results', ['noResultText' => 'No Record Found']) --}} @endif
{{ $key ?? '' }}Form Submitted View
{{ $formDetails['user_filled_answer'] ?? '' }} {{ $formattedDate }} Full Form
No Records Found