@php // Same sticky palette as the notes drawer. Literal classes so Tailwind keeps them. $palette = [ 'yellow' => ['note' => 'bg-amber-50 ring-amber-200/80', 'chip' => 'bg-amber-100 text-amber-800'], 'pink' => ['note' => 'bg-rose-50 ring-rose-200/80', 'chip' => 'bg-rose-100 text-rose-800'], 'blue' => ['note' => 'bg-sky-50 ring-sky-200/80', 'chip' => 'bg-sky-100 text-sky-800'], 'green' => ['note' => 'bg-emerald-50 ring-emerald-200/80','chip' => 'bg-emerald-100 text-emerald-800'], 'slate' => ['note' => 'bg-slate-50 ring-slate-200', 'chip' => 'bg-slate-200 text-slate-700'], ]; $swatch = fn (string $key): array => $palette[$key] ?? $palette['yellow']; @endphp

{{ __('Notes') }}

{{ __('Internal notes about this job, anyone on the team can add one') }}

@forelse ($job->notes as $jobNote) @php $s = $swatch($jobNote->color); @endphp
{{ $jobNote->authorInitials() }} {{ $jobNote->user?->name ?: __('Someone') }}
@if ($jobNote->is_pinned) @endif

{{ $jobNote->body }}

{{ $jobNote->created_at?->diffForHumans() }}
@empty
@endforelse