الرئيسية
تقرير العملاء
تقرير العملاء الشامل
@forelse($reports as $report) @empty @endforelse
اسم العميل الجوال المدينة نوع العميل الخدمة الباقة الصفقة العقد
{{ $report['client_name'] }} {{ $report['client_phone'] }} {{ $report['client_city'] }} @if ($report['client_type'] == 'b2c') B2C (أفراد) @elseif($report['client_type'] == 'b2b') B2B (شركات) @else غير محدد @endif {{ $report['service_name'] }} {{ $report['package_name'] }} @if ($report['deals_count'] > 0)
@foreach ($report['deals'] as $deal) {{ $deal->title ?? 'صفقة #' . $deal->id }} @endforeach
@else لا توجد صفقات @endif
@if ($report['contracts_count'] > 0)
@foreach ($report['contracts'] as $contract)
{{ $contract->title ?? 'عقد #' . $contract->id }}
@endforeach
@else لا توجد عقود @endif

لا توجد بيانات للعرض في الفترة المحددة

{{-- Summary Statistics --}} @if (!empty($reports))
إحصائيات التقرير
{{ count($reports) }}
إجمالي العملاء
نوع العملاء
{{ collect($reports)->where('client_type', 'b2c')->count() }}
B2C (أفراد)
{{ collect($reports)->where('client_type', 'b2b')->count() }}
B2B (شركات)
{{ collect($reports)->sum('deals_count') }}
إجمالي الصفقات
{{ collect($reports)->sum('contracts_count') }}
إجمالي العقود
@endif {{-- Loading indicator --}}
جاري التحميل...