@foreach ($stats as $label => $value)
@php
[$icon, $tone, $detail] = $design[$label] ?? ['dashboard', 'blue', 'Portal metric'];
@endphp
{{ $label }}{{ $value }}{{ $detail }}
@endforeach
@if(! $oneTimeClient)
Payment Status{{ $stats['Pending Payments'] ? 'Review' : 'Clear' }}Manual approval
@endif
@if($oneTimeClient)
{{ $stats['Open Orders'] ?? 0 }} open orders
No monthly plan is required for this portal.
@else
{{ $subscription->plan->name ?? 'No active plan' }}
Usage: {{ $subscription->usage_count ?? 0 }} work items
@endif
@include('partials.task-table', ['tasks' => $tasks])