{{-- @dump($question_cat->toArray()) --}}
@if($beneficiaryProfileImage)Profile Image@endif

Beneficiary Profile

@foreach($question_cat as $section) @if($loop->iteration == 2)
@php $i = 0; @endphp @foreach($beneficiary_details_data as $key => $item) @php $beneficiaryValue = $beneficiary_details_data[$key] ?? 'not available'; $hruValue = $hru_data[$key] ?? 'not available'; $color = ($beneficiaryValue === $hruValue) ? 'green' : 'red'; @endphp @php $i++; @endphp @endforeach
Comparison Field NDMA INFO HRU INFO
{{ $nameOfField[$i] }} {{ $beneficiaryValue }} {{ $hruValue }}
@endif
{{ $section->name }}
@if(count($section->questions) > 0) @if($section->id == 47)
@endif @foreach($section->questions as $question) @if($section->id == 47) @if($question->type == "image") @if(count($question->useranswer) > 0) @foreach($question->useranswer as $answer) @php $image=json_decode($answer->answer); $image=base64Image($image); @endphp @if(isset($image))
{{ $question->name }}

{{ $question->name }}

@endif @endforeach @else {{--
{{ $question->id }}-{{ $question->section_id }}-{{ $question->name }}Not Available
--}} @endif @endif @elseif($question->type == "checkbox")
{{ $question->name }}

@if(count($question->useranswer) > 0) @foreach($question->useranswer as $answer) @if($checkbox) @foreach($checkbox as $item) {{ getoptionlabel($item) }} @endforeach @endif @endforeach @else Not Available @endif

@else
{{ $question->name }}
{{--
Special title treatment
--}} @if($question->type == "image") @if(count($question->useranswer) > 0) @foreach($question->useranswer as $answer) @php $image=json_decode($answer->answer); $image=base64Image($image); @endphp @if(isset($image)) {{ $question->name }} @else Image Not Available @endif @endforeach @else Not Available @endif @else

@if(count($question->useranswer) > 0) @foreach($question->useranswer as $answer) {!! $answer->answer ?? 'Not Available' !!} {{-- is_array($answer->answer) ? 'Not Available' : ($answer->answer ?? 'Not Available') --}} @endforeach @else Not Available @endif

{{--Go somewhere--}} @endif
@if($section->id == 47)
@endif
@endif @endforeach @endif
@endforeach