htmlspecialchars($s, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
$result = $data['result'];
$packTitle = $data['pack_title'] ?? 'Contrôle technique du process';
$date = $data['date'] ?? date('Y-m-d');
$bookingUrl = (string) ($data['booking_url'] ?? '');
$score = (int) ($result['score_total'] ?? 0);
$level = (string) ($result['level'] ?? '');
$levelLabel = (string) ($result['level_label'] ?? '');
$confidenceLabel = (string) ($result['confidence']['label'] ?? '');
$pillars = (array) ($result['pillars'] ?? []);
$risks = (array) ($result['risks_top3'] ?? []);
$wins = (array) ($result['quick_wins_top5'] ?? []);
$cost = $result['cost_hidden'] ?? null;
?>
= $esc("Contrôle technique du process : " . $packTitle) ?>
Réalisé le : = $esc($date) ?> · Confiance du diagnostic : = $esc($confidenceLabel) ?>
Score global
= $esc((string)$score) ?>/100
= $esc($level . " — " . $levelLabel) ?>
0 ? (int) round(($pScore / $pMax) * 100) : 0;
?>
= $esc((string) ($p['label'] ?? $p['id'] ?? '')) ?>
= $esc((string)$pScore) ?>/= $esc((string)$pMax) ?>
Top 3 risques probables
-
= $esc((string) ($r['title'] ?? '')) ?>
= $esc((string) ($r['what_happens'] ?? '')) ?>
Actions prioritaires (30 jours)
-
= $esc((string) ($w['title'] ?? '')) ?>
= $esc((string) ($w['effect'] ?? '')) ?>
Coût caché estimé
Estimation indicative, à valider par mesure réelle.
Temps perdu estimé : = $esc((string) ($cost['hours_per_month'] ?? '')) ?> h/mois
Estimation : = $esc((string) ($cost['eur_per_month'] ?? '')) ?> €/mois
Hypothèses : volume = $esc((string) ($cost['volume_per_month'] ?? '')) ?>/mois, coût horaire = $esc((string) ($cost['assumptions']['hourly_cost'] ?? '')) ?>€.
Non calculé (volume/cout horaire non renseignés).
Découvrir les opportunités suite à mon audit
Entretien de 30 min offert avec un consultant — prioriser vos opportunités et définir votre plan d'action.
Réserver : = $esc($bookingUrl) ?>