wip Nutzwerte pdf
This commit is contained in:
1 parent
4ad27d8c19
commit
2296b708eb
31 files changed
+528
-1656
No files matched your search
@@ -9,37 +9,30 @@ class Paragraph6Tabelle
|
||||
{
|
||||
public static function load($projekte_id)
|
||||
{
|
||||
// $data = DB::table('raumorientierung')
|
||||
// ->join('raumalles', 'raumorientierung.id', '=', 'raumalles.raumorientierung_id')
|
||||
// ->join('orientierungs', 'raumorientierung.orientierungs_id', '=', 'orientierungs.id')
|
||||
// ->select('raumorientierung.top_nr', 'raumorientierung.type', 'raumalles.geschoss', 'orientierungs.name')
|
||||
// ->where('raumorientierung.projekts_id', $projekts_id)
|
||||
// ->whereIn('raumalles.methodes_id', [1, 5, 6, 9])
|
||||
// ->groupBy('raumorientierung.id')
|
||||
// ->orderBy('raumalles.methodes_id', 'ASC')
|
||||
// ->orderBy('raumorientierung.top_nr', 'ASC')
|
||||
// ->get();
|
||||
|
||||
$data = OrientierungZuAbschlaege::with('orientierung')->where('projekte_id', $projekte_id)->get();
|
||||
$data = OrientierungZuAbschlaege::with('orientierung')
|
||||
->where('projekte_id', $projekte_id)
|
||||
->orderBy('nicht_in_orientierung')
|
||||
->orderBy('top_nummer')
|
||||
->get();
|
||||
|
||||
$html = '<table class="table-striped bl bt m20">';
|
||||
$html = '<table class="table-striped bl bt">';
|
||||
|
||||
$html .= '<tr>';
|
||||
$html .= '<thead>';
|
||||
$html .= Html::td('Top', 'head center br bb');
|
||||
$html .= Html::td('Geschoß', 'head center br bb');
|
||||
$html .= Html::td('Orientierung', 'head center br bb');
|
||||
$html .= Html::td('Typ', 'head center br bb');
|
||||
$html .= '</thead>';
|
||||
$html .= '</tr>';
|
||||
foreach ($data as $value) {
|
||||
// dd($value);
|
||||
|
||||
$objekt = Raeumealle::where('projekte_id', $projekte_id)->where('top_nummer', $value->top_nummer)->pluck('geschoss', 'type');
|
||||
|
||||
$html .= '<tr>';
|
||||
$html .= Html::td($value->top_nummer, 'center br bb');
|
||||
$html .= Html::td($value->geschoss, 'center br bb');
|
||||
$html .= Html::td($value->orientierung->name, 'center br bb');
|
||||
// $html .= Html::td($value->type, 'center br bb');
|
||||
$html .= Html::td($value->orientierung->name ?? '', 'center br bb');
|
||||
$html .= Html::td($value->type, 'center br bb');
|
||||
$html .= '</tr>';
|
||||
}
|
||||
$html .= '</table>';
|
||||
|
||||
Reference in new issue
Block a user