@if ($surveys)

ID Number: {{ $surveys->structure_id ?? 'N/A' }} - {{ $surveys->pap_name ?? 'Unknown' }}

@if (!empty($surveys->surveyUserCommercial) && count($surveys->surveyUserCommercial) > 0) @foreach ($surveys->surveyUserCommercial as $docs) @if (!empty($docs['commercial_user_photo'])) @php $imagePath = asset( "storage/uploads/survey/project_{$docs['project_id']}/survey_{$docs['survey_id']}/docs/{$docs['commercial_user_photo']}", ); $fileType = pathinfo($imagePath, PATHINFO_EXTENSION); @endphp
Photo:
Commercial
@else
N/A
N/A
@endif @endforeach @else
No documents available.
@endif
Survey Date:
{{ $surveys->survey_date ? date('d M Y', strtotime($surveys->survey_date)) : 'N/A' }}
Locality:
{{ $surveys->locality ?? 'N/A' }}
Map No
{{ $surveys->map_id ?? 'N/A' }}
Map Location:
{{ $surveys->map_location ?? 'N/A' }}
Name of Establishment Owner:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->name_establishment_owner }}
@endforeach @else N/A @endif
GPS Latitude:
{{ $surveys->gps_latitude ?? 'N/A' }}
GPS Longitude:
{{ $surveys->gps_longitude ?? 'N/A' }}
Structure Use:
@switch($surveys->structure_use) @case(1) Residential @break @case(2) Commercial @break @case(3) Residential + Commercial @break @case(4) Others @break @default N/A @endswitch
Type of Shop:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->shopType->name }}
@endforeach @else N/A @endif
Shop Type Other:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->shop_type_other ?? 'N/A' }}
@endforeach @else N/A @endif
Area of Shop(Sq.ft):
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->shop_area }}
@endforeach @else N/A @endif
Nature of Activity:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->nature_of_activity }}
@endforeach @else N/A @endif
{{--
No of Workers:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->workers_type_id->name ?? null }}
@endforeach @else N/A @endif
--}}
No of Workers:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->workers_type_id }}
@endforeach @else N/A @endif
Daily Sales:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->daily_sales }}
@endforeach @else N/A @endif
Name of Stucture Owner:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->ownership }}
@endforeach @else N/A @endif
End Product Sale Market:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->end_product_sale_market }}
@endforeach @else N/A @endif
{{--
Status of present structure holder:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->structureHolder->name ?? 'N/A' }}
@endforeach @else N/A @endif
--}}
Shop name:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->shop_name ?? 'N/A' }}
@endforeach @else N/A @endif
Place of raw material taken:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->raw_material_place }}
@endforeach @else N/A @endif
Total Area(Sq.mtr):
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->total_area }}
@endforeach @else N/A @endif
Affected Area(Sq.mtr):
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->affected_area }}
@endforeach @else N/A @endif
% Area:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->percentage_area }}
@endforeach @else N/A @endif
Balanced area:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->balanced_area ?? 'N/A' }}
@endforeach @else N/A @endif
Monthly Turnover(In Rs.):
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->monthly_turnover }}
@endforeach @else N/A @endif
No. of Employees:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->no_of_employees }}
@endforeach @else N/A @endif
Year Of Establishment:
@if (!empty($surveys->surveyUserCommercial) && $surveys->surveyUserCommercial->isNotEmpty()) @foreach ($surveys->surveyUserCommercial as $surveyCommercial) {{ $surveyCommercial->year_of_establishment }}
@endforeach @else N/A @endif
@else
No survey found for this project.
@endif