'bg-blue-lt', 'controle' => 'bg-green-lt', 'symptome' => 'bg-yellow-lt', 'diagnostic' => 'bg-purple-lt', 'acte' => 'bg-orange-lt', 'hosp' => 'bg-red-lt', default => 'bg-secondary-lt', }; } function badgeStatus(string $status): array { // [class, label] return match ($status) { 'refuge' => ['bg-blue-lt',t('status.refuge')], 'fa' => ['bg-cyan-lt',t('status.fa')], 'fa_permanente' => ['bg-indigo-lt',t('status.fa_permanente')], 'quarantaine' => ['bg-yellow-lt',t('status.quarantaine')], 'soin' => ['bg-red-lt',t('status.soin')], 'isolation' => ['bg-orange-lt',t('status.isolation')], 'hospitalise', 'hospitalisé' => ['bg-red-lt',t('status.hospitalise')], 'reserve', 'réservé' => ['bg-purple-lt',t('status.reserve')], 'adopte', 'adopté' => ['bg-green-lt',t('status.adopte')], 'decede', 'décédé' => ['bg-dark-lt',t('status.decede')], 'enfui' => ['bg-secondary-lt',t('status.enfui')], default => ['bg-secondary-lt', $status], }; } ?> $q['days_left'] !== null && (int)$q['days_left'] <= 0); $weightLosses = array_filter($weight_alerts ?? [], static fn (array $w): bool => (float)$w['pct'] < 0); $urgentCount = count($vaccines_overdue) + count($treatments_overdue) + count($expiredQuarantines) + count($weightLosses) + count($careAlertsToday) + count($agendaDue); $morning = $careToday['morning'] ?? ['expected' => 0,'checked' => 0,'alerts' => 0]; $evening = $careToday['evening'] ?? ['expected' => 0,'checked' => 0,'alerts' => 0]; ?>

$alert): ?> ()

0): ?>
0): ?>

0): ?>

0): ?>
📁
(int)($grantAlerts['overdue'] ?? 0),'deadlines' => (int)($grantAlerts['deadlines'] ?? 0),'incomplete' => (int)($grantAlerts['incomplete'] ?? 0),'documents' => (int)($grantAlerts['documents'] ?? 0)])) ?>

🚨

📅

🟨

abs($days)]); } elseif ($days === 0) { $timerClass = 'text-warning fw-bold'; $timerText = t('dashboard.exit_today'); } elseif ($days === 1) { $timerClass = 'text-warning fw-bold'; $timerText = t('dashboard.exit_tomorrow'); } elseif ($days <= 5) { $timerClass = 'text-warning fw-bold'; $timerText = t('dashboard.exit_days', ['days' => $days]); } else { $timerClass = 'text-success'; $timerText = t('dashboard.exit_days', ['days' => $days]); } } ?>

📉📈

J-30
kg () kg 0 ? '+' : '') . h($w['pct']) ?>%

⚠️