@extends('layouts.app') @section('title', \App\Models\Department::nameFor('restaurant', 'Restaurant').' ยท Tables') @section('content')

Restaurant Floor

Choose a table under Open Space or VIP to start or resume its order.

@if (auth()->user()->can('tables.manage')) Manage tables & floors @endif
{{-- Legend --}}
Free Occupied Reserved Merged
@forelse ($tables as $zone => $zoneTables)

{{ $zone ?: 'Main Hall' }}

@foreach ($zoneTables as $table) @php $statusColor = match($table->status->value ?? $table->status) { 'occupied' => 'border-danger/40 bg-danger/5', 'reserved' => 'border-accent-500/40 bg-accent-50', 'merged' => 'border-purple-400/40 bg-purple-50', default => 'border-success/30 bg-success/5', }; $dot = match($table->status->value ?? $table->status) { 'occupied' => 'bg-danger', 'reserved' => 'bg-accent-500', 'merged' => 'bg-purple-500', default => 'bg-success', }; @endphp
{{ $table->capacity }} seats

{{ $table->name }}

@if ($table->currentOrder)

{{ $table->currentOrder->order_number }}

{{ config('pos.company.currency_symbol') }} {{ number_format($table->currentOrder->grand_total ?: $table->currentOrder->subtotal, 0) }}

@else

Tap to seat guests

@endif
@endforeach
@empty

No tables configured yet.

@if (auth()->user()->can('tables.manage')) Add your first table @endif
@endforelse {{-- Open-order modal --}}

Open new order

@csrf

This opens an order for the selected table. Seating type is determined by the table section.

Maximum seats for this table.

{{-- Takeaway modal (no table) --}}

New delivery order

@csrf

Customer, delivery location and rider details are entered on the POS screen.

@endsection