I wrote an eloquent statement in my model that outputs a whole lot of data which is fully modelled for my output. It returns the right content when i dump it in the backend (if you look at the comment below).
But whe i try to get it formatted with blade for my table, it cuts a whole lot of data at the top. It starts somewhere at the mid of all.
I tried a lot of styling like put some standard css from bootstrap and nothing at all, becaus i thought that this is an display error but it seems not like that.
Its a simple route:
Route::get('/', function () {
$hs = App\Wl_steige::all()->first();
$hs = $hs->getByStation('ptMetro')->groupBy('BEZEICHNUNG');
//dump($hs = $hs->getByStation('ptMetro')->groupBy('BEZEICHNUNG'))
return view('welcome', ['stellen' => collect($hs)]);
});
Thats the View:
<div class="card">
<div class="card-body">
<table class="table table-dark">
<tbody>
@foreach($stellen AS $line => $stations)
<tr>
<th>Linie </th>
</tr>
@foreach($stations AS $station)
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
</div>
</div>
I expected that it would begin at the top and not somewhere in the middle
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire