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