@extends('admin.layouts.app') @section('title', 'Admin Dashboard') @section('header_title', 'Restaurant Overview') @section('content')

Welcome back, {{ Auth::user()->name ?? 'Manager' }}

Here is what is happening across your WOK UP branches today.

+ Add New Dish Manage Orders
Total Revenue
{{ $currency }}{{ number_format($totalRevenue, 0) }}
+{{ $currency }}{{ number_format($todayRevenue, 0) }} today
Total Orders
{{ $totalOrders }}
{{ $todayOrders }} placed today
Pending Orders
{{ $pendingOrders }}
{{ $confirmedOrders }} confirmed · {{ $preparingOrders }} in kitchen
Menu Catalog
{{ $activeDishes }}
Across {{ $totalCategories }} Pan Asian cuisines

Recent Orders

Live customer requests from storefront
View All →
@if($recentOrders->isEmpty())

No orders recorded yet

Orders placed on the storefront will appear here instantly.

Place a Test Order
@else
@foreach($recentOrders as $o) @endforeach
Order Customer Branch Amount Status Action
#{{ $o->order_number }}
{{ $o->created_at->format('h:i A') }}
{{ $o->customer_name }}
{{ $o->customer_phone }}
{{ $o->branch ? $o->branch->name : 'Delivery' }} {{ $currency }}{{ number_format($o->total, 0) }}
{{ $o->items->sum('quantity') }} items
{{ ucfirst($o->status) }} View
@endif

Branches Status

Manage
@foreach($branches as $b)
{{ $b->name }}
{{ $b->opening_time }} - {{ $b->closing_time }}
{{ $b->is_open ? 'Open' : 'Closed' }}
@endforeach

Cuisines

View Dishes
@foreach($categories as $cat)
{{ $cat->name }} {{ $cat->native_name }} {{ $cat->menu_items_count }} dishes
@php $pct = $totalDishes > 0 ? ($cat->menu_items_count / $totalDishes) * 100 : 0; @endphp
@endforeach
@endsection