Total Customer Aktif
@extends('layouts.admin') @section('title', 'Customer Aktif | Super Admin') @section('page_title', 'Customer Aktif') @push('styles') @endpush @section('content') @php $totalActiveCustomers = $activeCustomers->count(); $totalCompletedBookings = (int) $activeCustomers->sum('completed_booking_count'); $totalTransactions = (float) $activeCustomers->sum('total_transaction'); $loyalCustomers = $activeCustomers->filter(fn($customer) => ((int) ($customer->completed_booking_count ?? 0)) >= $loyalThreshold)->count(); @endphp
Evaluasi performa customer berdasarkan aktivitas booking dan nilai transaksi.
Total Customer Aktif
Total Booking Completed
Total Transaksi
Loyal Customer
Loyal customer ditentukan berdasarkan ambang minimal booking selesai.
| No | Nama Customer | Nomor HP | Total Booking | Booking Completed | Total Transaksi | Last Booking Date | Status Loyal | |
|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $customer->name }} | {{ $customer->email }} | {{ $customer->phone ?? '-' }} | {{ number_format((int) ($customer->total_booking_count ?? 0), 0, ',', '.') }} | {{ number_format((int) ($customer->completed_booking_count ?? 0), 0, ',', '.') }} | Rp {{ number_format((float) ($customer->total_transaction ?? 0), 0, ',', '.') }} | {{ $lastBookingDateText }} | @if ($isLoyal) Loyal @else Regular @endif |
Belum ada data laporan untuk filter yang dipilih.