@extends('layouts.crm') @section('title', 'لوحة إدارة العملاء - '.config('app.name')) @section('breadcrumb') الرئيسية إدارة العملاء لوحة إدارة العملاء @endsection @section('content') @php $topCards = [ [ 'title' => 'إجمالي العملاء', 'value' => number_format((int) ($totalCustomersCount ?? 0)), 'href' => route('crm.customers.index'), 'hint' => 'crm.total_customers', 'icon_bg' => 'bg-blue-100', 'icon_color' => 'text-blue-600', 'svg' => '', ], [ 'title' => 'الفرص المفتوحة', 'value' => number_format((int) ($openOpportunitiesCount ?? 0)), 'href' => route('crm.opportunities.index'), 'hint' => 'crm.open_opportunities', 'icon_bg' => 'bg-amber-100', 'icon_color' => 'text-amber-600', 'svg' => '', ], [ 'title' => 'حسابات الولاء', 'value' => number_format((int) ($loyaltyAccountsCount ?? 0)), 'href' => route('crm.loyalty.accounts.index'), 'hint' => 'crm.loyalty_accounts', 'icon_bg' => 'bg-pink-100', 'icon_color' => 'text-pink-600', 'svg' => '', ], [ 'title' => 'مواعيد اليوم', 'value' => number_format((int) ($appointmentsToday ?? 0)), 'href' => route('crm.appointments.index'), 'hint' => 'crm.today_appointments', 'icon_bg' => 'bg-sky-100', 'icon_color' => 'text-sky-600', 'svg' => '', ], [ 'title' => 'العملاء المحتملين', 'value' => number_format((int) ($potentialCount ?? 0)), 'href' => route('crm.customers.index', ['crm_status' => 'potential']), 'hint' => 'crm.potential_customers', 'icon_bg' => 'bg-emerald-100', 'icon_color' => 'text-emerald-600', 'svg' => '', ], ]; @endphp

لوحة إدارة العملاء

@foreach($topCards as $card)
{{ $card['value'] }}
{{ $card['title'] }}
@endforeach

اتجاهات العملاء

نمو العملاء الجدد خلال آخر 6 أشهر

العملاء حسب الحالة

@endsection @push('scripts') @endpush