@include('livewire.admin.components.date-range-filter')

إجمالي المبيعات

{{ number_format($sales['total_sales']) }} د.ع

{{ $salesGrowth >= 0 ? '+' : '' }}{{ $salesGrowth }}% عن الفترة السابقة

عدد الطلبات

{{ number_format($sales['total_orders']) }}

{{ $ordersGrowth >= 0 ? '+' : '' }}{{ $ordersGrowth }}%

صافي الربح

{{ number_format($profit['profit']) }} د.ع

هامش {{ $profit['margin'] }}%

متوسط قيمة الطلب

{{ number_format($sales['avg_order']) }} د.ع

يومياً: {{ number_format($sales['daily_avg']) }} د.ع

اتجاه المبيعات

الطلبات حسب الحالة

أفضل المنتجات

@foreach($topProducts as $i => $p) @endforeach
#المنتجالكميةالإيراد
{{ $i + 1 }} {{ $p->product_name }} {{ number_format($p->sold_qty) }} {{ number_format($p->revenue) }} د.ع

أفضل العملاء

@foreach($topCustomers as $i => $c) @endforeach
#العميلالطلباتالمشتريات
{{ $i + 1 }} {{ $c->customer_name }} {{ $c->orders_count }} {{ number_format($c->total_spent) }} د.ع