@extends('layouts.app') @section('title', $owner->name . ' — Owner Profile') @section('content') {{-- Header --}}

{{ $owner->name }}

{{ $owner->mobile }} @if($owner->email) • {{ $owner->email }} @endif @if($owner->city) • {{ $owner->city }} @endif
Edit @if(Auth::user()->isAdmin())
@csrf @method('DELETE')
@endif
{{-- Stats row --}}
{{ $owner->for_sale_count }}
For Sale
{{ $owner->for_rent_count }}
For Rent
{{ $kycDocuments->count() }}
KYC Documents
Added On
{{ $owner->created_at->format('d M Y') }}
{{-- KYC Documents --}}
KYC Documents
{{-- Upload row --}}
{{-- Document list --}}
@forelse($kycDocuments as $doc)
{{ $doc->original_name }}
{{ optional($doc->documentType)->name ?? '—' }} • {{ \App\Services\OwnerKycService::formatBytesStatic((int)$doc->size) }} • {{ $doc->created_at->format('d M Y') }}
@if(Auth::user()->isAdmin()) @endif
@empty
No KYC documents uploaded yet.
@endforelse
{{-- Linked Properties --}}
Properties
@forelse($properties as $prop)
{{ $prop->title }}
{{ (\App\Models\Property::typeLabels())[$prop->type] ?? $prop->type }} @if($prop->city) • {{ $prop->city }} @endif • {{ $prop->formattedPrice() }}
{{ \App\Models\Property::LISTING_PURPOSES[$prop->listing_purpose] ?? $prop->listing_purpose }} {{ ucfirst(str_replace('_', ' ', $prop->status)) }}
@empty
No properties linked to this owner.
@endforelse
{{-- Address card (if set) --}} @if($owner->address)
Address
{{ $owner->address }}
@endif @endsection @push('scripts') @endpush