DeathController::causeLabel($key), array_keys(DeathController::CAUSES))); $deathPlaceLabels = array_combine(array_keys(DeathController::PLACES), array_map(static fn ($key) => DeathController::placeLabel($key), array_keys(DeathController::PLACES))); $deathDispositionLabels = array_combine(array_keys(DeathController::DISPOSITIONS), array_map(static fn ($key) => DeathController::dispositionLabel($key), array_keys(DeathController::DISPOSITIONS))); $deathDate = DateTimeImmutable::createFromFormat('Y-m-d', (string)$death['deceased_date']); $deathDateLabel = !empty($death['death_year']) ? t('animal.year', ['year' => (int)$death['death_year']]) : ($deathDate ? $deathDate->format('d/m/Y') : t('animal.date_unknown')); ?>

🌈

·
:
:
t('animal.age_days'),'week' => t('animal.age_weeks'),'month' => t('animal.age_months'),'year' => t('animal.age_years'),default => '' }) ?>

🔗

[t('common.yes'),'bg-green-lt text-green','✓'], 'no' => [t('common.no'),'bg-red-lt text-red','✕'], 'unknown' => [t('common.unknown'),'bg-secondary-lt text-secondary','—'], ]; ?>

·

['🐶',t('animals.dogs')], 'compatibility_cats' => ['🐱',t('animals.cats')], 'compatibility_children' => ['🧒',t('animals.children')], 'house_trained' => ['🧼',t('animals.cleanliness')], ] as $field => $profile): [$profileLabel,$profileClass,$profileSymbol] = $lifeProfileMeta[$animal[$field] ?? 'unknown'] ?? $lifeProfileMeta['unknown']; ?>

:
$animal['name'],'distance' => number_format($distanceKm, 2)])) ?>
..., 'stale'=>bool] comme ton endpoint */ $cache = $icad['cached'] ?? null; $data = $cache['data'] ?? null; $status = $cache['status'] ?? 'empty'; $fetched = $cache['fetched_at'] ?? ''; $icadUrl = $data['icad_url'] ?? null; $badge = match ($status) { 'ok' => 'bg-success-lt', 'error' => 'bg-danger-lt', default => 'bg-muted-lt', }; $label = match ($status) { 'ok' => 'i-CAD : OK', 'error' => 'i-CAD : Erreur', default => t('animal.icad_not_checked'), }; $err = (string)($cache['error'] ?? ''); ?>
$fetched])) ?>

Puce
$data['holder_name'] ?? '', 'phone' => $data['holder_phone'] ?? '', 'email' => $data['holder_email'] ?? '', 'type' => $data['holder_type'] ?? '', 'address' => $data['holder_address'] ?? '', ]; } ?> trim((string)$v) !== '')): ?>
Type
  • : :