Research report: {{ $topic }}

Mode: {{ $mode }} · last {{ $days }} days · {{ $articles->count() }} articles · generated {{ now()->format('d M Y H:i') }}

@if($articles->isEmpty())

No coverage found for this topic in the period.

@else @php $t = $articles->countBy('tone'); @endphp

1. Overview

{{ $articles->count() }} articles from {{ $articles->pluck('outlet_id')->unique()->count() }} outlets cover this topic. Tone: {{ $t['negative'] ?? 0 }} negative, {{ $t['neutral'] ?? 0 }} neutral, {{ $t['positive'] ?? 0 }} positive. Most covered in: {{ $articles->groupBy(fn($a) => $a->category?->name ?? 'Other')->map->count()->sortDesc()->keys()->first() }}.

2. Key developments (by importance)

@foreach($articles->take(10) as $i => $a)

{{ $i + 1 }}. {{ $a->title }} [{{ $a->tone }}]
{{ $a->excerpt(400) }}
{{ $a->outlet?->name }}, {{ $a->published_at?->format('d M Y') }}

@endforeach

3. Timeline

@foreach($articles->sortBy('published_at') as $a)@endforeach
DateHeadlineOutlet
{{ $a->published_at?->format('d M Y') }}{{ $a->title }}{{ $a->outlet?->name }}

4. How outlets cover it

@foreach($articles->groupBy(fn($a) => $a->outlet?->name ?? 'Unknown') as $o => $l)@endforeach
OutletArticlesNegativePositive
{{ $o }}{{ $l->count() }}{{ $l->where('tone','negative')->count() }}{{ $l->where('tone','positive')->count() }}

5. Companies involved

{{ $articles->flatMap->companies->pluck('name')->countBy()->sortDesc()->map(fn($n, $c) => "$c ($n)")->implode(', ') ?: 'None detected.' }}

6. Sources

@foreach($articles as $a)

{{ $a->outlet?->name }} — {{ $a->title }} — {{ $a->url ?: 'print' }}

@endforeach @endif