+
+
+ null,
+ 'header' => 'Liste der Zustimmungserklärungen',
+ 'icon' => 'fas fa-file-signature',
+ 'text' => 'Objekttyp',
+ 'sub' => [
+ 'Straße/Grundstück ['.$stats['street'].']',
+ 'Gebäude ['.$stats['building'].']'
+ ],
+ 'color' => '#6c757d'
+ ],
+ [
+ 'key' => 'inspection_planner',
+ 'header' => 'Begehung Planer durchgeführt',
+ 'icon' => 'fas fa-clipboard-check',
+ 'denominator' => $stats['building'],
+ 'color' => '#28a745'
+ ],
+ [
+ 'key' => 'conduit_installed_building',
+ 'header' => 'Leerrohr im Gebäude',
+ 'icon' => 'fas fa-house-user',
+ 'denominator' => $stats['building'],
+ 'color' => '#17a2b8'
+ ],
+ [
+ 'key' => 'conduit_installed_ftu',
+ 'header' => 'Leerrohr bis HAK',
+ 'icon' => 'fas fa-road',
+ 'denominator' => $stats['street'],
+ 'color' => '#f5b902'
+ ],
+ [
+ 'key' => 'inhouse_cabling',
+ 'header' => 'Inhouse erledigt',
+ 'icon' => 'fas fa-plug',
+ 'denominator' => $stats['building'],
+ 'color' => '#007bff'
+ ]
+ ];
+
+ foreach ($cardConfig as $config) {
+ $height = 96 + 25 * (isset($config['sub']) ? count($config['sub']) : 0);
+ $text = $config['key'] ?
+ $stats[$config['key']].' / '.$config['denominator'].' ('.
+ round(($stats[$config['key']]/$config['denominator'])*100).'%)' :
+ $config['text'];
+ ?>
+
+
+
+
+
+
+
= $config['header'] ?>
+
= $text ?>
+
+
+
+
+
+
+
+
+