@extends('backend.app') @push('style') @endpush @section('title', 'Booking Dashboard') @section('content')

Booking Management Dashboard

Monitor and manage all your bookings in real-time

{{ number_format($stats['total_bookings']) }} Total Bookings
{{ number_format($stats['booking_growth'], 1) }}% This Week
Total

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

All bookings

{{ number_format(abs($stats['booking_growth']), 1) }}% this week
Pending

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

Awaiting action

Needs attention
Confirmed

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

Scheduled

Upcoming
Completed

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

Successful

Finished
Booking Status Distribution
Overview of all booking statuses

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

PENDING

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

CONFIRMED

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

COMPLETED

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

CANCELLED
@if($stats['flagged_bookings'] > 0)
{{ number_format($stats['flagged_bookings']) }} bookings flagged for review Review Now
@endif
Recent Bookings
Latest booking activities
View All
@if(isset($recentBookings) && $recentBookings->count() > 0)
@foreach($recentBookings as $booking) @endforeach
# Customer Company Date & Time Amount Status Action
#{{ $booking->id }}
{{ strtoupper(substr($booking->user->name ?? 'N', 0, 1)) }}
{{ $booking->user->name ?? 'N/A' }}
{{ $booking->user->email ?? 'N/A' }}
{{ $booking->company->name ?? 'N/A' }}
{{ $booking->booking_date ? $booking->booking_date->format('M d, Y') : 'N/A' }}
{{ $booking->booking_time ?? 'N/A' }}
{{ config('app.currency_symbol', '$') }}{{ number_format((float)($booking->total_amount ?? 0), 2) }} @php $statusColors = [ 'pending' => 'warning', 'confirmed' => 'info', 'completed' => 'success', 'cancelled' => 'danger', ]; $color = $statusColors[$booking->status] ?? 'secondary'; @endphp {{ ucfirst($booking->status) }}
@else

No bookings yet. Bookings will appear here automatically.

@endif
@endsection