@include('layouts.header', ['title' => 'SLGRC Hearing'])
@include('layouts.navbar') @include('layouts.sidebar')
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
{{-- After labels --}}
Hearings
@if ($slgrc->hearings->isNotEmpty())
@foreach ($slgrc->hearings as $hearing) @endforeach
Date & Time MMRDA Attendees Other Attendees Notes Document Action
{{ $hearing->datetime ? date('d M Y H:i', strtotime($hearing->datetime)) : 'N/A' }}
@foreach ($hearing->mmrcUsers as $user) {{ Str::limit($user->name, 20) }} @endforeach
@foreach (explode(',', $hearing->other_attendees) as $name) @php $name = trim($name); @endphp @if ($name) {{ Str::limit($name, 20) }} @endif @endforeach
{{ Str::limit($hearing->notes, 50) }} @if ($hearing->document) @else N/A @endif
@else

No hearing records found.

@endif
{{-- Add Hearing Button + Form --}}
@include('layouts.footer')