@extends('provider.layout') @section('title', 'Real Estate Dashboard') @section('content')
@php $cards = [ ['label'=>'Total Listings', 'value'=>$stats['total'], 'icon'=>'building-2', 'color'=>'#1e3a5f'], ['label'=>'Active', 'value'=>$stats['active'], 'icon'=>'check-circle', 'color'=>'#16a34a'], ['label'=>'Pending Review', 'value'=>$stats['pending'], 'icon'=>'clock', 'color'=>'#d97706'], ['label'=>'Total Views', 'value'=>number_format($stats['views']), 'icon'=>'eye','color'=>'#0d9488'], ['label'=>'Inquiries', 'value'=>$stats['inquiries'],'icon'=>'message-circle', 'color'=>'#7c3aed'], ]; @endphp @foreach($cards as $card)
{{ $card['label'] }}
{{ $card['value'] }}
@endforeach
{{-- Recent Listings --}}

Recent Listings

View all →
@forelse($recent as $p)
{{ $p->title }}
{{ $p->city }} · {{ $p->formatted_price }}
{{ ucfirst($p->status) }}
@empty
No listings yet. Add your first property →
@endforelse
{{-- Recent Inquiries --}}

Recent Inquiries

View all →
@forelse($recentInquiries as $conv)
{{ strtoupper(substr($conv->sender->name ?? 'U', 0, 1)) }}
{{ $conv->subject ?? 'Property Inquiry' }}
{{ $conv->sender->name ?? 'Customer' }}
Reply →
@empty
No inquiries yet
@endforelse
Add New Property
@endsection