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

    /** @var Category $category */
    /** @var Forum $forum */
@endphp
@extends('layouts.master')
@section('content')
@include('partials.messages')
@foreach($categories as $category)
    <div class="card mb-5 shadow-sm">
        <x-molecule.breadcrumb :items="[
            ['href' => 'category', 'parameters' => [$category->slug], 'label' => $category->title, 'mobile' => true],
        ]" />
        <div class="card-body p-0">
            @foreach($category->forums as $forum)
            <x-molecule.thread-or-forum :forum="$forum" :loop="$loop" />
            @endforeach
        </div>
    </div>
@endforeach
@stop
