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

أعلى 8 عملاء

@if($chartData->isNotEmpty())
@else

لا توجد بيانات

@endif

ملخص

عدد العملاء {{ $customers->count() }}
إجمالي المشتريات {{ number_format($customers->sum('total_spent')) }} د.ع
إجمالي الطلبات {{ number_format($customers->sum('orders_count')) }}
@php $totalSpent = max($customers->sum('total_spent'), 1); @endphp @forelse($customers as $i => $c) @empty @endforelse
#العميلعدد الطلباتإجمالي المشترياتمتوسط الطلبالحصة
@if($i < 3) 👑 {{ $i + 1 }} @else {{ $i + 1 }} @endif {{ $c->customer_name }} {{ $c->orders_count }} {{ number_format($c->total_spent) }} د.ع {{ $c->orders_count > 0 ? number_format($c->total_spent / $c->orders_count) : 0 }} د.ع
{{ round(($c->total_spent / $totalSpent) * 100) }}%
لا توجد مشتريات في هذه الفترة