@extends('layouts.app') @section('title', 'Dashboard - ' . $branch->branch_name) @section('page-title', 'Dashboard - ' . $branch->branch_name) @section('header-action')
{{ $branch->status }}
@endsection @push('styles') @endpush @section('content')
{{ $branch->branch_name }} - {{ $branch->branch_address }}
{{ $branch->branch_contact_phone }}
{{ $stats['guests_served_today'] }}
Guests Served Today
{{ $stats['queue_entries_today'] }}
Queue Entries
{{ $stats['average_wait_time'] }}min
Avg Wait Time
{{ $stats['seated_under_5_min'] }}%
Seated Under 5 Min
{{ $stats['large_group_handling'] }}
Large Groups (6+)
{{ $stats['no_show_rate'] }}%
No-Show Rate
{{ $stats['cancellation_rate'] }}%
Cancellation Rate
{{ $stats['whatsapp_opt_in'] }}%
WhatsApp Opt-In

Bookings Trend

@if(!empty($chartData['bookings']['values']) && array_sum($chartData['bookings']['values']) > 0)
@php $maxValue = max($chartData['bookings']['values']); @endphp @foreach($chartData['bookings']['labels'] as $index => $label)
{{ $chartData['bookings']['values'][$index] }}
{{ $label }}
@endforeach
@else

No booking data available for the selected period

@endif
{{ $chartData['bookings']['total'] }}
Total Bookings

Group Size Distribution

@if($chartData['group_sizes']['total'] > 0)
@php $total = $chartData['group_sizes']['total']; $circumference = 2 * M_PI * 90; $percent1 = ($chartData['group_sizes']['size_1_to_2'] / $total) * 100; $percent2 = ($chartData['group_sizes']['size_2_to_5'] / $total) * 100; $percent3 = ($chartData['group_sizes']['size_more_than_6'] / $total) * 100; $dash1 = ($percent1 / 100) * $circumference; $dash2 = ($percent2 / 100) * $circumference; $dash3 = ($percent3 / 100) * $circumference; $offset1 = 0; $offset2 = -$dash1; $offset3 = -($dash1 + $dash2); @endphp @if($dash1 > 0) @endif @if($dash2 > 0) @endif @if($dash3 > 0) @endif
1 to 2 People
{{ $chartData['group_sizes']['size_1_to_2'] }}
3 to 5 People
{{ $chartData['group_sizes']['size_2_to_5'] }}
6+ People
{{ $chartData['group_sizes']['size_more_than_6'] }}
@else

No group size data available

@endif

Staff Performance

@forelse($staffPerformance as $staff) @empty @endforelse
Staff Name Role Bookings Handled Status
{{ $staff['name'] }}
{{ $staff['role'] }} {{ $staff['bookings_handled'] }} {{ $staff['status'] }}

No staff data available

Peak Hours

@forelse($peakHours as $peak) @empty @endforelse
Hours Orders
{{ $peak['hours'] }} {{ $peak['orders'] }}

No data available

Recent Bookings

@forelse($recentBookings as $booking) @empty @endforelse
Booking ID Customer Name Phone Guests Table No Booking Time Status
{{ $booking->branch_booking_id ?? $booking->id }} {{ $booking->customer_name }} {{ $booking->phone }} {{ $booking->guest_count }} {{ $booking->table_no ?? '-' }} {{ $booking->created_at->format('M d, Y H:i') }} {{ ucfirst($booking->status) }}

No recent bookings found

@endsection @push('scripts') @endpush