@extends('layouts.app') @section('title', $speakingNote->title) @section('page-title', 'Speaking Note') @section('content')
{{-- Header card --}}
{{ $speakingNote->urgency_label }} {{ $speakingNote->status_label }} v{{ $speakingNote->version }}

{{ $speakingNote->title }}

By {{ $speakingNote->author?->name }} · {{ $speakingNote->created_at->format('d M Y') }} @if($speakingNote->scheduled_for) · Scheduled: {{ $speakingNote->scheduled_for->format('d M Y') }} @endif
@if($speakingNote->topic_tags)
@foreach($speakingNote->topic_tags as $tag) #{{ $tag }} @endforeach
@endif
{{-- Action buttons --}}
@if(in_array($speakingNote->status, ['draft','in_review'])) Edit @endif @if($speakingNote->status === 'draft')
@csrf
@endif @if(in_array($speakingNote->status, ['draft','in_review']))
@csrf
@endif @if($speakingNote->status !== 'archived')
@csrf
@endif
{{-- Left: Note content (2/3) --}}
{{-- Headline --}}

Headline Message

{{ $speakingNote->headline_message }}

{{-- Talking points --}} @if($speakingNote->talking_points)

Talking Points / Speaking Notes

{{ $speakingNote->talking_points }}
@endif {{-- Supporting facts --}} @if($speakingNote->supporting_facts)

Supporting Facts & Data

{{ $speakingNote->supporting_facts }}
@endif {{-- Attacks & Rebuttals --}} @if($speakingNote->attacks_rebuttals)

Attacks & Rebuttals

{{ $speakingNote->attacks_rebuttals }}
@endif {{-- Lines to avoid --}} @if($speakingNote->lines_to_avoid)

Lines to Avoid

{{ $speakingNote->lines_to_avoid }}
@endif {{-- Attachments --}} @if($speakingNote->attachments->isNotEmpty())

Attachments ({{ $speakingNote->attachments->count() }})

@foreach($speakingNote->attachments as $attachment) @include('speaking-notes.partials.attachment-row', [ 'attachment' => $attachment, 'downloadRoute' => 'speaking-notes.attachments.download', 'downloadParams' => [$speakingNote, $attachment], 'canDelete' => true, 'deleteRoute' => 'speaking-notes.attachments.destroy', 'deleteParams' => [$speakingNote, $attachment], ]) @endforeach
@endif {{-- Comments --}}

Internal Comments

@forelse($speakingNote->comments as $comment)
{{ strtoupper(substr($comment->user?->name ?? '?', 0, 2)) }}
{{ $comment->user?->name }} {{ $comment->created_at->diffForHumans() }}

{{ $comment->body }}

@empty

No comments yet.

@endforelse
@csrf @error('body')

{{ $message }}

@enderror
{{-- Right: Distribution + Acknowledgements (1/3) --}}
{{-- Distribute panel --}} @if($speakingNote->status === 'approved')

Distribute Note

@csrf
@endif {{-- Distribution history --}} @if($speakingNote->distributions->isNotEmpty())

Distribution Log

@foreach($speakingNote->distributions as $dist)
{{ $dist->target_summary }}
by {{ $dist->distributedBy?->name }} · {{ $dist->created_at->format('d M, g:ia') }}
@endforeach
@endif {{-- Upload more files --}}

Attach Files

@csrf
{{-- Acknowledgement stats --}} @if($ackStats['total'] > 0)

Acknowledgement Tracker

@php $ackPct = $ackStats['total'] > 0 ? round($ackStats['acknowledged'] / $ackStats['total'] * 100) : 0; $readPct = $ackStats['total'] > 0 ? round($ackStats['read'] / $ackStats['total'] * 100) : 0; @endphp
Acknowledged {{ $ackStats['acknowledged'] }}/{{ $ackStats['total'] }} ({{ $ackPct }}%)
Read {{ $ackStats['read'] }}/{{ $ackStats['total'] }} ({{ $readPct }}%)
{{-- Per-communicator list --}}
@foreach($speakingNote->acknowledgements->sortByDesc('acknowledged_at') as $ack)
{{ strtoupper(substr($ack->communicator?->name ?? '?', 0, 2)) }}
{{ $ack->communicator?->name }} @if($ack->is_acknowledged) @elseif($ack->is_read) R @else @endif
@endforeach

✓ Acknowledged · R Read · — Unread

@endif
@endsection