@php $customers_count = 0; @endphp @foreach(@$statuses as $k => $item) {{-- Giữ tông màu database; CSS phối nền, chữ và badge đếm để tăng độ tương phản. --}} @php $customers_count += $item->customers_count; @endphp @endforeach
{{$customers->firstItem()}} - {{$customers->lastItem()}} / {{$customers->total()}} {{ $customers->appends(['search' => request()->search ])->links('vendor.pagination.simple-bootstrap-4') }}
@php // Icon hiển thị trước tên cột (key theo Customer::grid_display) $gridIcons = [ 1 => 'far fa-calendar-alt', 2 => 'far fa-user', 3 => 'fas fa-phone-alt', 4 => 'far fa-comment-dots', 5 => 'fas fa-users', 6 => 'far fa-dot-circle', 7 => 'fas fa-user-tie', 8 => 'far fa-file-alt', 11 => 'fas fa-map-marker-alt', 14 => 'fas fa-user-edit', 25 => 'fas fa-headset', 26 => 'far fa-comments', 15 => 'far fa-calendar-check', 16 => 'fas fa-birthday-cake', 17 => 'fas fa-bullhorn', 18 => 'fas fa-globe', 20 => 'fas fa-venus-mars', 21 => 'fas fa-receipt', 22 => 'fas fa-coins', 23 => 'far fa-check-circle', 24 => 'fas fa-hourglass-half', ]; @endphp @forelse($user_filter_list as $key => $item) @if($key == 4) @if(\Illuminate\Support\Facades\Auth::user()->department_id == 3) @endif @else @endif @empty @endforelse @if (count($customers)) @foreach($customers as $key => $customer) @if(\Illuminate\Support\Facades\Auth::user()->department_id == \App\Constants\DepartmentConstant::MARKETING) @endif {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endforeach @else @endif
Tin nhắn @if(isset($gridIcons[$key]))@endif{{$item}} Chỉnh sửa
status) && $customer->status->color) style="--crm-row-color: {{$customer->status->color}}" @endif> {{ $key + 1 }} {{ date('d-m-Y', strtotime($customer->created_at)) }} {{ date('H:i:s', strtotime($customer->created_at)) }} {{-- Màu avatar cố định theo id khách để dễ phân biệt các hàng --}} {{ mb_strtoupper(mb_substr(trim($customer->full_name), 0, 1, 'UTF-8'), 'UTF-8') }} @if($customer->FB_ID) @else @endif {{ $customer->full_name }} {{ $customer->groupComments->count() }} {{@$customer->account_code}} @if(@$customer->facebook) @endif @if(env('CALL_CENTER_OLD')) {{ str_limit($customer->phone,7,'xxx') }} @else {{auth()->user()->permission('phone.open') ? $customer->phone : str_limit($customer->phone, 7, 'xxx')}} @endif {{-- @if(!empty($customer->call_back))--}} {{-- --}} {{-- @endif--}} {{str_limit($customer->group_text,30)}} @if(@$customer->status) status->color) style="--crm-badge-color: {{$customer->status->color}}" @endif>{{ $customer->status->name }} @endif {{ @$customer->telesale->full_name }} {{$customer->expired_text}}{{@$customer->time_move}}{{@$customer->branch->name}}--}} {{-- {{str_limit($customer->group_tips,30)}}--}} {{-- {{@$customer->genitive->name}}{{@$customer->carepage->full_name}} {{@$customer->cskh->full_name}} {{diffTime($customer->last_time)}} {!! $customer->schedules_text !!} {{$customer->birthday? date('d-m-Y', strtotime($customer->birthday)):'' }} {{ @$customer->marketing ? @$customer->marketing->full_name: '' }} {{ @$customer->source_customer->name}}--}} {{-- {{ @$customer->facebook?str_limit($customer->facebook,30,'...'):''}}--}} {{-- {{ $customer->gender_text }} {{ count($customer->orders) }} {{ number_format($customer->orders->sum('all_total')) }} {{ number_format($customer->orders->sum('gross_revenue')) }} {{ number_format($customer->orders->sum('the_rest')) }}
Không tồn tại dữ liệu
@include('customers.modal_view')