This commit is contained in:
salam committed 2026-07-28 12:10:11 +02:00
1 parent d5645ae493
commit 16b0e310fe
2 files changed
+10 -6

No files matched your search

@@ -9,7 +9,7 @@ class Nutzwertberechnung
{ {
public static $projekte_id = 0; public static $projekte_id = 0;
public static function load($projekte_id) public static function load(int $projekte_id)
{ {
self::$projekte_id = $projekte_id; self::$projekte_id = $projekte_id;
@@ -18,6 +18,9 @@ class Nutzwertberechnung
$html = ''; $html = '';
foreach ($objekte as $topnr => $methoden) { foreach ($objekte as $topnr => $methoden) {
// if ($topnr == 'W03')
// dd($methoden);
if (PdfGenerator::$projekt->pdf_nutzwerte_tabellen_umbruch) { if (PdfGenerator::$projekt->pdf_nutzwerte_tabellen_umbruch) {
$html .= '<table autosize="1">'; $html .= '<table autosize="1">';
} else { } else {
@@ -40,6 +43,8 @@ class Nutzwertberechnung
*/ */
if (isset($methoden[1])) { if (isset($methoden[1])) {
$flaeche = 0; $flaeche = 0;
$faktor = 0;
foreach ($methoden[1] as $komponente) { foreach ($methoden[1] as $komponente) {
$html .= '<tr>'; $html .= '<tr>';
// $html .= Html::td($komponente['top_nummer'], 'bl bg-user-set'); // $html .= Html::td($komponente['top_nummer'], 'bl bg-user-set');
@@ -53,9 +58,10 @@ class Nutzwertberechnung
$flaeche += $komponente['flaeche']; $flaeche += $komponente['flaeche'];
$html .= '</tr>'; $html .= '</tr>';
$topnr = ''; $topnr = '';
}
$faktor = (100 + $komponente['objekt_nutzwert']) / 100; $faktor = (100 + $komponente['objekt_nutzwert']) / 100;
}
$html .= '<tr>'; $html .= '<tr>';
$html .= Html::td('', 'bl bg-user-set'); $html .= Html::td('', 'bl bg-user-set');
+2 -4
View File
@@ -27,10 +27,8 @@
<!-- Theme Toggle --> <!-- Theme Toggle -->
<div class="pl-4"> <div class="pl-4">
<x-filament::icon-button icon="heroicon-m-sun" color="gray" class="hidden dark:block" <x-filament::icon-button icon="phosphor-sun" color="gray" x-on:click=toggle_theme(); />
x-on:click=toggle_theme(); /> </div>
<x-filament::icon-button icon="heroicon-o-moon" color="gray" class="block dark:hidden"
x-on:click=toggle_theme(); />
</div> </div>
</dev> </dev>
<!-- Mobile Menu Button --> <!-- Mobile Menu Button -->