added lists

master
Benjamin Völkl 2021-02-09 11:52:04 -03:00
parent 0f099028e9
commit 4f39f0f644
1 changed files with 7 additions and 7 deletions

View File

@ -15,8 +15,8 @@
<h1>Aktuelles</h1>

<p class="intro">
@if (isset($categoryModel))
{{ $categoryModel->description }}
@if (isset($listModel))
{{ $listModel->description }}
@else
{{ \Setting::get('description')}}
@endif
@ -164,7 +164,7 @@
<div class="article-feed">
@foreach($nachrichten as $nach)

<article class="newsentry" style="width: 100%;" data-slug="{{ $nach->category->slug }}/{{ $nach->slug }}">
<article class="newsentry" style="width: 100%;" data-slug="{{ $nach->list->slug }}/{{ $nach->slug }}">



@ -185,7 +185,7 @@
<br>
@endif

<a href="{{ route('nachrichten.get', [$nach->category->slug, $nach->slug]) }}">
<a href="{{ route('nachrichten.get', [$nach->list->slug, $nach->slug]) }}">
<h2 class="card-title">{{$nach->title}}</h2>
</a>

@ -199,10 +199,10 @@
@endif
</h6>

@if ($nach->category)
<a href="{{ route('category.get', [$nach->category->slug]) }}">
@if ($nach->list)
<a href="{{ route('list.get', [$nach->list->slug]) }}">
<div class="badge badge-warning">
<p style="margin:3px;font-size:15px;">{{ $nach->category->name}}</p>
<p style="margin:3px;font-size:15px;">{{ $nach->list->name}}</p>
</div>
</a>
@endif