@extends('backend.partials.master') @section('title') {{ ___('admin.customer_reports_a3044b') }} @endsection @section('maincontent') @include('backend.reports._filterbar') @php $laDonut = ['labels' => $byTier->pluck('tier')->all(), 'series' => $byTier->pluck('total')->map(fn($v) => (int) $v)->all()]; $laTrend = ['type' => 'bar', 'labels' => $byStatus->pluck('status')->map(fn($s) => ucfirst($s))->all(), 'series' => [['name' => 'Customers', 'data' => $byStatus->pluck('total')->map(fn($v) => (int) $v)->all()]]]; @endphp
{{ ___('admin.customers_035eae') }}

{{ number_format($total) }}

{{ ___('admin.active_a733b8') }}

{{ number_format($active) }}

{{ ___('admin.inactive_09af57') }}

{{ number_format($inactive) }}

{{ ___('admin.by_tier_57b4cc') }}

@foreach($byTier as $t) {{ admin_label(ucfirst($t->tier)) }}{{ number_format($t->total) }} @endforeach

{{ ___('admin.by_status_555c76') }}

@foreach($byStatus as $s) {{ admin_label(ucfirst($s->status)) }}{{ number_format($s->total) }} @endforeach
@endsection