alpakas-theme/content/lists/faq.blade.php

81 lines
2.0 KiB
PHP

@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">{{ $list->name }}</h1>
<br>
@if (isset($list))
{{ $list->description }}
@endif
</div>
</div>
<section>
<div class="row">
<div class="col-12">
<div class="accordion" id="accordionExample">
@foreach($contents as $content)
<div class="accordion-item">
<h2 class="accordion-header" id="heading{{$content->id}}">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapse{{$content->id}}" aria-expanded="true" aria-controls="collapse{{$content->id}}">
{{$content->title}}
</button>
</h2>
<div id="collapse{{$content->id}}" class="accordion-collapse collapse" aria-labelledby="heading{{$content->id}}" data-bs-parent="#accordionExample">
<div class="accordion-body">
{!! isset($content->data_fields['antwort'])?$content->data_fields['antwort']:'keine Angaben' !!}
</div>
</div>
</div>
@endforeach
</div>
<br>
<br>
<br>
<br>
<br>
</div>
{!! $contents->render() !!}
<br>
<br>
<br>
<br>
</div>
</section>
@stop
@section('scripts')
@stop