@php // Client-side arama için her notun aranabilir metnini oluştur $searchHaystack = fn($note) => trim( ($note->title ?? '') . ' ' . strip_tags($note->content ?? '') . ' ' . $note->companies->pluck('name')->implode(' ') . ' ' . $note->labels->pluck('name')->implode(' '), ); $pinnedNotes = $this->filteredNotes->where('is_pinned', true); $otherNotes = $this->filteredNotes->where('is_pinned', false); @endphp
@livewire('note-modal', ['panel' => 'primary'], key('note-modal-primary')) @livewire('note-modal', ['panel' => 'secondary'], key('note-modal-secondary'))
{{-- TOAST NOTIFICATIONS --}}
@if (session()->has('success'))

{{ session('success') }}

@endif @if (session()->has('info'))

{{ session('info') }}

@endif @if (session()->has('error'))

{{ session('error') }}

@endif

Not alın. Düzenleyin. Paylaşın.

{{-- ARAMA --}}
search Arama
Ctrl+K
{{-- ETİKET LİSTESİ --}} @if ($this->searchLabels->count() > 0)
@foreach ($this->searchLabels as $label) @endforeach
@endif
{{-- SABİTLENEN NOTLAR --}} @if ($pinnedNotes->count() > 0)
push_pin Sabitlenen Notlar
@foreach ($pinnedNotes as $note)
{{ $note->title }}
@if ($note->is_pinned) push_pin @endif
@foreach (explode("\n", e(strip_tags($note->content))) as $line)
{{ $line }} @if (trim($line) !== '') content_copy @endif
@endforeach
@foreach ($note->companies as $company) store {{ $company->name }} @endforeach @foreach ($note->labels as $label) label {{ $label->name }} @endforeach
@endforeach
@endif {{-- DİĞER NOTLAR --}} @if ($otherNotes->count() > 0)
note_stack Diğer Notlar
@foreach ($otherNotes as $note)
{{ $note->title }}
@if ($note->is_pinned) push_pin @endif
@foreach (explode("\n", e(strip_tags($note->content))) as $line)
{{ $line }} @if (trim($line) !== '') content_copy @endif
@endforeach
@foreach ($note->companies as $company) store {{ $company->name }} @endforeach @foreach ($note->labels as $label) label {{ $label->name }} @endforeach
@endforeach
@endif