@extends('layouts.app') @section('content')

الطاولات

قائمة الطاولات
@foreach($tables as $table) @endforeach
# الاسم السعة الحالة الإجراءات
{{ $table->id }} {{ $table->name }} {{ $table->capacity }} أشخاص @if($table->status == 'occupied') مشغولة @elseif($table->status == 'reserved') محجوزة @else متاحة @endif
{{ $tables->links() }}
حالة الطاولات

{{ $totalTables }}

إجمالي الطاولات

{{ $availableTables }}

طاولات متاحة

{{ $occupiedTables }}

طاولات مشغولة

{{ $totalCapacity }}

سعة الجلوس

طاولات مشغولة حالياً:
    @forelse($occupiedTablesList as $occupiedTable)
  • {{ $occupiedTable->name }} @if($occupiedTable->orders->isNotEmpty()) طلب #{{ $occupiedTable->orders->first()->id }} @endif
    @if($occupiedTable->orders->isNotEmpty()) عرض الطلب @else لا يوجد طلب نشط @endif
  • @empty
  • لا توجد طاولات مشغولة حالياً
  • @endforelse
@endsection @push('scripts') @endpush