@extends('backend.layouts.master') @section('title', 'Réponse au formulaire') @section('content')
Réponse #{{ $response->id }} ({{ $response->form->name ?? '' }})

Soumis par : {{ optional($response->user)->email ?? 'guest' }}

Date : {{ $response->created_at->format('Y-m-d H:i') }}

@foreach ($response->answers as $ans) @endforeach
Champ Valeur
{{ $ans->field->label ?? $ans->field->name }} @if (isset($ans->field) && $ans->field->type === 'url' && $ans->value) {{ $ans->value }} @else {{ \Illuminate\Support\Str::isJson($ans->value) ? json_encode(json_decode($ans->value), JSON_PRETTY_PRINT) : $ans->value }} @endif
Retour
@endsection