Notes
{{ $student->notes->count() }}
@forelse ($student->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
{{ strtoupper($initials) }}
{{ $fullName }} {{ $note->created_at->diffForHumans() }}
{{ $note->content }}
@empty

No notes yet. Be the first to share an update!

@endforelse
@csrf
@push('styles') @endpush