@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
Sr. No. |
Structure ID |
Map ID |
PAP Name |
Action |
@if ($surveys->isEmpty())
No Records Found |
@else
@foreach ($surveys as $key => $survey)
{{ $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
|
@endforeach
@endif
@if (!$isButtonDisabled || $isSupplementaryBsesEnabled)
@endif