@extends('layouts.admin') @section('title', 'Manage Properties') @section('content')
@if(auth()->user()->role === 'admin')

{{ $stats['total_sold'] }}

Sold Portfolio

@else

{{ $stats['total_available'] }}

My Available Properties

@endif

{{ number_format($stats['avg_bmv'], 1) }}%

Average BMV

@if(auth()->user()->role === 'admin')

{{ \App\Models\News::count() }}

Blog Posts

@endif

{{ $stats['dynamic_count'] }}

Total Investors

@if(session('success')) @endif
@if(auth()->user()->role === 'admin') Recently Added Sold Properties @else My Recent Available Properties @endif
View All
@forelse($stats['recent_properties'] as $property) @empty @endforelse
Listing {{ auth()->user()->role === 'admin' ? 'BMV' : 'Price' }} Action
@php $img = null; if ($property instanceof \App\Models\AvailableProperty) { $img = $property->thumbnail; } else { $img = $property->image_url; } @endphp Property
{{ $property instanceof \App\Models\AvailableProperty ? $property->headline : $property->location }}
@if($property instanceof \App\Models\AvailableProperty) £{{ number_format($property->portal_sale_price ?? $property->price) }} @else {{ $property->bmv_percentage }}% @endif @if($property instanceof \App\Models\AvailableProperty) @else @endif
No recent properties
Quick Actions
Add Available Property @if(auth()->user()->role === 'admin') Add Sold Property Create Blog Post @endif
@endsection