@extends('layouts.dashboard') @section('dashboard-content')

Property – {{ $property->property_number }}

{{ $property->property_type }} · {{ $property->owner }}

Back to list
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Property number

{{ $property->property_number }}

Property type

{{ $property->property_type }}

Size (sqm)

{{ $property->size_sqm !== null ? number_format($property->size_sqm) : '—' }}

Plot

{{ $property->plot ?: '—' }}

Owner

{{ $property->owner }}

Party (ownership type) @php $ptLabels = \App\Models\PropertyIndex::partyTypes(); @endphp

{{ $property->party_type && isset($ptLabels[$property->party_type]) ? $ptLabels[$property->party_type] : '—' }}

@csrf
Boundary (location)

@if($property->boundary) {{ $property->boundary->boundary_number }} – {{ $property->boundary->name }} @else — @endif

State

{{ $property->state ?: '—' }}

@if($property->address)
Address

{{ $property->address }}

@endif @if($property->description)
Description

{{ $property->description }}

@endif

Documents (CofO, RofO, survey plan, application form, land agreement)

Upload documents for this property. Each type (CofO, RofO, survey plan, application form, land agreement) can have one or more files.

Upload document

@csrf
@php $byType = $property->documents->groupBy('document_type'); @endphp @forelse($documentTypes as $typeKey => $typeLabel) @if(isset($byType[$typeKey]) && $byType[$typeKey]->isNotEmpty())

{{ $typeLabel }}

    @foreach($byType[$typeKey] as $doc)
  • {{ $doc->file_name ?: $doc->document_type }} ({{ $doc->uploaded_at ? $doc->uploaded_at->format('d M Y') : '—' }}) Download
  • @endforeach
@endif @empty @endforelse @if($property->documents->isEmpty())

No documents uploaded yet. Use the form above to upload CofO, RofO, survey plan, application form, or land agreement.

@endif
@endsection