added lists

master
Gustavo Luigi 2023-06-29 06:40:57 -03:00
parent e86f7f0ee5
commit 47c402b159
3 changed files with 56 additions and 25 deletions

View File

@ -45,25 +45,63 @@
<div class="col-lg-8 col-md-6 col-sm-12"> <div class="col-lg-8 col-md-6 col-sm-12">
<!-- Events Listing --> <!-- Events Listing -->
<!-- Latest News --> <!-- Latest News -->
<div class="listing post-listing"> @php($contents = filterByContentType("Aktuelles"))
<header class="listing-header"> @if($contents->isNotEmpty())
<h2 class="h3" style="color: #C71B1B">Neuigkeiten</h2> <div class="listing post-listing">
</header> <header class="listing-header">
<section class="listing-cont"> <h2 class="h3" style="color: #C71B1B">Neuigkeiten</h2>
<ul> </header>
</ul> <section class="listing-cont">
</section> <br>
</div> <div class="row mb-5">
@foreach($contents as $content)
<div class="col-12 col-md-6">
<div class="card shadow-md mb-4 rounded-top" >
<img src="https://picsum.photos/300/150" class="card-img-top">
<div class="card-body">
<h2 class="h3">{{$content->title}}</h2>
<span class="text-muted mb-3">{{$content->created_at}}</span>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus architecto autem beatae, delectus dignissimos dolore dolorum, eius explicabo illo illum ipsam laborum libero mollitia neque quis repellendus, suscipit veritatis voluptatem!</p>
<div class="text-end">
<a href="{{$content->path}}" class="btn btn-primary">Mehr lesen</a>
</div>
</div>
</div>
</div>
@endforeach
</div>
</section>
</div>
@endif


<div class="listing events-listing"> @php($contents = filterByContentType("Wettbewerb"))
<header class="listing-header"> @if($contents->isNotEmpty())
<h2 class="h3" style="color: #C71B1B">Wettbewerbe</h2> <div class="listing events-listing">
</header> <header class="listing-header">
<section class="listing-cont"> <h2 class="h3" style="color: #C71B1B">Wettbewerbe</h2>
<ul> </header>
</ul> <section class="listing-cont">
</section> <br>
</div> <div class="row mb-5">
@foreach($contents as $content)
<div class="col-12 col-md-6">
<div class="card shadow-md mb-4 rounded-top" >
<img src="https://picsum.photos/300/150" class="card-img-top">
<div class="card-body">
<h2 class="h3">{{$content->title}}</h2>
<span class="text-muted mb-3">{{$content->created_at}}</span>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus architecto autem beatae, delectus dignissimos dolore dolorum, eius explicabo illo illum ipsam laborum libero mollitia neque quis repellendus, suscipit veritatis voluptatem!</p>
<div class="text-end">
<a href="{{$content->path}}" class="btn btn-primary">Mehr lesen</a>
</div>
</div>
</div>
</div>
@endforeach
</div>
</section>
</div>
@endif
</div> </div>
<!-- Start Sidebar --> <!-- Start Sidebar -->
<div class="col-lg-4 col-md-6 col-sm-12"> <div class="col-lg-4 col-md-6 col-sm-12">

View File

@ -17,7 +17,6 @@
</div> </div>
<div class="row mb-5"> <div class="row mb-5">
@foreach($contents as $content) @foreach($contents as $content)

<div class="col-12 col-md-4"> <div class="col-12 col-md-4">
<div class="card shadow-md mb-4 rounded-top" > <div class="card shadow-md mb-4 rounded-top" >
<img src="https://picsum.photos/300/150" class="card-img-top"> <img src="https://picsum.photos/300/150" class="card-img-top">

View File

@ -4,11 +4,5 @@
"value": "", "value": "",
"type": "date", "type": "date",
"required": true "required": true
},

{
"name": "Filter Fields",
"type": "array",
"required": true
} }
] ]