{{-- resources/views/admin/analytics.blade.php --}} @extends('admin.layouts.app') @section('title', 'Analytics') @section('page_title', 'Platform Analytics') @section('breadcrumb', 'Platform-wide metrics and trends') @section('content') @php $snapshot = $latest?->snapshot_date?->format('d M Y') ?? 'No snapshot yet'; @endphp {{-- Snapshot notice --}}
| Date | Total Props | Active | Trial | New Regs | Reservations | Revenue (USD) | Commission (USD) |
|---|---|---|---|---|---|---|---|
| {{ $snap->snapshot_date->format('d M Y') }} @if($loop->first) latest @endif | {{ number_format($snap->total_properties) }} | {{ number_format($snap->active_properties) }} | {{ number_format($snap->trial_properties) }} | @if($snap->new_registrations > 0) +{{ number_format($snap->new_registrations) }} @else 0 @endif | {{ number_format($snap->total_reservations) }} | ${{ number_format($snap->total_revenue_usd, 2) }} | ${{ number_format($snap->total_commission_usd, 2) }} |