[], 'series' => []]; $valueChart = is_array($summary['valueChart'] ?? null) ? $summary['valueChart'] : ['labels' => [], 'series' => []]; $chartPayload = [ 'count' => $countChart, 'value' => $valueChart, ]; $chartJson = json_encode( $chartPayload, JSON_UNESCAPED_UNICODE | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT ); if (!is_string($chartJson)) { $chartJson = '{}'; } $displayMonth = static function (string $month): string { $date = DateTimeImmutable::createFromFormat('Y-m-d', $month . '-01'); if (!$date instanceof DateTimeImmutable) { return $month; } return $date->format('m-Y'); }; ?>

 

$row): ?>

$row): ?>