@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 }} {{ \Illuminate\Support\Str::isJson($ans->value) ? json_encode(json_decode($ans->value), JSON_PRETTY_PRINT) : $ans->value }}
Retour
@endsection