@extends('layouts.admin') @section('title', 'Property Management') @section('content') @php($canManage = auth()->user()?->hasPermission('properties', 'manage'))

Property Management

Manage and review property listings

@if($canManage) Add Property @endif
Reset
Title Customer Type Purpose BHK Location Price Status Actions @forelse($properties as $property) {{ $property->title }} {{ $property->user?->name ?? 'Admin' }} {{ ucfirst($property->meta['property_type'] ?? '-') }} {{ ucfirst($property->listing_purpose ?? '-') }} {{ $property->meta['bhk'] ?? '-' }} {{ $property->location }} {{ $property->price }} {{ ucfirst(str_replace('_', ' ', $property->status)) }}
@if($canManage)
@csrf @method('DELETE')
@endif
@empty No properties found. @endforelse
{{ $properties->links() }}
@endsection