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

Dashboard

@if(session('success'))
{{ session('success') }}
@endif

Total Properties

{{ $properties->count() }}

Total Value

${{ number_format($properties->sum('price'), 2) }}

Available Properties

{{ $properties->where('status', 'available')->count() }}

Recent Properties

@forelse($properties as $property) @empty @endforelse
Title Price Location Type Status Actions
{{ $property->title }}
{{ $property->description ? Str::limit($property->description, 50) : 'No description' }}
${{ number_format($property->price, 2) }}
{{ $property->location ?? 'N/A' }}
{{ $property->property_type ?? 'N/A' }}
{{ ucfirst($property->status) }} View Edit
@csrf @method('DELETE')
No properties found. Add your first property.
@endsection