<h1 class="page-title">{{ trans('app.object_questions') }}</h1>

<div class="questions clearfix">
@section('questions-index')
    <?php $category = null ?>
    @forelse ($questions as $question)
        @if ($question->questionCat != $category)
            <?php $category = $question->questionCat ?>
            <h2 class="category-title">{{ $category->title }}</h2>
        @endif
        <div id="question_{{ $question->id }}" class="question">
            <h3 class="title">{{ $question->title }}</h3>

            <div class="text">{!! $question->answer !!}</div>
        </div>
    @empty
        <p>{{ trans('app.nothing_here') }}</p>
    @endforelse
@show
</div>

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