@extends('layouts.admin') @section('content') @push('page-title') Tables - Admin @endpush

All Tables

All @foreach($tableLocation as $tl) {{ $tl->name }} @endforeach
@foreach($tables as $table) @endforeach
Name No of seats Location Guests can book for food Guests can book Actions
{{ $table->name }} {{ $table->no_of_seats }} {{ $table->table_location }} @if($table->guests_can_book_for_food == 1) Yes @else No @endif @if($table->bookable_by_guest== 1) Yes @else No @endif
@foreach($tableLocation as $tl)
@foreach($tables->where('table_location', $tl->name) as $table) @endforeach
Name No of seats Location Actions
{{ $table->name }} {{ $table->no_of_seats }} {{ $table->table_location }}
@endforeach
@endsection