@extends('admin::layouts.layout') @section('content')

Property Management

Upload and manage properties for client selection

All

{{ $stats['all'] }}

Active Listings

{{ $stats['active'] }}

Under Review

{{ $stats['review'] }}

Off Market

{{ $stats['offmarket'] }}

Sold / Closed

{{ $stats['sold'] }}

@forelse($properties as $property) @php $firstImage = optional($property->images->first())->file_path; $firstImageUrl = $firstImage ? asset($firstImage) : 'https://images.unsplash.com/photo-1706808849780-7a04fbac83ef?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxsdXh1cnklMjBob3VzZSUyMGV4dGVyaW9yfGVufDF8fHx8MTc3MjIyMTg2Nnww&ixlib=rb-4.1.0&q=80&w=1080'; @endphp

{{ $property->title }}

{{ trim(($property->location_city ?? '') . ', ' . ($property->location_country ?? ''), ', ') }}

{{ $property->status_label }} @if($property->is_recommended) Featured @endif {{ ucfirst((string) $property->asset_class) }}
{{ $property->formatted_price }}
Images

{{ $property->images->count() }}

Videos

{{ $property->videos->count() }}

Views

{{ $property->views_count }}

Selections

{{ $property->selections_count }}

Added

{{ optional($property->created_at)->format('Y-m-d') }}

@csrf @method('DELETE')
@empty
No properties found.
@endforelse
@endsection @push('scripts') @endpush @push('styles') @endpush