@extends('backend.app') @section('title') {{ env('APP_NAME') }} || Property Details @endsection @section('content')

Property Details

Comprehensive information about property: {{ $property->property_name }}

Back to List
{{-- Property Information Card --}}

Property Information

Basic Info
Property Name: {{ $property->property_name ?? 'N/A' }} Property Type: {{ str_replace('_', ' ', $property->property_type) }} Address: {{ $property->property_address ?? 'N/A' }} Number of Units: {{ $property->number_of_units ?? 0 }}
Status & Security
Status: {{ ucfirst($property->status) }} Security Contact: {{ $property->security_contact ?? 'N/A' }} Created At: {{ $property->created_at ? $property->created_at->format('d M, Y H:i A') : 'N/A' }}
Additional Details

{{ $property->additional_details ?? 'No additional details provided.' }}

{{-- Owner Information Card --}}

Owner Information

@if($property->user)
@if ($property->user->avatar) avatar @else
@endif
@else

No owner assigned to this property.

@endif
{{-- Documents Card --}}

Documents

@if (is_array($property->documents) && count($property->documents) > 0)
@foreach ($property->documents as $doc) @php $urlPath = parse_url($doc, PHP_URL_PATH) ?? ''; $ext = strtolower(pathinfo($urlPath, PATHINFO_EXTENSION)); $imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg']; $isImage = in_array($ext, $imageExtensions) || str_contains(strtolower($doc), 'unsplash.com') || str_contains(strtolower($doc), 'images.unsplash.com'); $isPdf = $ext == 'pdf'; @endphp @if ($isImage)
Document
@elseif ($isPdf) @else @endif @endforeach
@else No documents available for this property. @endif
{{-- Global Image Viewer Modal --}} @endsection @push('scripts') @endpush