@lang('modules.table.tableView')

@lang('app.showAll') @lang('modules.table.available') @lang('modules.table.running') @lang('modules.table.reserved')
@if(user_can('Create Table'))
@lang('modules.table.addTable')
@endif
@foreach ($tables as $area)

{{ $area->area_name }} {{ $area->tables->count() }} @lang('modules.table.table')

@if($viewType === 'layout')
@foreach ($area->tables as $item) @endforeach
@elseif($viewType === 'grid')
@foreach ($area->tables as $item)
$item->available_status == 'available', 'bg-red-100 border-red-200' => $item->available_status == 'reserved', 'bg-blue-100 border-blue-200' => $item->available_status == 'running', 'opacity-50' => $item->status == 'inactive' ])> {{ $item->table_code }} {{ $item->seating_capacity }} @lang('modules.table.seats') @if($item->activeOrder) {{ $item->activeOrder->kot->count() }} @lang('modules.order.kot') @endif
@endforeach
@else @endif
@endforeach
{{ __("modules.table.addTable") }} @livewire('forms.addTable') {{ __('app.close') }} @if ($activeTable) {{ __("modules.table.editTable") }} @livewire('forms.editTable', ['activeTable' => $activeTable], key(str()->random(50))) {{ __('app.close') }} @endif