@php $status = $growth['status']; $theme = match ($status) { 'green' => ['label' => 'Croissance saine', 'icon' => 'heroicon-o-check-circle', 'box' => 'border-success-300 bg-success-50 dark:border-success-500/40 dark:bg-success-500/10', 'text' => 'text-success-700 dark:text-success-400'], 'red' => ['label' => 'À corriger', 'icon' => 'heroicon-o-exclamation-triangle', 'box' => 'border-danger-300 bg-danger-50 dark:border-danger-500/40 dark:bg-danger-500/10', 'text' => 'text-danger-700 dark:text-danger-400'], default => ['label' => 'En attente de données', 'icon' => 'heroicon-o-clock', 'box' => 'border-gray-300 bg-gray-50 dark:border-white/10 dark:bg-white/5', 'text' => 'text-gray-600 dark:text-gray-300'], }; $tier = $growth['tier']; $next = $growth['next']; @endphp
Statut de croissance
{{ $theme['label'] }}
Palier actuel
{{ $tier['name'] }} {{ $tier['index'] + 1 }}/{{ count(\App\Services\Growth\GrowthSettings::get()['tiers']) }} · DAU moyen {{ number_format($growth['average_dau'], 1, ',', ' ') }}
@if ($next)
{{ $growth['progress'] }} % vers « {{ $next['name'] }} » ({{ number_format($next['min_dau'], 0, ',', ' ') }} DAU)
@else
Dernier palier atteint
@endif
    @foreach ($growth['criteria'] as $criterion)
  • @if ($criterion['ok'] === true) @elseif ($criterion['ok'] === false) @else @endif
    {{ $criterion['label'] }} {{ $criterion['value'] }} (objectif {{ $criterion['target'] }})
    {{ $criterion['detail'] }}
  • @endforeach