{{-- The five sections of a conversation summary. Rendered both by the Email Summary page and by the modal on the mail list, so the two can never drift apart. Everything here is escaped. The model returns data, not markup — nothing on this page comes out of Gemini as HTML. Expects: $summary — App\Models\ThreadSummary $thread — the collector's array, or null when only the stored copy is known $stale — true when a newer reply has arrived since this was written --}} @php $actions = $summary->section('pending_actions') ?: []; $discussion = $summary->section('previous_discussion') ?: []; $counterpart = $summary->summary_json['counterpart'] ?? ''; $truncated = (bool) ($summary->summary_json['truncated'] ?? false); $messageCount = $thread['message_count'] ?? $summary->message_count; @endphp
{{ $summary->section('customer_requirement') }}
@elseThe thread does not state a clear requirement.
@endifNothing was exchanged beyond the opening message.
@endif{{ $summary->section('current_status') }}
@elseThe thread does not make the current position clear.
@endifNothing is outstanding on either side.
@endif{{ $summary->section('next_step') }}
@elseNo next step follows from the thread.
@endifWritten by AI from the messages in this conversation. Check anything you are going to act on against the mail itself.