@extends('layouts.app') @section('title', $a->title) @section('eyebrow', ($a->outlet?->name ?? 'Unknown').' · '.$a->published_at?->format('d M Y H:i')) @section('heading', $a->title) @section('content') @php $an = $a->analysis ?? []; @endphp

{{ $a->tone }} ({{ $a->tone_score }}) @if($a->category){{ $a->category->name }}@endif importance {{ $a->importance }} @if($a->needs_attention)needs attention@endif @if($a->manually_corrected)corrected by user@endif @foreach($a->companies as $c){{ $c->name }} · {{ $c->pivot->mention_type }} · {{ $c->pivot->tone }}@endforeach

Deep Analyst

@csrf

{{ $an['summary'] ?? '' }}

@foreach(['key_facts' => 'Key facts', 'decisions' => 'Decisions', 'quotes' => 'Quotes', 'affected' => 'Who is affected', 'actions' => 'Suggested actions', 'what_if' => 'What could happen next', 'changed_since_last' => 'What changed since last update'] as $k => $label) @if(!empty($an[$k]))

{{ $label }}

    @foreach($an[$k] as $item)
  • {{ $k === 'quotes' ? '“'.$item.'”' : $item }}
  • @endforeach
@endif @endforeach

Business impact

{{ $an['business_impact'] ?? '—' }}

Reason for the tone

{{ $a->tone_reason }}

Rate this summary
@include('partials.thumbs', ['type' => 'summary', 'id' => $a->id]) @foreach($a->feedback->where('kind', 'rating') as $f)

{{ $f->user?->name }}: {{ $f->rating == 1 ? '👍' : ($f->rating == -1 ? '👎' : '') }} {{ $f->comment }}

@endforeach

Article

@if($a->image_url)@endif @if($a->summary)

{{ $a->summary }}

@endif
{{ $a->body }}

@if($a->credit)Credit: {{ $a->credit }} · @endif @if($a->url)Open original article ↗@endif

Story thread · how outlets covered it

@forelse($thread as $t)
{{ $t->outlet?->name }} · {{ $t->published_at?->format('d M H:i') }}{{ $t->title }}{{ $t->tone }}
@empty

Only one outlet has covered this story so far.

@endforelse @if($thread->isNotEmpty()) @php $all = $thread->push($a); @endphp

Neutral view: {{ $all->where('tone','negative')->count() }} negative, {{ $all->where('tone','neutral')->count() }} neutral, {{ $all->where('tone','positive')->count() }} positive across {{ $all->pluck('outlet_id')->unique()->count() }} outlets.

@endif

Last time this happened

@forelse($history as $h)
{{ $h->outlet?->name }} · {{ $h->published_at?->format('d M Y') }}{{ $h->title }}
@empty

No similar earlier stories found.

@endforelse

Correct the tags

@csrf

@foreach($a->feedback->where('kind', '!=', 'rating') as $f)

{{ $f->user?->name }} changed {{ str_replace('_correction','',$f->kind) }}: {{ $f->old_value }} → {{ $f->new_value }}

@endforeach
@if(!empty($a->entities))

Entities

@foreach($a->entities as $k => $list)
{{ ucfirst($k) }}
{{ implode(', ', $list) ?: '—' }}
@endforeach
@endif @if(auth()->user()->isAdmin())
@csrf @method('DELETE')
@endif
@endsection