@php $notes = $this->notes(); @endphp

Toutes les notes que tu as créées — privées ou publiques, rattachées ou non.

Nouvelle note
@php $selectedProjectFilter = $filterProjectId ? $this->availableProjects()->firstWhere('id', $filterProjectId) : null; @endphp
Projet :
Tous @foreach ($this->availableProjects() as $project) {{ $project->code }} — {{ $project->name }} @endforeach
@php $selectedTagFilter = $filterTag ? $this->availableTags()->firstWhere('name', $filterTag) : null; @endphp
Tag :
Tous @foreach ($this->availableTags() as $tag) #{{ $tag }} @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 ($notes as $note) @endforeach
@else @foreach ($notes as $note)
@if ($note->is_public) Publique @else Privée @endif {{ $note->title }} {{ $note->wasEdited() ? 'Modifiée' : 'Créée' }} {{ $note->updated_at->diffForHumans() }}
@forelse ($note->attachmentCodes() as $code) {{ $code }} @empty Non rattachée @endforelse @foreach ($note->tags as $tag) #{{ $tag->name }} @endforeach
@endforeach
@endif @if ($notes->isEmpty())
Aucune note pour l'instant.
@endif