This commit is contained in:
salam committed 2025-10-31 15:25:16 +01:00
1 parent c64634b3a1
commit 523e395064
36 files changed
+431 -635

No files matched your search

@@ -2,11 +2,11 @@
namespace App\Actions\Generate\Nutzwerte;
use App\Actions\Generate\Utilities\Format;
use App\Actions\Generate\Utilities\Html;
use App\Models\Merkmale;
use App\Models\ProjektMethode;
use App\Models\ProjektObjekte;
use App\Actions\Generate\Utilities\Html;
use App\Actions\Generate\Utilities\Format;
class ZuUndAbschlaege
{
@@ -21,16 +21,13 @@ class ZuUndAbschlaege
->get()
->toArray();
$has_loggien = ProjektMethode::where('projekte_id', $projekte_id)->where('methode_id', 2)->count();
if($has_loggien){
if ($has_loggien) {
$header_row = ['Top Nummer', 'Geschoß', 'Typ', 'Nutzfläche', 'Loggia / Zusatzflächen', 'Gesamtnutzfläche'];
}
else{
} else {
$header_row = ['Top Nummer', 'Geschoß', 'Typ', 'Nutzfläche'];
}
$merkmale = Merkmale::where('projekte_id', $projekte_id)->pluck('name', 'code');
@@ -74,7 +71,7 @@ class ZuUndAbschlaege
foreach ($markmale_codes as $code) {
$html .= Html::td($objekt[$code], 'center br bb');
}
$html .= Html::td(Format::dezimal($objekt['nutzwert'],2), 'center br bb');
$html .= Html::td(Format::dezimal($objekt['nutzwert'], 2), 'center br bb');
$html .= Html::td(Format::dezimal(100 + $objekt['nutzwert'], 2), 'right br bb');
$html .= '</tr>';
}