@extends('layouts.crm') @section('title', ($isLeadsView ?? false) ? 'العملاء المحتملين — CRM — '.config('app.name') : 'جهات الاتصال — CRM — '.config('app.name')) @section('breadcrumb') الرئيسية › إدارة العملاء › @if($isLeadsView ?? false) العملاء المحتملين @else جهات الاتصال @endif @endsection @section('content') @php $crmAssigneeFilterOptions = $assignees->map(fn ($u) => ['value' => (string) $u->id, 'label' => $u->name])->values()->all(); $crmSourceFilterOptions = collect($sourceOptions ?? [])->map(fn ($s) => ['value' => (string) $s, 'label' => (string) $s])->values()->all(); $crmLeadPriorityOptions = [ ['value' => 'high', 'label' => 'عالية'], ['value' => 'medium', 'label' => 'متوسطة'], ['value' => 'low', 'label' => 'منخفضة'], ]; $crmStatusFilterOptions = [ ['value' => 'potential', 'label' => 'محتمل'], ['value' => 'interested', 'label' => 'مهتم'], ['value' => 'active', 'label' => 'نشط'], ['value' => 'not_interested', 'label' => 'غير مهتم'], ]; @endphp
جاري التحميل...
| {{ $customer->lead_number ?: '—' }} |
@if($assignee)
{{ $assigneeInitials }}
@endif
{{ $customer->display_name }}
|
@if($phoneDisp) @else — @endif | {{ $crmLabel }} | {{ $prioLabel }} |
@for($i = 1; $i <= 5; $i++)
@if($i <= $rating)
@else
@endif
@endfor
|
|
| لا توجد نتائج مطابقة للفلاتر. | ||||||
إجمالي جهات الاتصال
{{ number_format($contactsStats['total']) }}
العملاء المحتملين
{{ number_format($contactsStats['leads']) }}
العملاء
{{ number_format($contactsStats['customers_active']) }}
جاري التحميل...
|
@php $nameSortHref = route('crm.customers.index', array_merge($contactsFilterBaseParams, ['sort' => 'name', 'direction' => $contactsSortNameDirection])); @endphp
|
@php $createdSortHref = route('crm.customers.index', array_merge($contactsFilterBaseParams, ['sort' => 'created_at', 'direction' => $contactsSortCreatedDirection])); @endphp
|
|
||||
|---|---|---|---|---|---|---|
| {{ $customer->display_name }} @if($customer->code){{ $customer->code }}@endif | {{ \App\Models\Customer::contactRecordTypeLabel($customer->company_name) }} | @if($customer->email){{ $customer->email }}@else—@endif | {{ $crmLabel }} | {{ $phoneDisp ?: '—' }} | {{ $createdStr }} |
|
| لا توجد بيانات | ||||||