Admin Dashboard

System Health

Last checked: {{ $systemHealth['lastChecked']->diffForHumans() }}
@if($systemHealth['overall'] === 'healthy') @elseif($systemHealth['overall'] === 'warning') @else @endif

Overall

{{ ucfirst($systemHealth['overall']) }}

Database

{{ $systemHealth['database']['message'] }}

{{ $systemHealth['database']['details'] }}

Payments

{{ $systemHealth['payments']['message'] }}

{{ $systemHealth['payments']['details'] }}

Bookings

{{ $systemHealth['bookings']['message'] }}

{{ $systemHealth['bookings']['details'] }}

Pending Actions

Total Bookings

{{ number_format($metrics['totalBookings']) }}

This month: {{ number_format($metrics['bookingsThisMonth']) }}
This week: {{ number_format($metrics['bookingsThisWeek']) }}

Total Revenue

${{ number_format($metrics['totalRevenue'], 2) }}

This month: ${{ number_format($metrics['revenueThisMonth'], 2) }}
Platform fees: ${{ number_format($metrics['platformFeeRevenue'], 2) }}

Pending Approvals

{{ number_format($metrics['pendingGolferApprovals']) }}

Total golfers: {{ number_format($metrics['totalGolferProfiles']) }}
Approved: {{ number_format($metrics['approvedGolfers']) }}
{{--

Active Disputes

{{ number_format($metrics['activeCancellations']) }}

Pending: {{ number_format($metrics['pendingCancellations']) }}
Total: {{ number_format($metrics['totalCancellations']) }}
--}}

Revenue Trend (Last 30 Days)

Bookings & Cancellations (Last 30 Days)

New Users This Week

{{ number_format($metrics['newUsersThisWeek']) }}

This month: {{ number_format($metrics['newUsersThisMonth']) }}

Upcoming Bookings

{{ number_format($metrics['upcomingBookings']) }}

Completed: {{ number_format($metrics['completedBookings']) }}

Avg Booking Value

${{ number_format($metrics['averageBookingValue'], 2) }}

Payments: {{ number_format($metrics['successfulPayments']) }}/{{ number_format($metrics['totalPayments']) }}

Bookings Growth

@if($trends['bookingsGrowth']['direction'] === 'up') +{{ $trends['bookingsGrowth']['rate'] }}% @elseif($trends['bookingsGrowth']['direction'] === 'down') {{ $trends['bookingsGrowth']['rate'] }}% @else 0% @endif

vs. last month ({{ $trends['bookingsGrowth']['previous'] }} → {{ $trends['bookingsGrowth']['current'] }})

Revenue Growth

@if($trends['revenueGrowth']['direction'] === 'up') +{{ $trends['revenueGrowth']['rate'] }}% @elseif($trends['revenueGrowth']['direction'] === 'down') {{ $trends['revenueGrowth']['rate'] }}% @else 0% @endif

vs. last month

User Growth

@if($trends['usersGrowth']['direction'] === 'up') +{{ $trends['usersGrowth']['rate'] }}% @elseif($trends['usersGrowth']['direction'] === 'down') {{ $trends['usersGrowth']['rate'] }}% @else 0% @endif

vs. last month ({{ $trends['usersGrowth']['previous'] }} → {{ $trends['usersGrowth']['current'] }})

Recent Bookings

@foreach($recentBookings as $booking) @endforeach
ID Client Golfer Date Amount Status
#{{ $booking->id }} {{ $booking->bookingRequest->client->name }} {{ $booking->bookingRequest->golfer->name }} {{ $booking->final_date->format('M d, Y') }} ${{ number_format($booking->price, 2) }} {{ ucfirst($booking->status) }}
@if($pendingApprovals->count() > 0)

Pending Golfer Approvals

@foreach($pendingApprovals as $profile)

{{ $profile->user->name }}

{{ $profile->home_location }} - ${{ number_format($profile->hourly_rate, 2) }}/hr

Submitted {{ $profile->created_at->diffForHumans() }}

Review
@endforeach
@endif @if($recentCancellations->count() > 0)

Recent Cancellations

@foreach($recentCancellations as $cancellation)

Booking #{{ $cancellation->booking_id }}

{{ $cancellation->cancelledBy->name }} - {{ ucfirst($cancellation->status) }}

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

Review
@endforeach
@endif
@if($topGolfers->count() > 0)

Top Golfers by Revenue

@foreach($topGolfers as $golfer) @endforeach
Golfer Location Bookings Total Earnings
{{ $golfer->user->name }}
{{ $golfer->home_location }} {{ number_format($golfer->total_bookings) }} ${{ number_format($golfer->total_earnings, 2) }}
@endif
@push('scripts') @endpush