@extends('admin.layouts.app') @section('title', 'All Properties') @section('breadcrumb')
  • Properties
  • @endsection @section('heading', 'All Properties') @section('subheading', 'Manage and view all property listings across your platform.') @section('actions') Add Property @endsection @section('content') @if (session('success'))
    {{ session('success') }}
    @endif {{-- Stats --}}

    {{ number_format($total) }}

    Total Listings

    {{ number_format($forSale) }}

    For Sale

    {{ number_format($forRent) }}

    For Rent

    {{ number_format($pending) }}

    Draft

    {{-- Search & Filters --}}
    Reset
    {{-- Table --}}
    @forelse($properties as $property) @empty @endforelse
    # Property Type Category Price Agent Status Date Actions
    {{ $property->id }}

    {{ $property->title }}

    {{ $property->city ? $property->city : ($property->address ? Str::limit($property->address, 30) : '—') }}

    {{ $property->type?->name ?? '—' }} {{ $property->category?->name ?? '—' }} @if ($property->price) ₹{{ number_format($property->price) }} @else — @endif {{ $property->agent?->name ?? '—' }} {{ $property->status }} {{ $property->created_at->format('d M Y') }}
    @csrf @method('DELETE')
    No properties found. Add one.
    {{-- Pagination --}} @if ($properties->hasPages())

    Showing {{ $properties->firstItem() ?? 0 }} to {{ $properties->lastItem() ?? 0 }} of {{ $properties->total() }} results

    {{ $properties->links() }}
    @endif
    @endsection