laeufermeeting-theme/content/lists/neuigkeiten.blade.php

35 lines
1.5 KiB
PHP
Raw Permalink Normal View History

2023-05-23 00:10:00 +00:00
@extends('template.'.config('settings.template').'.content.master')
2023-03-20 10:40:26 +00:00
@section('head')
<title>{{$list->name}}</title>
@stop
@section('content')
<div class="section">
<div class="container">
<div class="row">
<div class="col-12">
<br>
<h1 class="mt-5">Neuigkeiten</h1>
2023-07-06 18:10:29 +00:00
<p class="fs-5 mb-5">{{ $list->description }}</p>
2023-03-20 10:40:26 +00:00
</div>
</div>
<div class="row mb-5">
@foreach($contents as $content)
<div class="col-12 col-md-4">
<div class="card shadow-md mb-4 rounded-top" >
2023-07-27 16:11:32 +00:00
<x-img src="{{$content->image()}}" class="card-img-top" style="aspect-ratio: 1/1; object-fit:contain; object-position:center;"/>
2023-03-20 10:40:26 +00:00
<div class="card-body">
2023-07-07 08:02:15 +00:00
<h2 class="h5">{{$content->title}}</h2>
<span class="text-muted mb-3">{{date("d.m.Y", strtotime($content->created_at))}}</span>
<p class="card-text">{!! Str::limit($content->nachricht, 140)!!}</p>
2023-03-20 10:40:26 +00:00
<div class="text-end">
<a href="{{$content->path}}" class="btn btn-primary">Mehr lesen</a>
</div>
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>
@stop