Customer Insights

Monitor customer loyalty, frequency, and lifetime value across all rentals.

Total Customers

{{ $customers->total() }}

Orders Count

{{ \App\Models\Rental::count() }}

Total Revenue (Gross)

Rp {{ number_format(\App\Models\Rental::whereIn('status', ['paid', 'completed'])->sum('grand_total'), 0, ',', '.') }}
@forelse($customers as $c) @empty @endforelse
Pelanggan Status Tier Order Lifetime Value Aksi
{{ $c->nama }} {{ $c->no_wa }}
@php $tier = $this->getTier($c->ltv); @endphp {{ $tier->label }} {{ $c->total_orders }}x Rp{{ number_format($c->ltv, 0, ',', '.') }}
Pelanggan tidak ditemukan.
{{ $customers->currentPage() }} / {{ $customers->lastPage() }}
@if($selectedNik)

{{ $customerDetails->first()->nama }}

Detailed rental history and customer insights.

Total Orders

{{ $customerDetails->count() }}x

Lifetime Revenue

Rp{{ number_format($customerDetails->sum('grand_total'), 0, ',', '.') }}

@php $tier = $this->getTier($customerDetails->sum('grand_total')); @endphp

Loyalty Tier

{{ $tier->label }}

Rental History

@foreach($customerDetails as $rent) @endforeach
Booking Unit Total Status
#{{ $rent->booking_code }} {{ $rent->created_at->format('d M Y') }}
@foreach($rent->units as $u) {{ $u->seri }} @endforeach
Rp {{ number_format($rent->grand_total, 0, ',', '.') }} {{ $rent->status }}
@endif