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

Dashboard Overview

Welcome back, {{ auth()->user()->name }}! Here's what's happening.

@if($totalPendingItems > 0)
{{ $totalPendingItems }} items need attention
{{ $pendingCompanies }} companies, {{ $openSupportTickets }} tickets, {{ $pendingBookings }} bookings
@else
All caught up!
No pending items
@endif

{{ number_format($totalUsers) }}

Users

{{ number_format($activeCompanies) }}

Companies

{{ number_format($totalBookings) }}

Bookings

{{ $openSupportTickets + $pendingSupportTickets }}

Active Tickets

${{ number_format($totalMonthlyRevenue, 0) }}

Revenue

Booking Trends (Last 30 Days)

Platform Performance

Avg Rating {{ number_format($averageRating, 1) }}/5.0
Resolution Rate {{ number_format($supportResolutionRate, 0) }}%
Booking Success {{ number_format($successRate, 0) }}%

{{ $totalCategories }} Categories {{ $totalServices }} Services

Support Volume (Last 30 Days)

Ticket Priorities

Subscription Growth

Urgent Tickets

{{ $urgentSupportTickets->count() }} Urgent

Category Share

Recent Reservation History

View All
@forelse($recentBookings as $booking) @empty @endforelse
ID Client Service / Company Amount Date Status
#{{ $booking->id }}
Avatar
{{ $booking->user->name }} {{ $booking->user->email ?? '' }}
{{ $booking->service->name ?? 'Standard' }} {{ $booking->company->name ?? 'N/A' }}
${{ number_format($booking->total_amount, 2) }}
{{ $booking->booking_date->format('M d, Y') }} {{ $booking->booking_time ?? '' }}
@php $statusClasses = [ 'pending' => 'badge-light-warning', 'confirmed' => 'badge-light-success', 'completed' => 'badge-light-primary', 'cancelled' => 'badge-light-danger' ]; $class = $statusClasses[$booking->status] ?? 'badge-light-secondary'; @endphp {{ ucfirst($booking->status) }}
No Recent Reservations Found

When customers book services, they will appear here.

Refresh List

Customer Feedback

@foreach($recentReviews->take(4) as $review)
{{ $review->user->name }}
{{ $review->created_at->diffForHumans() }}
@for($i=1; $i<=5; $i++) @endfor

{{ $review->review }}

{{ $review->company->name ?? 'N/A' }}
@endforeach
@endsection @push('script') @endpush