Kategorien
@can('manage', \App\Models\DocumentCategory::class)
@else
@endcan
{{-- Alle --}}
Alle
{{ $allCount }}
{{-- Dynamische Kategorien --}}
@foreach ($categories as $c)
@php
$active = (int) $categoryId === (int) $c->id;
$count = (int) ($categoryCounts[$c->id] ?? 0);
@endphp
{{ $c->name }}
{{ $count }}
@endforeach
Hinweis
Dokumente sind pro RTW abgelegt und über Kategorien schnell auffindbar.