| Comparison Field | NDMA INFO | HRU INFO |
|---|---|---|
| {{ $nameOfField[$i] }} | @php $beneficiaryValue = $beneficiary_details_data[$key] ?? 'not available'; $hruValue = $hru_data[$key] ?? 'not available'; $color = ($beneficiaryValue === $hruValue) ? 'green' : 'red'; @endphp{{ $beneficiaryValue }} | {{ $hruValue }} |
{{ $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
@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