{{ $submission->template->name }}

{{ $submission->number }} · {{ $submission->created_at->format('d-m-Y H:i') }}

@if(session('success'))
✓ {{session('success')}}
@endif
Nummer
{{$submission->number}}
Klant
{{$submission->customer_name ?: '—'}}
Ingevuld door
{{$submission->user->name}}
Status
{{ucfirst($submission->status)}}

Inhoud

@foreach($submission->schema_snapshot ?: ($submission->template->schema ?? []) as $field) @php($value=$submission->data[$field['key']]??null) @if($field['type']==='richtext')
{{$field['label']}}
{!! $value !!}
@elseif($field['type']==='checklist')
{{$field['label']}}
@foreach($field['items']??[] as $ri=>$item)
{{!empty($value[$ri])?'☑':'☐'}} {{$item}}
@endforeach
@elseif($field['type']==='table') @php($tableValue = is_array($value) ? $value : [])
{{$field['label']}}
@foreach($field['columns']??[] as $column)@endforeach @foreach($field['rows']??[] as $ri=>$row) @if(is_array($row) && array_key_exists('important', $row)) @php($selected = is_array($tableValue[$ri] ?? null) ? $tableValue[$ri] : []) @else @php($rowLabel = is_array($row) ? ($row['label'] ?? json_encode($row, JSON_UNESCAPED_UNICODE)) : $row) @for($ci=1;$ci{{ is_array($tableValue[$ri] ?? null) && array_key_exists($ci, $tableValue[$ri]) ? $tableValue[$ri][$ci] : '—' }} @endfor @endif @endforeach
{{$column}}
{{ $row['label'] ?? '' }} {{ $row['important'] ?? '' }}
@foreach($row['checks'] ?? [] as $ci=>$check)
{{ !empty($selected[$ci]) ? '☑' : '☐' }} {{ $check }}
@endforeach
{{ $rowLabel }}
@elseif($field['type']==='signature')
{{$field['label']}}
@if($value)Handtekening@elseGeen handtekening.@endif
@else @if(is_array($value)) @php($value=($value['name']??json_encode($value,JSON_UNESCAPED_UNICODE))) @endif
{{$field['label']}}
{{$value === true ? 'Ja' : ($value === false ? 'Nee' : ($value ?: '—'))}}
@endif @endforeach
@if($submission->files->isNotEmpty()) @endif @if($submission->links->isNotEmpty())

Gekoppelde bestanden

@foreach($submission->links as $link) @if($link->relation !== 'PEC uit dit formulier')
{{class_basename($link->linkable_type)}} #{{$link->linkable_id}}
{{$link->relation}}
@endif @endforeach
@endif