@extends('layouts.clivax') @section('content')
{{ $customers->where('total_revenue', '>=', 5000)->count() }}
{{ $customers->whereBetween('total_revenue', [1000, 4999])->count() }}
{{ $customers->whereBetween('total_revenue', [500, 999])->count() }}
{{ $customers->whereBetween('total_revenue', [100, 499])->count() }}
{{ $customers->whereBetween('total_revenue', [1, 99])->count() }}
{{ $customers->where('total_revenue', 0)->count() }}
| Customer | Customer Type | Lifetime Value | Shipments | Avg. Order Value | Customer Since | Last Activity | Value Segment |
|---|---|---|---|---|---|---|---|
|
{{ strtoupper(substr($customer->name, 0, 1)) }}
{{ $customer->name }}
@if($customer->company_name)
{{ $customer->company_name }} @endif |
{{ ucfirst($customer->customer_type) }} | ${{ number_format($customer->total_revenue, 2) }} | {{ $customer->total_shipments }} | ${{ number_format($customer->average_shipment_value, 2) }} | {{ $customer->first_shipment_date ? $customer->first_shipment_date->format('M d, Y') : $customer->created_at->format('M d, Y') }} | {{ $customer->last_shipment_date ? $customer->last_shipment_date->format('M d, Y') : 'No shipments' }} | {{ $segment }} |