92 lines
3.6 KiB
PHP
92 lines
3.6 KiB
PHP
@extends('template.'.config('settings.template').'.content.master')
|
|
@section('content')
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
<div class="row mb-5">
|
|
<div class="col-12">
|
|
<h1 class="mb-5 mt-5">{{ $list->name }}</h1>
|
|
|
|
<p class="fs-5 mb-5">
|
|
{{ $list->description }}
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@if(count($contents) > 0)
|
|
|
|
@foreach($contents as $index => $content)
|
|
|
|
<div class="col-12 col-md-6 col-lg-4 mb-4" data-aos="fade-up" data-aos-delay="{{$index * 250}}">
|
|
<div class="card shadow-sm h-100">
|
|
<a href="{{ $content->path }}" class="text-decoration-none">
|
|
<x-img src="{{ $content->image() }}" sizes="(max-width: 330px) 330px, 540px" class="img-fluid card-img-top"/>
|
|
</a>
|
|
|
|
<div class="card-body">
|
|
<h3 class="h5 mb-2">
|
|
<a href="{{ $content->path }}" class="text-decoration-none">
|
|
{{$content->title}}
|
|
|
|
</a>
|
|
</h3>
|
|
|
|
<div class="text-muted small my-3">
|
|
<span title="{{$content->created_at}}">
|
|
<svg style="fill: currentColor;width:15px;margin-bottom: 5px;margin-right: 3px;}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M112 0c8.8 0 16 7.2 16 16V64H320V16c0-8.8 7.2-16 16-16s16 7.2 16 16V64h32c35.3 0 64 28.7 64 64v32 32V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192 160 128C0 92.7 28.7 64 64 64H96V16c0-8.8 7.2-16 16-16zM416 192H32V448c0 17.7 14.3 32 32 32H384c17.7 0 32-14.3 32-32V192zM384 96H64c-17.7 0-32 14.3-32 32v32H416V128c0-17.7-14.3-32-32-32z"/></svg>
|
|
{{ $content->updated_at->diffForHumans() }}
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{!! Str::limit($content->vorschau, 280) !!}
|
|
|
|
</div>
|
|
|
|
<div class="card-footer text-end">
|
|
<a class="btn btn-sm btn-ci" href="{{ $content->path }}" onclick="gtag('event', 'See Job', {'event_category' : 'Home', 'event_label' : '{{$content->title}}'});">
|
|
Mehr lesen
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
|
|
<path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" />
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@endforeach
|
|
@else
|
|
|
|
<div class="col-12 text-center" style="margin-bottom: 30vh; margin-top: 5vh;">
|
|
<script src="{{storage('assets/libs/lottie-player-0.4.0.js')}}"></script>
|
|
<lottie-player src="{{storage('assets/animations/no-results.json')}}" background="transparent" speed="1" style="width: 200px; height: 200px; margin: 0 auto;" loop="" autoplay=""></lottie-player>
|
|
|
|
<i>
|
|
Derzeit keine Inhalte in {{ $list->name }} veröffentlicht.
|
|
</i>
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@stop
|