@extends('layout') @section('content')

Dashboard Overview

User Registrations Over Time

Today: {{ $todayUsers }} , Total: {{ $totalUsers }}

Total Bookings

Today: {{ $todayBookings }} , Total: {{ $totalBookings }}

Total Payment

Total: ₹{{ number_format($overallPayments->total ?? 0) }}

Wallet: ₹{{ number_format($overallPayments->wallet_total ?? 0) }}, UPI: ₹{{ number_format($overallPayments->upi_total ?? 0) }}

Current Month Payment

Total: ₹{{ number_format($currentMonthPayments->total ?? 0) }}

Wallet: ₹{{ number_format($currentMonthPayments->wallet_total ?? 0) }}, UPI: ₹{{ number_format($currentMonthPayments->upi_total ?? 0) }}

Total Partner

Today: {{ $todayPartners }} , Total: {{ $totalPartners }}

Confirmed Booking

{{ $confirmedTotal }}

Completed Booking

{{ $completedTotal }}

Pending Booking

{{ $pendingTotal }}

Cancelled Booking

{{ $cancelledTotal }}

Latest Orders

@forelse ($latestBookings as $b) @php $start = \Carbon\Carbon::parse($b->time); $end = (clone $start)->addHour(); // assume 1-hour slot $labelMap = [ 'completed' => 'Delivered', 'confirmed' => 'Confirmed', 'pending' => 'Pending', 'cancelled' => 'Cancelled', ]; $classMap = [ 'completed' => 'delivered', 'confirmed' => 'processing', 'pending' => 'pending', 'cancelled' => 'cancelled', ]; $label = $labelMap[$b->status] ?? ucfirst($b->status); $badge = $classMap[$b->status] ?? 'pending'; @endphp @empty @endforelse
Booking Id Date User Name Time Slot Price Status Created At
{{ $b->booking_id }} {{ \Carbon\Carbon::parse($b->date)->format('d M y') }} {{ $b->user->name ?? 'N/A' }} {{ $start->format('h:i A') }} - {{ $end->format('h:i A') }} ₹{{ number_format($b->amount, 2) }} {{ $label }} {{ $b->created_at?->format('d M y') }}
No recent bookings

Latest Referrals

@forelse ($referrals as $row) @empty @endforelse
Referral Code (used) Referrer Name (whose code) Referred Name (who used) User Mobile No Referral Mobile No Coins (User | Referrer) Created At
{{ $row->referral_code }} {{ $row->referrer_name ?? 'N/A' }} {{ $row->referred_name }} {{ $row->user_mobile }} {{ $row->referral_mobile ?? 'N/A' }} {{ number_format($row->child_coins, 2) }} | {{ number_format($row->parent_coins, 2) }} {{ \Carbon\Carbon::parse($row->created_at)->format('d M y') }}
No referral data
@endsection