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




        <div class="row" style="padding-top: 60px;">
            <div class="col-xs-12">
                <h1 class="mt-2">{{ $listModel->name }}</h1>
                <br>
                @if (isset($listModel))
                    {{ $listModel->description }}
                @endif


            </div>
        </div>











        <section>
            <div class="row">

                <div class="col-12">


                    <div class="accordion" id="accordionExample">
                        @foreach($nachrichten as $nach)

                            <div class="accordion-item">
                                <h2 class="accordion-header" id="heading{{$nach->id}}">
                                    <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapse{{$nach->id}}" aria-expanded="true" aria-controls="collapse{{$nach->id}}">
                                        {{$nach->title}}
                                    </button>
                                </h2>
                                <div id="collapse{{$nach->id}}" class="accordion-collapse collapse" aria-labelledby="heading{{$nach->id}}" data-bs-parent="#accordionExample">
                                    <div class="accordion-body">
                                        {!! isset($nach->additional_fields['2']) ? $nach->additional_fields['2']  : 'keine Angaben' !!}
                                    </div>
                                </div>
                            </div>
                        @endforeach



                    </div>


                    <br>
                    <br>
                    <br>
                    <br>
                    <br>


                </div>







                    {!! $nachrichten->render() !!}

                    <br>
                    <br>
                    <br>
                    <br>
            </div>
        </section>




@stop


@section('scripts')

@stop