{{-- Left: Back button --}} {{-- Center: Title --}}

{{ $documentCategory->name }}

{{-- Right: Action buttons --}}
{{-- Modifier button --}} {{-- Supprimer button --}} Supprimer cette catégorie ? La catégorie {{ $documentCategory->name }} sera déplacée dans la corbeille. Vous pourrez la restaurer ultérieurement si nécessaire.
@csrf @method('DELETE')
{{-- BODY --}}
{{-- Section Catégorie --}}

Catégorie

Nom

{{ $documentCategory->name }}

Espace par défaut

@if($documentCategory->space === 'public') 🌐 Public @elseif($documentCategory->space === 'user') 👥 Adhérents @else 🔒 Bureau @endif

Catégorie parente @if($documentCategory->parent) {{ $documentCategory->parent->name }} @else

Aucune

@endif
Sous-catégories @if($documentCategory->children()->count() > 0)

{{ $documentCategory->children()->count() }}

@else

Aucune

@endif
Nombre de documents

{{ $documentCategory->documents()->count() }}

Créée le

{{ $documentCategory->created_at->format('d/m/Y à H:i') }}

Modifiée le

{{ $documentCategory->updated_at->format('d/m/Y à H:i') }}

{{-- Section Sous-catégories --}} @if($documentCategory->children()->count() > 0)

Sous-catégories

@foreach($documentCategory->children as $child)
{{ $child->name }} {{ $child->documents()->count() }} document(s)
@endforeach
@endif {{-- Section Documents --}} @if($documentCategory->documents()->count() > 0)

Documents

@foreach($documentCategory->documents as $document)
{{ $document->title }} {{ number_format($document->size / 1024, 0) }} Ko
@endforeach
@endif