@include('layouts.shared/title-meta', ['title' => 'History']) @include('layouts.shared/head-css', ['mode' => $mode ?? '', 'demo' => $demo ?? ''])
| Submission Date | Submitted By | Workflow Status | @foreach($section['questions'] as $code => $question) @if(($question->type ?? '') === 'hidden') @continue @endif{{ $question->label ?? $code }} | @endforeachAction |
|---|---|---|---|---|
| {{ date('d M Y', strtotime($submission->updatedAt ?? $submission->createdAt)) }} | {{ $submission->user_info->name ?? '' }} | {{ $submission->workflow_status ?? '' }} | @foreach($section['questions'] as $code => $question) @if(($question->type ?? '') === 'hidden') @continue @endif @php $cell = $submission->formdata->{$code} ?? ''; if (is_array($cell)) { $cell = implode(', ', $cell); } elseif (is_object($cell)) { $cell = collect((array) $cell)->map(function ($val, $key) { return $key.': '.$val; })->implode(', '); } @endphp@if(($question->type ?? '') === 'file' && $cell) View @else {{ $cell }} @endif | @endforeachEdit |
| No submissions | ||||