تقرير فواتير المستخدمين
@if($selectedUserId)
فواتير المستخدم: {{ $selectedUserName }} @if($dateFrom || $dateTo) (من {{ $dateFrom ?: 'البداية' }} إلى {{ $dateTo ?: 'الآن' }}) @endif
عدد الفواتير

{{ $totalInvoices }}

في الفترة المحددة
إجمالي المبيعات

{{ number_format($totalSales, 2) }}

جنية مصري
القطع المباعة

{{ $totalItemsSold }}

قطعة
متوسط الفاتورة

{{ number_format($averageInvoiceValue, 2) }}

جنية / فاتورة
الإحصائيات الشهرية
@foreach($monthlyStats as $stat) @endforeach @if(count($monthlyStats) === 0) @endif
الشهر عدد الفواتير القطع المبيعات
{{ $stat['month'] }} {{ $stat['invoices'] }} {{ $stat['items'] }} {{ number_format($stat['sales'], 2) }} ج.م
لا توجد بيانات
أفضل المنتجات مبيعاً
@foreach($topProducts as $index => $product) @endforeach @if(count($topProducts) === 0) @endif
# المنتج الكمية الإيرادات
{{ $index + 1 }} {{ $product['name'] }} {{ $product['total_sold'] }} {{ number_format($product['total_revenue'], 2) }} ج.م
لا توجد بيانات
الفواتير ({{ $invoices->total() }})
{{ number_format($invoices->sum('total'), 2) }} ج.م {{ $invoices->sum('items_count') }} قطعة
@foreach($invoices as $invoice) @endforeach
# رقم الفاتورة العميل التاريخ القطع الإجمالي
{{ ($invoices->currentPage() - 1) * $invoices->perPage() + $loop->iteration }} {{ $invoice->invoice_number }} @if($invoice->customer) {{ $invoice->customer->name }} @else -- @endif {{ $invoice->created_at->format('Y-m-d') }} {{ $invoice->items_count }} {{ number_format($invoice->total, 2) }} ج.م
@if($invoices->hasPages()) @endif
@else

الرجاء اختيار مستخدم لعرض فواتيره

اختر مستخدم من القائمة المنسدلة لرؤية فواتيره وإحصائياته

@endif