@extends('layouts.app') @section('title', 'تقرير أفضل العملاء') @section('content')

⭐ أفضل العملاء

تحديد أكبر العملاء وأكثرهم نشاطاً

عودة
@if($customers->count() > 0)

📊 الرسم البياني

@endif
@forelse($customers as $customer) @empty @endforelse
الترتيب اسم العميل عدد الفواتير إجمالي المبيعات المدفوع المعلق النسبة
@if($loop->iteration == 1) 🥇 @elseif($loop->iteration == 2) 🥈 @elseif($loop->iteration == 3) 🥉 @else {{ $loop->iteration }} @endif
{{ $customer['customer_name'] }} {{ $customer['invoice_count'] }} {{ number_format($customer['total_amount'], 0) }} ريال {{ number_format($customer['paid_amount'], 0) }} ريال {{ number_format($customer['remaining_amount'], 0) }} ريال

{{ $customer['percentage'] }}%

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

@if($customers->count() > 0) @endif @endsection