wip Nutzwerte pdf
This commit is contained in:
1 parent
4ad27d8c19
commit
2296b708eb
31 files changed
+528
-1656
No files matched your search
@@ -2,19 +2,24 @@
|
||||
|
||||
namespace App\Actions\Generate\Gutachten;
|
||||
|
||||
use App\Actions\Generate\Utilities\Html;
|
||||
use App\Models\Allgemeinflaechen;
|
||||
use App\Utilities\Html;
|
||||
|
||||
class AllgemeinTabelle
|
||||
{
|
||||
public static function load($projekts_id)
|
||||
public static function load($projekte_id)
|
||||
{
|
||||
$_allgemeine = Allgemeinflaechen::select('geschoss', 'raumart', 'qm')->where('projekts_id', $projekts_id)->get()->toArray();
|
||||
$_allgemeine = Allgemeinflaechen::select('geschoss', 'raumart', 'flaeche')
|
||||
->where('projekte_id', $projekte_id)
|
||||
->orderBy('raumart')
|
||||
->get()
|
||||
->toArray();
|
||||
|
||||
$_data = array_chunk($_allgemeine, 2);
|
||||
|
||||
$html = '<table class="table-striped m10">';
|
||||
$html = '<table class="table-striped">';
|
||||
$html .= '<tr>';
|
||||
$html .= '<thead>';
|
||||
$html .= Html::td('Geschoß', 'head bl bt wp10');
|
||||
$html .= Html::td('Typ', 'head bl bt wp25');
|
||||
$html .= Html::td('Fläche', 'head bl bt br wp10');
|
||||
@@ -22,6 +27,7 @@ class AllgemeinTabelle
|
||||
$html .= Html::td('Geschoß', 'head bl bt wp10');
|
||||
$html .= Html::td('Typ', 'head bl bt wp25');
|
||||
$html .= Html::td('Fläche', 'head bl bt br wp10');
|
||||
$html .= '</thead>';
|
||||
$html .= '</tr>';
|
||||
|
||||
foreach ($_data as $value) { //
|
||||
@@ -29,13 +35,13 @@ class AllgemeinTabelle
|
||||
if (isset($value[0])) {
|
||||
$html .= Html::td($value[0]['geschoss'], 'bl bb');
|
||||
$html .= Html::td($value[0]['raumart'], 'bl bb');
|
||||
$html .= Html::td($value[0]['qm'], 'bl bb br');
|
||||
$html .= Html::td($value[0]['flaeche'].' m²', 'bl bb br right');
|
||||
$html .= '<td style="background:white"></td>';
|
||||
}
|
||||
if (isset($value[1])) {
|
||||
$html .= Html::td($value[1]['geschoss'], 'bl bb');
|
||||
$html .= Html::td($value[1]['raumart'], 'bl bb');
|
||||
$html .= Html::td($value[1]['qm'], 'bl bb br');
|
||||
$html .= Html::td($value[1]['flaeche'].' m²', 'bl bb br right');
|
||||
}
|
||||
$html .= '</tr>';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user