@extends('layouts.app') @section('title', 'Table Management') @section('page', 'tables') @php $statusVariant = fn ($s) => match ($s) { 'Available' => 'success', 'Occupied' => 'danger', 'Reserved' => 'warning', 'Inactive' => 'neutral', default => 'neutral', }; @endphp @section('content') @if (session('success')) {{ session('success') }} @endif @if ($errors->any()) {{ $errors->first() }} @endif

Total Tables

{{ $totalTables }}

All dining tables

Available

{{ $available }}

Ready for guests

Occupied

{{ $occupied }}

Currently in use

Reserved

{{ $reserved }}

Booked ahead

@forelse ($tables as $row) {{ $row->name }} {{ $row->code }} {{ $row->capacity }} {{ $row->section ?: '—' }} {{ $row->sort_order }} {{ $row->status }} @if ($row->is_locked) Default @endif
@if ($row->is_locked) System default @else @endif
@empty No tables yet. Add your first table. @endforelse
@endsection @push('styles') @endpush @push('scripts') @endpush