@extends('layouts.app') @section('title', 'My Speaking Notes') @section('page-title', 'My Speaking Notes') @section('content')
{{-- Stats bar --}}
{{ $stats->total ?? 0 }}
Total Notes
{{ $stats->unread ?? 0 }}
Unread
{{ $stats->pending_ack ?? 0 }}
Pending Acknowledgement
{{-- Filter bar --}}
Show: @foreach([''=>'All','unread'=>'Unread','unacknowledged'=>'Not Acknowledged','acknowledged'=>'Acknowledged'] as $val => $label) {{ $label }} @endforeach
{{-- Notes list --}}
@forelse($acknowledgements as $ack) @php $note = $ack->speakingNote; @endphp
{{-- Unread dot --}}
@if(!$ack->read_at)
@elseif(!$ack->acknowledged_at)
@else
@endif
{{ $note->urgency_label }} @if($note->scheduled_for) For: {{ $note->scheduled_for->format('d M Y') }} @endif

{{ $note->title }}

{{ Str::limit($note->headline_message, 120) }}

{{ $note->author?->name }} · {{ $ack->delivered_at?->diffForHumans() }} @if($ack->acknowledged_at) · ✓ Acknowledged @elseif($ack->read_at) · Read @endif
@empty

No speaking notes here yet.

Notes distributed to you will appear here.

@endforelse
@if($acknowledgements->hasPages())
{{ $acknowledgements->links() }}
@endif {{-- Legend --}}
Unread Read, not acknowledged Acknowledged
@endsection