@extends('layouts.app') @section('title', 'Health Questionnaire - ' . $healthQuestionnaire->title) @section('content')

{{ $healthQuestionnaire->title }}

@if($healthQuestionnaire->description)

{{ $healthQuestionnaire->description }}

@endif
Please answer all questions honestly and completely. This information helps ensure your safety.
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())

Please fix the following errors:

    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf

Client Information

@foreach($healthQuestionnaire->questions as $index => $question) @php $questionId = $question['id'] ?? $index; $isRequired = $question['required'] ?? false; @endphp

Question {{ $index + 1 }} @if($isRequired) * @endif

{{ $question['question'] }}

@if($question['type'] === 'multiple_choice')
@foreach($question['options'] as $optionIndex => $option) @endforeach
@elseif($question['type'] === 'yes_no')
@elseif($question['type'] === 'rating_scale')
1 (Poor) 10 (Excellent)
5
@elseif($question['type'] === 'text_input')
@endif @if(isset($question['risk_weight']) && $question['risk_weight'] > 5)

This question is important for your safety assessment.

@endif
@endforeach

Consent and Submission

Your health information is confidential and will only be used for safety assessment purposes.

If you have questions about this form, please contact our studio directly.

@endsection