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

لوحة التحكم

طلبات اليوم

{{ $todayOrdersCount }}

مبيعات اليوم

{{ number_format($todaySales, 2) }}

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

{{ $occupiedTablesCount }} / {{ $totalTablesCount }}

طلبات قيد الانتظار

{{ $pendingOrdersCount }}

مبيعات الأسبوع
أكثر المنتجات مبيعاً
    @foreach($topProducts as $product)
  • {{ $product->name }} {{ $product->category->name }}
    {{ $product->total_quantity }}
  • @endforeach
أحدث الطلبات
@foreach($recentOrders as $order) @endforeach
# الطاولة العميل المبلغ الحالة الدفع التاريخ الإجراءات
{{ $order->id }} {{ $order->table->name }} {{ $order->customer_name ?? 'غير محدد' }} {{ number_format($order->final_amount, 2) }} @switch($order->status) @case('pending') قيد الانتظار @break @case('preparing') قيد التحضير @break @case('completed') مكتمل @break @case('cancelled') ملغي @break @endswitch @switch($order->payment_status) @case('pending') غير مدفوع @break @case('partially_paid') مدفوع جزئياً @break @case('paid') مدفوع @break @endswitch {{ $order->created_at->format('Y-m-d H:i') }}
@endsection @push('scripts') @endpush