wip
This commit is contained in:
1 parent
d5645ae493
commit
16b0e310fe
2 files changed
+17
-13
No files matched your search
@@ -9,7 +9,7 @@ class Nutzwertberechnung
|
||||
{
|
||||
public static $projekte_id = 0;
|
||||
|
||||
public static function load($projekte_id)
|
||||
public static function load(int $projekte_id)
|
||||
{
|
||||
self::$projekte_id = $projekte_id;
|
||||
|
||||
@@ -18,6 +18,9 @@ class Nutzwertberechnung
|
||||
$html = '';
|
||||
foreach ($objekte as $topnr => $methoden) {
|
||||
|
||||
// if ($topnr == 'W03')
|
||||
// dd($methoden);
|
||||
|
||||
if (PdfGenerator::$projekt->pdf_nutzwerte_tabellen_umbruch) {
|
||||
$html .= '<table autosize="1">';
|
||||
} else {
|
||||
@@ -40,6 +43,8 @@ class Nutzwertberechnung
|
||||
*/
|
||||
if (isset($methoden[1])) {
|
||||
$flaeche = 0;
|
||||
$faktor = 0;
|
||||
|
||||
foreach ($methoden[1] as $komponente) {
|
||||
$html .= '<tr>';
|
||||
// $html .= Html::td($komponente['top_nummer'], 'bl bg-user-set');
|
||||
@@ -48,14 +53,15 @@ class Nutzwertberechnung
|
||||
$html .= Html::td($komponente['orientierung'], 'bl');
|
||||
$html .= Html::td($komponente['type'], 'bl');
|
||||
$html .= Html::td($komponente['raumart'], 'bl');
|
||||
$html .= Html::td(number_format($komponente['flaeche'], 2, ',', '.').' m²', 'right bl nowrap');
|
||||
$html .= Html::td(number_format($komponente['flaeche'], 2, ',', '.') . ' m²', 'right bl nowrap');
|
||||
$html .= Html::td('', 'bl br', 7);
|
||||
$flaeche += $komponente['flaeche'];
|
||||
$html .= '</tr>';
|
||||
$topnr = '';
|
||||
|
||||
$faktor = (100 + $komponente['objekt_nutzwert']) / 100;
|
||||
}
|
||||
|
||||
$faktor = (100 + $komponente['objekt_nutzwert']) / 100;
|
||||
|
||||
$html .= '<tr>';
|
||||
$html .= Html::td('', 'bl bg-user-set');
|
||||
@@ -63,7 +69,7 @@ class Nutzwertberechnung
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td(number_format($flaeche, 2, ',', '.').' m²', 'right bl nowrap');
|
||||
$html .= Html::td(number_format($flaeche, 2, ',', '.') . ' m²', 'right bl nowrap');
|
||||
$html .= Html::td('x', 'center bl');
|
||||
$html .= Html::td(number_format($faktor, 3, ',', '.'), 'center bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
@@ -86,7 +92,7 @@ class Nutzwertberechnung
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td($komponente['raumart'], 'bl');
|
||||
$html .= Html::td(number_format($komponente['flaeche'], 2, ',', '.').' m²', 'right bl');
|
||||
$html .= Html::td(number_format($komponente['flaeche'], 2, ',', '.') . ' m²', 'right bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('x', 'center bl');
|
||||
@@ -128,7 +134,7 @@ class Nutzwertberechnung
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td($komponente['raumart'], 'bl');
|
||||
$html .= Html::td(number_format($komponente['flaeche'], 2, ',', '.').' m²', 'right bl');
|
||||
$html .= Html::td(number_format($komponente['flaeche'], 2, ',', '.') . ' m²', 'right bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('x', 'center bl');
|
||||
@@ -155,7 +161,7 @@ class Nutzwertberechnung
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('Zubehör', 'bl');
|
||||
$html .= Html::td($komponente['raumart'], 'bl');
|
||||
$html .= Html::td(number_format($komponente['flaeche'], 2, ',', '.').' m²', 'right bl');
|
||||
$html .= Html::td(number_format($komponente['flaeche'], 2, ',', '.') . ' m²', 'right bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('', 'bl');
|
||||
$html .= Html::td('x', 'center bl');
|
||||
@@ -201,7 +207,7 @@ class Nutzwertberechnung
|
||||
$html .= Html::td($komponente['top_nummer'], 'bl bg-user-set');
|
||||
$html .= Html::td($komponente['geschoss'], 'bl');
|
||||
$html .= Html::td($komponente['raumart'], 'bl');
|
||||
$html .= Html::td(number_format($komponente['flaeche'], 2, ',', '.').' m²', 'right bl');
|
||||
$html .= Html::td(number_format($komponente['flaeche'], 2, ',', '.') . ' m²', 'right bl');
|
||||
$html .= Html::td('x', 'center bl');
|
||||
$html .= Html::td(number_format($komponente['faktor'], 3), 'center bl');
|
||||
$html .= Html::td('=', 'center bl');
|
||||
|
||||
@@ -27,10 +27,8 @@
|
||||
|
||||
<!-- Theme Toggle -->
|
||||
<div class="pl-4">
|
||||
<x-filament::icon-button icon="heroicon-m-sun" color="gray" class="hidden dark:block"
|
||||
x-on:click=toggle_theme(); />
|
||||
<x-filament::icon-button icon="heroicon-o-moon" color="gray" class="block dark:hidden"
|
||||
x-on:click=toggle_theme(); />
|
||||
<x-filament::icon-button icon="phosphor-sun" color="gray" x-on:click=toggle_theme(); />
|
||||
</div>
|
||||
</div>
|
||||
</dev>
|
||||
<!-- Mobile Menu Button -->
|
||||
@@ -71,4 +69,4 @@
|
||||
class="w-full text-lg font-medium text-on-surface focus:underline dark:text-on-surface-dark">Login</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</nav>
|
||||
Reference in new issue
Block a user