This commit is contained in:
frederikpyt
2020-08-19 14:59:20 +02:00
15 changed files with 31 additions and 17 deletions
@@ -28,7 +28,7 @@
}
</style>
<main style="justify-content: unset;">
@foreach(\App\News::query()->orderBy("created_at", "desc")->get() as $new)
@foreach($news as $new)
<div class="card">
@if($new->resource_id !== null)
<div class="header" style="background-size: cover; background-image: url('{{ asset(\App\Resource::query()->where("id", "=", $new->resource_id)->first()->filename) }}');">