Table Status Manager

@if($tablesToFix->count() > 0) @endif
@if($tablesToFix->count() > 0)
{{ $tablesToFix->count() }} table(s) have incorrect status and need to be fixed.
@else
All table statuses are correct!
@endif
@foreach($tables as $table) @endforeach
Table Area Status Active Order Actions
{{ $table->table_code }}
{{ $table->seating_capacity }} seats
{{ $table->area->area_name }} $table->available_status === 'available', 'bg-blue-100 text-blue-800' => $table->available_status === 'running', 'bg-red-100 text-red-800' => $table->available_status === 'reserved', ])> {{ ucfirst($table->available_status) }} @if($table->activeOrder)
Order #{{ $table->activeOrder->order_number }}
{{ ucfirst($table->activeOrder->status) }}
@else No active order @endif
@if($tablesToFix->contains('id', $table->id)) @else ✓ Correct @endif
{{ $tables->links() }}