@php $cnicFront= base64Image(json_decode($required_data['cnicFrontImage'] ?? null)); $cnicBack= base64Image(json_decode($required_data['cnicBackImage'] ?? null)); $profileImage= base64Image(json_decode($required_data['beneficiaryProfileImage'] ?? null)); $beneficiaryInformation=$required_data['beneficiaryInformation'] ?? null; $bankingInformation=$required_data['bankingInfo'] ?? null; $location_info=$required_data['location_information'] ?? null; $personal_limitation_for_two_persons=$required_data['functional_limitation_two_persons'] ?? null; $functional_limitation_third_person=$required_data['functional_limitation_third_persons'] ?? null; $functional_limitation_fourth_person=$required_data['functional_limitation_fourth_person'] ?? null; $functional_limitation_fifth_person=$required_data['functional_limitation_fifth_person'] ?? null; $third_person_allow=$required_data['third_person_allow'] ?? null; $fourth_person_allow=$required_data['fourth_person_allow'] ?? null; $fifth_person_allow=$required_data['fifth_person_allow'] ?? null; $Vulnerability=$required_data['Vulnerability'] ?? null; $land_ownership=$required_data['land_ownership'] ?? null; $reconstruction_status=$required_data['reconstruction_status'] ?? null; $house_description=$required_data['house_description'] ?? null; $hazaradous_location=$required_data['hazaradous_location'] ?? null; $other_questions=$required_data['other_questions'] ?? null; $environmental_screening=$required_data['environmental_screening'] ?? null; $upload_docs=$required_data['upload_docs'] ?? null; @endphp
Profile Image

Beneficiary Profile

Beneficiary Information
@foreach($beneficiaryInformation->questions as $item)
{{$item->question->name}}

{{$item->question->answer ?? 'Not Available'}}

@php $decisionexist = App\Models\QuestionsAcceptReject::where('survey_id', $survey_form_id)->where('ques_id', $item->question->id); @endphp @if($decisionexist->count() == 0) @endif
@endforeach
@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 }}
CNIC Images

CNIC Front Image

CNIC Front Image

CNIC Back Image

CNIC Back Image
@if(isset($bank_info_heading))
{{$bank_info_heading}}
@foreach($bankingInformation as $item)

{{$item->name ?? null}}

{{$item->answer ?? 'not available'}}

@endforeach
@endif
Location Information
@foreach($location_info->questions as $item)

{{$item->question->name ?? null}}

@if($item->question->type=='map')
    @foreach($item->options as $opt)
  • {{$opt->name}} : {{$opt->answer ?? 'not available'}}
  • @endforeach
@else

{{$item->question->answer ?? 'not available'}}

@endif @endforeach
Disability Data
@if(isset($personal_limitation_for_two_persons->questions)) @foreach($personal_limitation_for_two_persons->questions as $item)

{{$item->question->name ?? null}}

@if($item->question->type=='map')
    @foreach($item->options as $opt)
  • {{$opt->name}} : {{$opt->answer ?? 'not available'}}
  • @endforeach
@elseif($item->question->type=='checkbox')
    @foreach($item->options as $opt)
  • {{$opt->name}} : {{$opt->answer ?? 'not available'}}
  • @endforeach
@elseif($item->question->type=='image') @php $image= base64Image(json_decode($item->question->answer)); @endphp @if(@isset($image)) CNIC Front Image @endif @else

{{ is_array($item->question->answer) ? 'not available' : ($item->question->answer ?? 'not available') }}

@endif @endforeach @endif @if($third_person_allow=='Yes') @include('dashboard.survey.disabilityData.show', [ 'personName' => 'Third Person', 'questions' => $functional_limitation_third_person->questions ]) @endif @if($fourth_person_allow=='Yes') @include('dashboard.survey.disabilityData.show', [ 'personName' => 'Fourth Person', 'questions' => $functional_limitation_fourth_person->questions ]) @endif @if($fourth_person_allow=='Yes') @include('dashboard.survey.disabilityData.show', [ 'personName' => 'Fifth Person', 'questions' => $functional_limitation_fifth_person->questions ]) @endif
Vulnerability Data

{{$Vulnerability->question->name ?? null}}

@if(isset($Vulnerability->question->type)) @if($Vulnerability->question->type=='checkbox')
    @foreach($Vulnerability->options as $opt)
  • {{$opt->name}} : {{$opt->answer ?? 'not available'}}
  • @endforeach
@endif @endif
Land Ownership
@foreach($land_ownership->questions as $item)

{{$item->question->name}}

{{$item->question->answer ?? 'Not Available'}}

@endforeach
Reconstruction Status
@foreach($reconstruction_status->questions as $item)

{{$item->question->name}}

{{$item->question->answer ?? 'Not Available'}}

@endforeach
House Description (Pre-floods)
@foreach($house_description->questions as $item)

{{$item->question->name}}

{{$item->question->answer ?? 'Not Available'}}

@endforeach
Hazardous Location
@foreach($hazaradous_location->questions as $item)

{{ $item->question->name }}

@if(is_array($item->question->answer)) @foreach($item->question->answer as $ques)

{{ getquestionlabel($ques->question_id) }} : {{ getoptionlabel($ques->option_id) }}

@endforeach @else

{{ $item->question->answer }}

@endif @endforeach
Other Questions
@foreach($other_questions->questions as $item)

{{$item->question->name}}

@if(is_array($item->question->answer)) @foreach($item->question->answer as $ques)

{{ getquestionlabel($ques->question_id) }} : {{ getoptionlabel($ques->option_id) }}

@endforeach @else

{{ $item->question->answer }}

@endif @endforeach
Environmental Screening
@if(isset($environmental_screening->questions)) @foreach($environmental_screening->questions as $item)

{{$item->question->name}}

{{$item->question->answer ?? 'Not Available'}}

@endforeach @endif
Upload Images And Documents
@foreach($upload_docs->questions as $item)

{{$item->question->name}}

@if($item->question->type=="image") @php $image=json_decode($item->question->answer); $image=base64Image($image); @endphp @if(isset($image)) CNIC Front Image @else

Not Available

@endif @endif @endforeach