PAP Details
@if ($slgrc->survey)
{{-- Show survey-linked FLGRC details --}}
Map No: {{ $slgrc->survey->map_id ?? 'N/A' }}
Structure ID: {{ $slgrc->survey->structure_id ?? 'N/A' }}
Occupant Name: {{ $occupantName }}
Affected Area: {{ $slgrc->project->name ?? 'N/A' }}
Property Type: {{ $propertyType }}
@elseif($slgrc->paps->isNotEmpty())
{{-- Show PAP info if no survey --}}
@php
$structureUseMap = [
'1' => 'Residential',
'2' => 'Commercial',
'3' => 'Resi-Cum-Comm',
'4' => 'Others',
];
@endphp
@foreach ($slgrc->paps as $pap)
Occupant Name: {{ $pap->occupant_name ?? 'N/A' }}
Address: {{ $pap->address ?? 'N/A' }}
Affected Area:
{{ $slgrc->project->name ?? 'N/A' }}
Property Type:
{{ $structureUseMap[$pap->structure_use] ?? 'N/A' }}
@break
{{-- Only show the first PAP record if multiple exist --}}
@endforeach
@else
No data found for this record.
@endif
Hearings
@if ($slgrc->hearings->isNotEmpty())
@else
No hearing records found.
@endif