@php
    use LaraBB\Category\Models\Category;
    use LaraBB\Forum\Models\Forum;

    /** @var Category $category */
    /** @var Forum $forum */
@endphp
@extends('layouts.master')
@section('content')
<x-atomic.card>
    <x-molecule.breadcrumb :items="[
        ['href' => 'index', 'icon' => 'home', 'mobile' => true],
        ['label' => $category->title, 'mobile' => true]
    ]"/>
    <div class="card-body p-0">
    @forelse($category->forums as $forum)
    <x-molecule.thread-or-forum :forum="$forum" :loop="$loop"/>
    @empty
    <div class="row hover align-items-center">
        <div class="col text-center">
            @lang('There are no forums in this category.')
        </div>
    </div>
    @endforelse
    </div>
</x-atomic.card>
@stop
