@if ($reorderCount > 0 || $atRiskCount > 0)

{{ __('Reorders to act on') }}

{{ number_format($reorderCount) }}
{{ __('All reorders') }}

{{ __('Accounts at risk') }}

{{ number_format($atRiskCount) }}
{{ __('Account health') }}
    @forelse ($atRisk as $account) @php $worst = collect($account->health_signals ?? [])->first(); @endphp
  • {{ $account->name }} @if ($account->is_strategic) {{ __('Strategic') }} @endif @if ($worst)

    {{ $worst['label'] ?? '' }}

    @endif
  • @empty
  • {{ __('No accounts at risk.') }}
  • @endforelse
@endif