@props(['type', 'record', 'notes']) @can('notes.create')
@csrf
@endcan @forelse ($notes as $note)
{{ $note->body }}
@if ($note->is_pinned)Pinned @endif {{ $note->author?->name ?? 'System' }} ยท {{ $note->created_at->diffForHumans() }} @can('delete', $note)
@csrf @method('DELETE')
@endcan
@empty

No notes yet.

@endforelse