Files
newznab-tmux/resources/views/forum/category/index.blade.php
T
2024-04-08 20:38:46 +02:00

21 lines
739 B
PHP

{{-- $category is passed as NULL to the master layout view to prevent it from showing in the breadcrumbs --}}
@extends ('forum.master', ['category' => null])
@section ('content')
<div class="flex flex-row justify-between my-3">
<h2 class="grow text-3xl font-medium">{{ trans('forum::general.index') }}</h2>
@can ('createCategories')
<x-forum.button type="button" data-open-modal="create-category">
{{ trans('forum::categories.create') }}
</x-forum.button>
@include ('forum.category.modals.create')
@endcan
</div>
@foreach ($categories as $category)
@include ('forum.category.partials.list', ['titleClass' => 'lead'])
@endforeach
@stop