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

Admin Dashboard

Welcome back! Here's what's happening with your business today.

Today

Revenue

{{ '$' . number_format($stats['revenue_today'], 2) }}

Total Clients

{{ number_format($stats['total_users']) }}

Active Services

{{ number_format($stats['active_services']) }}

Open Tickets

{{ number_format($stats['open_tickets']) }}

Revenue This Month

{{ '$' . number_format($stats['revenue_this_month'], 2) }}

Pending Orders

{{ number_format($stats['pending_orders']) }}

Cancellations (Month)

{{ number_format($stats['cancelled_services']) }}

Recent Activity

View All
@foreach($recent_users->take(3) as $user)
{{ substr($user->name, 0, 1) }}

{{ $user->name }} registered a new account

{{ $user->created_at->diffForHumans() }}

@endforeach @foreach($recent_services->take(2) as $service)

New service order from {{ $service->user->name ?? 'Unknown' }}

{{ $service->created_at->diffForHumans() }}

@endforeach

Support Status

View All
@forelse($recent_tickets as $ticket)

{{ $ticket->subject }}

{{ $ticket->user->name ?? 'Unknown' }} • {{ $ticket->created_at->diffForHumans() }}

{{ ucfirst($ticket->status) }}
@empty

No open tickets

@endforelse

Recent Clients

View All
@foreach($recent_users as $user) @endforeach
Name Email Joined
{{ $user->name }} {{ $user->email }} {{ $user->created_at->format('M d, Y') }}

Recent Invoices

View All
@foreach($recent_invoices as $invoice) @endforeach
Invoice # Client Amount Status
{{ $invoice->invoice_number }} {{ $invoice->user->name ?? 'N/A' }} {{ format_currency($invoice->total) }} {{ ucfirst($invoice->status) }}
@endsection