@extends('template.'.config('settings.template').'.content.master')
@section('content')


            <x-img src="{{ $list->image }}" class="img-fluid" alt=""/>



    <div class="container">
        <div class="row">
            <div class="col-12">
                <h1 class="mb-5 mt-5">{{ $list->name }}</h1>

                <p class="fs-5 mb-5">
                    {{ $list->description }}
                </p>
            </div>

            @foreach($contents as $content)
                <div class="col-12 col-xs-4 col-md-4 col-lg-3 mb-4">

                    <a href="{{ $content->path }}" class="text-decoration-none">
                        <div class="card h-100 shadow-lg mb-4" id="news-{{$content->id}}">

                            <x-img src="{{ $content->image() }}" sizes="(max-width: 330px) 330px, 540px" class="img-fluid card-img-top"/>

                            <div class="card-body">
                                <h2 class="h5 card-title">{{$content->title}}</h2>

                                {!! Str::limit($content->kurzbeschreibung, 180) !!}



                            </div>

                        </div>
                    </a>

                </div>

            @endforeach

        </div>



    </div>








@stop
