@extends('layouts.app') @section('title', 'Property Listing Report') @section('page-title', 'Property Listing Report') @section('content') {{-- Filters --}}
No properties match the selected filters.
| # | Title | Type | Purpose | City / Area | Price | Owner | Status | Sourcing Channel | Added By | Date Added |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $prop->id }} | {{ $prop->title }} @if($prop->trashed()) Deleted @endif | {{ \App\Models\Property::TYPE_LABELS[$prop->type] ?? $prop->type }} | @if($prop->listing_purpose === 'for_sale') For Sale @elseif($prop->listing_purpose === 'for_rent') For Rent @else — @endif | {{ $prop->city ?: '—' }} | @if($prop->price_on_request) On Request @else ₹{{ $prop->price ? number_format((float) $prop->price, 0) : '—' }} @endif | {{ $prop->owner ? $prop->owner->name : '—' }} | @php $statusMap = [ 'published' => ['bg-success bg-opacity-10 text-success', 'Published'], 'under_review' => ['bg-warning bg-opacity-10 text-dark', 'Under Review'], 'unavailable' => ['bg-secondary bg-opacity-10 text-secondary', 'Unavailable'], ]; [$badgeClass, $badgeLabel] = $statusMap[$prop->status] ?? ['bg-secondary bg-opacity-10 text-secondary', $prop->status]; @endphp {{ $badgeLabel }} | {{ $prop->sourcingChannel ? $prop->sourcingChannel->name : '—' }} | {{ $prop->createdBy ? $prop->createdBy->name : '—' }} | {{ $prop->created_at->format('d M Y') }} |