@extends('super-admin.layout') @section('title', 'Customer Report') @section('subtitle', $summary['period']) @section('content')
| Frequency | Customers | Total Revenue | Avg Value |
|---|---|---|---|
| {{ $frequency }} | {{ number_format($data['count']) }} | ₦{{ number_format($data['total_revenue'], 0) }} | ₦{{ number_format($data['avg_value'], 0) }} |
| Customer | Contact | Orders | Total Spent | Avg Order | Lifetime Value | Last Order |
|---|---|---|---|---|---|---|
|
{{ $customer['name'] }}
Joined {{ \Carbon\Carbon::parse($customer['registration_date'])->format('M d, Y') }}
|
{{ $customer['email'] }}
{{ $customer['phone'] }}
|
{{ number_format($customer['total_orders']) }} | ₦{{ number_format($customer['total_spent'], 0) }} | ₦{{ number_format($customer['avg_order_value'], 0) }} | ₦{{ number_format($customer['lifetime_value'], 0) }} |
@if($customer['last_order'])
{{ \Carbon\Carbon::parse($customer['last_order'])->format('M d, Y') }}
@if($customer['days_since_last_order'])
{{ $customer['days_since_last_order'] }} days ago
@endif
@else
Never
@endif
|
| Customer | Registration | First Order | Orders | Total Spent | Days to First Order |
|---|---|---|---|---|---|
|
{{ $customer['name'] }}
{{ $customer['email'] }}
|
{{ \Carbon\Carbon::parse($customer['registration_date'])->format('M d, Y') }} | @if($customer['first_order_date']) {{ \Carbon\Carbon::parse($customer['first_order_date'])->format('M d, Y') }} @else No orders yet @endif | {{ number_format($customer['orders_count']) }} | ₦{{ number_format($customer['total_spent'], 0) }} | @if($customer['days_to_first_order'] !== null) {{ $customer['days_to_first_order'] }} days @else - @endif |