@extends('layouts.admin') @section('title', 'Dashboard') @section('content') @php($max = max(1, $chart->max('t')))
@foreach ([ ['Revenue today', money($stats['revenue_today'], 'USD'), '💰', null], ['Revenue this month', money($stats['revenue_month'], 'USD'), '📈', null], ['Open orders', $stats['orders_open'], '📦', route('admin.orders.index', ['status' => 'pending'])], ['Awaiting payment check', $stats['awaiting'], '🏦', route('admin.orders.index', ['payment' => 'awaiting_verification'])], ['All orders', $stats['orders_total'], '🧾', route('admin.orders.index')], ['Subscribers', $stats['subscribers'], '📰', route('admin.subscribers.index')], ['Reviews to approve', $stats['reviews_pending'], '⭐', route('admin.reviews.index', ['filter' => 'pending'])], ['Unread messages', $stats['messages_unread'], '✉️', route('admin.messages.index')], ] as [$label, $value, $icon, $href]) {{ $icon }}

{{ $value }}

{{ $label }}

@endforeach

Paid revenue · last 14 days (USD)

@foreach ($chart as $d)
{{ \Illuminate\Support\Carbon::parse($d['d'])->format('j') }}
@endforeach

Top services

Latest orders

View all
@include('admin.orders._table', ['orders' => $latest])
@endsection