@extends('backend.app') @section('title', 'Dashboard') @push('style') @endpush @section('content') @php $property_status_map = [ 'draft' => 'secondary', 'pending' => 'warning', 'available' => 'success', 'under_contract' => 'info', 'sold' => 'dark', ]; $raffle_status_map = [ 'pending' => 'warning', 'upcoming' => 'info', 'in_progress' => 'success', 'completed' => 'secondary', ]; @endphp {{-- PAGE-HEADER --}}
Live snapshots of submissions, raffles, and property demand.
Newest listings from agents.
| Property | Agent | Status | Views |
|---|---|---|---|
|
{{ \Illuminate\Support\Str::limit($property->title, 32) }}
{{ $property->created_at?->diffForHumans() }}
|
{{ $property->agent?->name ?? 'Unknown' }} | {{ ucfirst(str_replace('_', ' ', $property->status)) }} | {{ number_format($property->views ?? 0) }} |
| No recent submissions yet. | |||
Pending and active raffles closing soon.
| Property | Status | Deadline | Tickets |
|---|---|---|---|
|
{{ \Illuminate\Support\Str::limit($raffle->property?->title ?? 'Unknown', 28) }}
{{ $raffle->dead_line?->diffForHumans() ?? 'No deadline' }}
|
{{ ucfirst(str_replace('_', ' ', $raffle->status)) }} | {{ $raffle->dead_line?->format('M d, Y') ?? '-' }} | {{ $raffle->tickets_available ?? 0 }} |
| No deadlines in the next 7 days. | |||
Next raffles ready for draw.
| Property | Draw Date | Tickets Sold |
|---|---|---|
|
{{ \Illuminate\Support\Str::limit($raffle->property?->title ?? 'Unknown', 30) }}
{{ ucfirst(str_replace('_', ' ', $raffle->status)) }}
|
{{ $raffle->draw_date?->format('M d, Y') ?? '-' }} | {{ $raffle->tickets_sold ?? 0 }} |
| No upcoming draws yet. | ||
Based on listings created in {{ $current_year }}.
Highest demand right now.
Tickets sold in {{ $current_year }}.