@include('layouts.header', ['title' => 'Survey List'])
@include('layouts.agency-user-navbar') @include('layouts.agency-user-sidebar')
@include('components.agency-user-project-details', ['project' => $project]) @php $statusCode = $project->status->id ?? null; if ($statusCode == null || $statusCode == 1 || $statusCode == 2) { $isButtonDisabled = false; } else { $isButtonDisabled = true; } $isSupplementaryBsesEnabled = $project->is_supplementary_bses_enabled; @endphp

PAP List

  
@if (!$isButtonDisabled || $isSupplementaryBsesEnabled) Add Survey @endif
@if (request('search')) Reset @endif
@if ($surveys->isEmpty()) @else @foreach ($surveys as $key => $survey) @endforeach @endif
Sr. No. Structure ID Map ID PAP Name Action
No Records Found
{{ $key + 1 }} {{ $survey['Id no'] ?? 'N/A' }} {{ $survey['map_id'] ?? 'N/A' }} {{ $survey['pap_name'] ?? 'N/A' }} @php $surveyId = encrypt($survey['id']); @endphp @if (!$isButtonDisabled) @endif @php $completedStatus = false; if ($survey['structure_use'] == '1') { if ( isset( $survey[ 'survey_user_residential_socio_economic_indicator' ][0]['survey_completion_status'], ) && $survey[ 'survey_user_residential_socio_economic_indicator' ][0]['survey_completion_status'] == '1' ) { $completedStatus = true; } } if ( $survey['structure_use'] == '2' || $survey['structure_use'] == '3' ) { if ( isset( $survey['survey_user_commercial'][0][ 'survey_completion_status' ], ) && $survey['survey_user_commercial'][0][ 'survey_completion_status' ] == '1' ) { $completedStatus = true; } } if ($survey['structure_use'] == '4') { if ( isset( $survey['survey_user_others'][0][ 'survey_completion_status' ], ) && $survey['survey_user_others'][0][ 'survey_completion_status' ] == '1' ) { $completedStatus = true; } } @endphp @if ($completedStatus) @endif
@if (!$isButtonDisabled || $isSupplementaryBsesEnabled)
@endif
@include('layouts.footer')