@php $documents = $this->visibleDocuments(); @endphp

Documents rattachés, et documents publics des autres membres.

Nouveau document
@php $selectedCategoryFilter = $filterCategoryId ? $this->categories()->firstWhere('id', $filterCategoryId) : null; @endphp
Catégorie :
Toutes @foreach ($this->categories() as $category) {{ $category->label }} @endforeach
@php $sort_class = ['recent' => 'Plus récentes', 'oldest' => 'Plus ancienne', 'alphabetical' => 'Ordre alphabétique', 'reverse-alphabetical' => 'Ordre alphabétique inversé']; @endphp
Tri :
@foreach ($sort_class as $key => $label) {{ $label }} @endforeach
@foreach (['card' => 'heroicon-o-window', 'line' => 'heroicon-o-bars-3'] as $key => $icon) @endforeach
@if($view_style === 'card')
@foreach ($documents as $document) @php $visibleAuthors = $document->authors->take(3); $extraAuthorsCount = $document->authors->count() - $visibleAuthors->count(); @endphp
@if ($document->type !== 'markdown') {{ $document->title }} @else @endif @if ($document->is_public) Public @else Privé @endif
@if ($document->description)

{{ $document->description }}

@endif
@if ($document->category) {{ $document->category->label }} @endif @forelse ($document->attachmentCodes() as $code) {{ $code }} @empty Non rattaché @endforelse
@foreach ($visibleAuthors as $author) {{ $author->initials }} @endforeach @if ($extraAuthorsCount > 0) +{{ $extraAuthorsCount }} @endif {{ $document->wasEdited() ? 'Modifié' : 'Créé' }} {{ $document->updated_at->diffForHumans() }}
@endforeach
@else @foreach ($documents as $document) @php $visibleAuthors = $document->authors->take(3); $extraAuthorsCount = $document->authors->count() - $visibleAuthors->count(); @endphp
@if ($document->is_public) Publique @else Privée @endif @if ($document->type !== 'markdown') {{ $document->title }} @else @endif
@foreach ($visibleAuthors as $author) {{ $author->initials }} @endforeach @if ($extraAuthorsCount > 0) +{{ $extraAuthorsCount }} @endif {{ $document->wasEdited() ? 'Modifié' : 'Créé' }} {{ $document->updated_at->diffForHumans() }}
@if ($document->category) {{ $document->category->label }} @endif @forelse ($document->attachmentCodes() as $code) {{ $code }} @empty Non rattaché @endforelse
@endforeach
@endif @if ($documents->isEmpty())
Aucun document pour l'instant.
@endif