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

لوحة التحكم

@if(isset($lowStockProducts) && $lowStockProducts->count() > 0) @endif
طلبات اليوم
{{ $todayOrders }}
مشغولة: {{ $occupiedTables }} / {{ count($tables) }} طاولة
مبيعات اليوم
{{ number_format($todaySales, 2) }}
@if(!is_null($salesChangePercent)) {{ $salesChangePercent >= 0 ? '+' : '' }}{{ $salesChangePercent }}% عن أمس @else لا توجد مقارنة متاحة @endif
متوسط الفاتورة اليوم
{{ number_format($todayAvgOrder ?? 0, 2) }}
طلبات قيد الانتظار: {{ $pendingOrders }}
حالة الطلبات اليوم
انتظار {{ $statusCounts['pending'] ?? 0 }} تحضير {{ $statusCounts['preparing'] ?? 0 }} مكتمل {{ $statusCounts['completed'] ?? 0 }}
مبيعات الأسبوع
مقارنة يومية
طرق الدفع اليوم
المنتجات الأكثر مبيعاً
    @foreach($topProducts as $product)
  • {{ $product->name }} {{ $product->total_quantity }}
  • @endforeach
منتجات منخفضة المخزون
{{ $lowStockProducts->count() }} عنصر
إضافة مخزون جماعي
@if($lowStockProducts->isEmpty())
لا توجد منتجات منخفضة المخزون حالياً.
@else
@foreach($lowStockProducts as $p) @endforeach
المنتج SKU الكمية حد إعادة الطلب إجراءات
{{ $p->name }} {{ $p->sku ?? '—' }} {{ $p->stock_quantity }} {{ $p->reorder_level }} إضافة مخزون
@endif
أحدث الطلبات
@foreach($recentOrders as $order) @endforeach
# الطاولة العميل المبلغ الحالة الدفع التاريخ الإجراءات
{{ $order->id }} {{ $order->table ? $order->table->name : ($order->is_external_order ? 'طلب خارجي ' . ($order->car_number ? '(سيارة: ' . $order->car_number . ')' : '') : 'غير محدد') }} {{ $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