@forelse ($course->notes as $note)
@php
$creator = $note->staff;
$fullName = $creator ? trim($creator->first_name . ' ' . $creator->last_name) : 'Unknown Staff';
$initials = collect(explode(' ', $fullName))->map(fn($n) => mb_substr($n, 0, 1))->take(2)->join('');
@endphp
No notes yet. Be the first to share an update!