@extends('admin.layouts.app') @section('title', 'Dashboard') @section('content')

Total Properties

{{ number_format($stats['total_properties']) }}

{{ $stats['sale_properties'] }} Sale {{ $stats['rent_properties'] }} Rent

Total Inquiries

{{ number_format($stats['total_inquiries']) }}

@if ($stats['new_inquiries'] > 0)

{{ $stats['new_inquiries'] }} new inquiries pending

@else

All inquiries handled

@endif

Total Users

{{ number_format($stats['total_users']) }}

Registered on platform

Property Views

{{ number_format($stats['total_views']) }}

Total page views

Recent Inquiries

View all
@forelse($recentInquiries as $inquiry) @empty @endforelse
Name Property Status Date

{{ $inquiry->name }}

{{ $inquiry->phone }}

@if ($inquiry->property) {{ Str::limit($inquiry->property->title, 30) }} @else General Inquiry @endif @php $statusColors = [ 'new' => 'badge-warning', 'viewed' => 'badge-info', 'contacted' => 'badge-success', 'follow_up' => 'badge-info', 'converted' => 'badge-success', 'closed' => 'badge-gray', ]; @endphp {{ ucfirst(str_replace('_', ' ', $inquiry->status)) }} {{ $inquiry->created_at->diffForHumans() }}
No inquiries yet

Recent Properties

View all
@endsection