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

Beneficiary Profile

Beneficiary Information
@foreach($beneficiaryInformation->questions as $item)

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

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

@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
{{$bank_info_heading}}
@foreach($bankingInformation as $item)

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

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

@endforeach
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
@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 @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($Vulnerability->question->type=='checkbox')
    @foreach($Vulnerability->options as $opt)
  • {{$opt->name}} : {{$opt->answer ?? 'not available'}}
  • @endforeach
@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}}

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

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

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

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

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

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

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

@endforeach
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