@extends('backend.app') @section('title', 'Dashboard') @push('style') @endpush @section('content') {{-- ALERTS SECTION --}} @if (!empty($alerts))
@foreach ($alerts as $alert) @endforeach
@endif {{-- GREETING HEADER --}}
@if ($greetings['type'] == 'morning') Good Morning @elseif ($greetings['type'] == 'afternoon') Good Afternoon @else Good Night @endif

{{ $greetings['message'] }}, {{ Auth::user()->name }}!

Here's what's happening with your platform today

{{ date('D, M d Y') }}

{{-- KPI CARDS - ROW 2 (Additional Stats) --}}
{{-- Pending Payouts --}}
Pending Payouts

${{ number_format($pendingPayouts, 2) }}

View Payouts
{{-- Active Businesses --}}
Active Businesses

{{ number_format($activeBusinesses) }}

{{ number_format(abs($businessGrowth), 1) }}% vs last month
{{-- Total Customers --}}
Total Customers

{{ number_format($totalCustomers) }}

Registered users
{{-- Total Services --}}
Total Services

{{ number_format($totalServices) }}

Available services
Total Bookings

{{ number_format($totalBookings) }}

{{ number_format(abs($bookingGrowth), 1) }}% vs last month
Total Cancelled

{{ number_format($totalCancelled) }}

{{ number_format(abs($cancelledGrowth), 1) }}% vs last month
{{-- Top Services --}}
Top Performing Services
View All
@forelse ($topServices as $service) @empty @endforelse
Service Name Owner Bookings
{{ $service->title }} {{ $service->owner->name ?? 'N/A' }} {{ $service->total_bookings }}
No services found
Booking Status Distribution

{{ round($completedPercent) }}%

Completed

{{ number_format($completedCount) }} bookings

{{ round($confirmedPercent) }}%

Confirmed

{{ number_format($confirmedCount) }} bookings

{{ round($pendingPercent) }}%

Pending

{{ number_format($pendingCount) }} bookings

{{ round($cancelledPercent) }}%

Cancelled

{{ number_format($cancelledCount) }} bookings

{{-- TABLES ROW --}}
{{-- Top Customers --}}
Top Customers
View All
@forelse ($topCustomers as $customer) @empty @endforelse
Customer Bookings Action
{{ $customer->name }}
{{ $customer->name }}
{{ '@'.$customer->username }}
{{ $customer->confirmed_count ?? 0 }}
No customers found
{{-- Top Owners --}}
Top Owners
View All
@forelse ($topOwners as $owner) @empty @endforelse
Owner Bookings Action
{{ $owner->name }}
{{ $owner->name }}
{{ $owner->services_count ?? 0 }} services
{{ $owner->confirmed_count ?? 0 }}
No owners found
{{-- RECENT USERS ROW --}}
{{-- New Business Owners --}}
New Business Owners (Last 7 Days)
View All
@forelse ($owners as $owner) @empty @endforelse
Owner Email Bookings Action
{{ $owner->name }}
{{ $owner->name }}
{{ $owner->created_at->diffForHumans() }}
{{ $owner->email }} {{ $owner->total_bookings }}
No new owners found
{{-- New Customers --}}
New Customers (Last 7 Days)
View All
@forelse ($customers as $customer) @empty @endforelse
Customer Email Joined Action
{{ $customer->name }}
{{ $customer->name }}
{{ '@'.$customer->username }}
{{ $customer->email }} {{ $customer->created_at->diffForHumans() }}
No new customers found
@endsection @push('script') @endpush