@php // Get the form data $form = null; if (!empty($data['form_id'])) { $form = \App\Models\Form::with('submissions')->find($data['form_id']); } // If no form found, show error or fallback if (!$form) { if (auth()->check()) { echo '
{{ $formDescription }}