@lang('floor.Tables')
@if (auth('admin')->user()->hasPermissionTo('create tables', 'admin')) @endif @if (auth('admin')->user()->hasPermissionTo('create tables', 'admin')) @endif @if (auth('admin')->user()->hasPermissionTo('update tables', 'admin')) @endif @if (auth('admin')->user()->hasPermissionTo('view tables', 'admin')) @endif @if (auth('admin')->user()->hasPermissionTo('view tables', 'admin'))
@if (session('message'))
{{ session('message') }}
@endif @if ($errors->any()) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif
@unless (auth('admin')->user()->hasRole('Branch Manager'))
@endunless
@foreach ($Tables as $tables) @endforeach
@lang('floor.ID') @lang('floor.ArabicName') @lang('floor.EnglishName') @lang('floor.TableNumber') @lang('branch.Branch') @lang('floor.Capacity') @lang('floor.Type') @lang('floor.Status') @lang('floor.Smoking') @lang('floor.Floor') @lang('floor.Partition') @lang('floor.Online') @lang('category.Actions')
{{ $tables->id }} {{ $tables->name_ar }} {{ $tables->name_en }} {{ $tables->table_number }} {{ $tables->floors->branches->name_ar . ' | ' . $tables->floors->branches->name_en }} {{ $tables->capacity }} {{ $tables->type == 1 ? __('floor.Indoor') : ($tables->type == 2 ? __('floor.Outdoor') : __('floor.Both')) }} {{ $tables->status == 1 ? __('floor.Available') : ($tables->status == 2 ? __('floor.Occupied') : __('floor.Reserved')) }} {{ $tables->smoking == 1 ? __('floor.Smokin') : ($tables->smoking == 2 ? __('floor.NoSmokin') : __('floor.Both')) }} {{ $tables->floors->name_ar . ' | ' . $tables->floors->name_en }} {{ ($tables->floorPartitions->name_ar ?? '') . ' | ' . ($tables->floorPartitions->name_en ?? '') }} {{ $tables->online == 1 ? __('floor.Yes') : __('floor.No') }} @if (auth('admin')->user()->hasPermissionTo('view tables', 'admin')) @lang('category.show') @endif @if (auth('admin')->user()->hasPermissionTo('update tables', 'admin')) @endif @if (auth('admin')->user()->hasPermissionTo('delete tables', 'admin'))
@csrf @method('DELETE')
@endif
@endif