No at-risk customers found.
| Customer | Plan | Risk Level | Last Payment | Risk Score | Actions |
|---|---|---|---|---|---|
|
{{ strtoupper(substr($customer['customer'], 0, 1)) }}
{{ $customer['customer'] }}
ID: {{ $customer['id'] }}
|
@php $planClass = match(strtolower($customer['plan'])) { 'enterprise' => 'plan-enterprise', 'premium' => 'plan-premium', 'basic' => 'plan-basic', default => 'plan-default', }; @endphp {{ $customer['plan'] }} | @php $riskLevelClass = match(strtolower($customer['risk_level'])) { 'high' => 'risk-high', 'medium' => 'risk-medium', default => 'risk-low', }; @endphp @if($customer['risk_level'] === 'High') @elseif($customer['risk_level'] === 'Medium') @else @endif {{ $customer['risk_level'] }} |
@if($customer['last_payment'] === 'Never')
Never
@else
{{ \Carbon\Carbon::parse($customer['last_payment'])->format('Y-m-d') }}
@endif
|
@php
$riskScoreClass = match(true) {
$riskScoreRaw >= 80 => 'score-critical',
$riskScoreRaw >= 60 => 'score-high',
$riskScoreRaw >= 40 => 'score-medium',
default => 'score-low',
};
@endphp
{{ $customer['risk_score'] }}
|