@php $reUrl = ''; if($flag =='preview') { $reUrl=url()->previous(); } @endphp

{{$practitioner->first_name}} {{$practitioner->last_name}}

@if( isset( $invoiceSettings ) && $invoiceSettings->profession == 1 ) @foreach ($profession as $index => $p) {{$p->name}}@if(($index + 1) != count($profession)), @endif @endforeach @endif

{{$business->name}}

Personal Information

@if(isset($referralSources->name)) @endif @if( isset( $patient->refferal ) ) @endif

Emergency contact

Referral source

How did you hear about this clinic?

@foreach ($questions as $question) @if($question->name == 'health_history' && $health_history == 1) @foreach($question->disease as $disease) @endforeach @foreach($question->health_history_question as $que) @endforeach

Health History

{{$question->sub_header}}

{{$disease->title}}

{{$que->title ?? ''}}
@elseif($question->name == 'current_complaint' && $current_complaint == 1) {{-- --}} @if(isset($question->sequence_questions)) @foreach($question->sequence_questions as $val) @if($val->type == 'question') @foreach($val->options as $option) @endforeach @elseif($val->type == 'written_section') @elseif($val->type == 'yes_no_question') @foreach($val->options as $option) @endforeach @elseif($val->type == 'multiple_choice') @foreach($val->options as $option) @endforeach @elseif($val->type == 'checklist') @foreach($val->options as $option) @endforeach @elseif($val->type == 'scale')

{{$val->header}}

{{$val->sub_header}}

Current Complaint

{{$question->section}}

{{$option->title}}

{{isset($option->answer) ? $option->answer : '' }}

{{$val->header}}

{{$val->sub_header}}

{{$val->answer ?? ""}}

{{$val->header}}

{{$val->sub_header}}

{{$option->title}}

answer) && $option->answer == 1) checked @endif> answer) && $option->answer == 0) checked @endif>

{{$val->header}}

{{$val->sub_header}}

answer) && $val->answer == $option->id) checked @endif>

{{$val->header}}

{{$val->sub_header}}

answer) && $option->answer == 1) checked @endif>
@for ($i =1; $i <= 10; $i++) @endfor @for ($i =1; $i <= 10; $i++) @endfor
{{$i}}
answer) && $val->answer == $i) checked @endif>
@elseif($val->type == 'add_link')

Please find following links to files you may find useful.

{{$val->header}} @endif @endforeach @endif @elseif($question->name == 'health_fund' && $health_fund_details == 1)

{{$question->header}}

{{$question->sub_header}}

@elseif($question->name == 'pain_scale' && $pain_scale == 1)

Pain scale

{{$question->sub_header}}

@for ($i =1; $i <= 10; $i++) @endfor @for ($i =1; $i <= 10; $i++) @endfor
{{$i}}
answer) && $question->answer == $i) checked @endif>
@elseif($question->name == 'mood_scale' && $mood_scale == 1)

Mood scale

{{$question->sub_header}}

@for ($i =1; $i <= 10; $i++) @endfor @for ($i =1; $i <= 10; $i++) @endfor
{{$i}}
answer) && $question->answer == $i) checked @endif>
@elseif($question->name == 'sleep_quality_scale' && $sleep_quality_scale == 1)

Sleep quality scale

{{$question->sub_header}}

@for ($i =1; $i <= 10; $i++) @endfor @for ($i =1; $i <= 10; $i++) @endfor
{{$i}}
answer) && $question->answer == $i) checked @endif>
@elseif($question->name == 'energy_scale' && $energy_scale == 1)

Energy scale

{{$question->sub_header}}

@for ($i =1; $i <= 10; $i++) @endfor @for ($i =1; $i <= 10; $i++) @endfor
{{$i}}
answer) && $question->answer == $i) checked @endif>
@elseif($question->name == 'stool_chart' && $bowel_movements == 1) @php $getType=Common::getStoolChart(); @endphp @foreach ($getType as $key=>$type) @endforeach

Bowel movements

{{$question->sub_header}}

answer) && $question->answer == $key) checked @endif>
@elseif($question->name == 'menstrual_cycle' && $menstrual_cycle == 1) @foreach($question->sequence_questions as $val) @if($val->type == 'question') @foreach($val->options as $option) @endforeach @elseif($val->type == 'written_section') @elseif($val->type == 'yes_no_question') @foreach($val->options as $option) @endforeach @elseif($val->type == 'multiple_choice') @foreach($val->options as $option) @endforeach @elseif($val->type == 'checklist') @foreach($val->options as $option) @endforeach @elseif($val->type == 'scale')

{{$val->header}}

{{$val->sub_header}}

Menstrual cycle

{{$question->sub_header}}

{{$option->answer ?? ""}}

{{$val->sub_header}}

{{$val->answer ?? ""}}

{{$val->sub_header}}

{{$option->title}}

answer) && $option->answer == 1) checked @endif> answer) && $option->answer == 0) checked @endif>

{{$val->sub_header}}

{{$option->title}}

answer) && $val->answer == $option->id) checked @endif>

{{$val->sub_header}}

@for ($i =1; $i <= 10; $i++) @endfor @for ($i =1; $i <= 10; $i++) @endfor
{{$i}}
answer) && $question->answer == $i) checked @endif>
@elseif($val->type == 'add_link') {{$val->header}} @endif @endforeach @elseif($question->name == 'food_recall_diary' && $food_recall_diary == 1) @foreach($question->sequence_questions as $val) @if($val->type == 'question') @foreach($val->options as $option) @endforeach @elseif($val->type == 'written_section') @elseif($val->type == 'yes_no_question') @foreach($val->options as $option) @endforeach @elseif($val->type == 'multiple_choice') @foreach($val->options as $option) @endforeach @elseif($val->type == 'checklist') @foreach($val->options as $option) @endforeach @elseif($val->type == 'scale')

{{$val->header}}

{{$val->sub_header}}

Food recall diary

{{$question->sub_header}}

{{$option->answer ?? ""}}

{{$val->sub_header}}

{{$val->answer ?? ""}}

{{$val->sub_header}}

{{$option->title}}

answer) && $option->answer == 1) checked @endif> answer) && $option->answer == 0) checked @endif>

{{$val->sub_header}}

{{$option->title}}

answer) && $val->answer == $option->id) checked @endif>

{{$val->sub_header}}

@for ($i =1; $i <= 10; $i++) @endfor @for ($i =1; $i <= 10; $i++) @endfor
{{$i}}
answer) && $question->answer == $i) checked @endif>
@elseif($val->type == 'add_link') {{$val->header}} @endif @endforeach {{-- {{dd(11)}} --}} @elseif($question->name == 'upload_files' && $upload_files == 1)
@foreach( $getTestResults as $key => $value ) @endforeach

List of test results

{{ $value->type }}

@foreach($value->image as $key1 => $val)

{{ $val["filename"] }}


@endforeach
@elseif($question->name == 'written_section')

{{$question->answer ?? ""}}

@elseif($question->name == 'yes_no_question') @foreach($question->options as $option) @endforeach

{{$question->sub_header}}

{{$option->title}}

answer) && $option->answer == 1) checked @endif> answer) && $option->answer == 0) checked @endif>
@elseif($question->name == 'multiple_choice') @foreach($question->options as $option) @endforeach

{{$question->header}}

{{$question->sub_header}}

answer) && $question->answer == $option->id) checked @endif>
@elseif($question->name == 'checklist') @foreach($question->options as $option) @endforeach

{{$question->sub_header}}

@elseif($question->name == 'scale_one_two')

{{$question->header}}

{{$question->sub_header}}

@for ($i =1; $i <= 10; $i++) @endfor @for ($i =1; $i <= 10; $i++) @endfor
{{$i}}
answer) && $question->answer == $i) checked @endif>
@elseif($question->name == 'custom_section') @foreach($question->sequence_questions as $val) @if($val->type == 'written_section') @endif @if($val->type == 'yes_no_question') @foreach($val->options as $option) @endforeach @endif @if($val->type == 'multiple_choice') @foreach($val->options as $option) @endforeach @endif @if($val->type == 'checklist') @foreach($val->options as $option) @endforeach @endif @if($val->type == 'scale')

{{$val->header}}

{{$val->sub_header}}

{{$question->section_header}}

{{$question->section_sub_header}}

{{$val->header}}

{{$val->sub_header}}

{{$val->answer ?? ""}}

{{$val->header}}

{{$val->sub_header}}

{{$option->title}}

answer) && $option->answer == 1) checked @endif> answer) && $option->answer == 0) checked @endif>

{{$val->header}}

{{$val->sub_header}}

answer) && $val->answer == $option->id) checked @endif>

{{$val->header}}

{{$val->sub_header}}

answer) && $option->answer == 1) checked @endif>
@for ($i =1; $i <= 10; $i++) @endfor @for ($i =1; $i <= 10; $i++) @endfor
{{$i}}
answer) && $val->answer == $i) checked @endif>
@endif @if($val->type == 'add_link')

{{$val->sub_header}}

{{$val->header}} @endif @endforeach {{-- @foreach($question->sequence_questions as $val) @if($val->type == 'yes_no_question') @if($val->header !='')@endif @if($val->sub_header !='')

{{$val->sub_header}}

@endif @foreach($val->options as $option) @endforeach @endif @endforeach --}} @elseif($question->name == 'add_link') @foreach($question->options as $option) @endforeach
{{$option->title}}
@elseif($question->name == 'treatment_consent' && $treatment_consent == 1) @foreach($question->options as $treatment_consent_key=>$option) @endforeach @if(isset($intake_form_template->submitted_by) && $intake_form_template->submitted_by =='other') @endif @foreach($question->sequence_questions as $val) @if($val->type == 'written_section') @elseif($val->type == 'yes_no_question') @foreach($val->options as $option) @endforeach @elseif($val->type == 'multiple_choice') @foreach($val->options as $option) @endforeach @elseif($val->type == 'checklist') @foreach($val->options as $option) @endforeach @elseif($val->type == 'scale')

{{$val->header}}

{{$val->sub_header}}

Treatment consent

{!! nl2br(e($question->sub_header)) !!}

answer) && $option->answer == 1) checked @endif>
Client Name *
consent_full_name}} @endif" style="width: 100%;border: none;border-bottom: 1px solid #ced4da;padding: 5px 10px;font-family: europa,sans-serif;font-size: 13px;"/>
Date
submitted_by) && $intake_form_template->submitted_by =='self') checked @endif>
submitted_by) && $intake_form_template->submitted_by =='other') checked @endif>
Your Name
Relationship to client

{{$val->header}}

{{$val->sub_header}}

{{$val->answer ?? ""}}

{{$val->header}}

{{$val->sub_header}}

{{$option->title}}

answer) && $option->answer == 1) checked @endif> answer) && $option->answer == 0) checked @endif>

{{$val->header}}

{{$val->sub_header}}

answer) && $val->answer == $option->id) checked @endif>

{{$val->header}}

{{$val->sub_header}}

answer) && $option->answer == 1) checked @endif>
@for ($i =1; $i <= 10; $i++) @endfor @for ($i =1; $i <= 10; $i++) @endfor
{{$i}}
answer) && $val->answer == $i) checked @endif>
@elseif($val->type == 'add_link')

{{$val->sub_header}}

@foreach($val->options as $option) {{$option->title}} @endforeach @endif @endforeach @endif @endforeach