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();
$html = '
';
$html .= '';
$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 .= '
';
foreach ($data as $value) {
$html .= '';
$html .= Html::td($value->top_nr, 'center br bb');
$html .= Html::td($value->geschoss, 'center br bb');
$html .= Html::td(($value->name == 'Ohne Zuordnung') ? '' : $value->name, 'center br bb');
$html .= Html::td($value->type, 'center br bb');
$html .= '
';
}
$html .= '
';
return $html;
}
}