@extends('layouts.app') @section('title', 'Competitor Radar') @section('heading', 'Competitor Radar') @section('subtitle', 'How often rivals appear in the news, and whether it is good or bad') @section('content')
@foreach([7, 30, 90] as $d){{ $d }} days@endforeach Manage companies →

Share of voice

Mentions over time

Tone table

@foreach($rows as $r) @endforeach
CompanyMentionsSharePositiveNeutralNegativeNet tone
{{ $r['company']->name }} @if($r['company']->is_own)own@endif {{ $r['total'] }}{{ $r['share'] }}% {{ $r['positive'] }}{{ $r['neutral'] }}{{ $r['negative'] }} {{ $r['net'] > 0 ? '+' : '' }}{{ $r['net'] }}
@foreach($rows as $r) @continue(!isset($topStories[$r['company']->id]))

{{ $r['company']->name }} · top stories

@foreach($topStories[$r['company']->id] as $a)
{{ $a->outlet?->name }} · {{ $a->published_at?->format('d M') }}{{ $a->title }}{{ $a->pivot->tone }}
@endforeach
@endforeach
@endsection @push('scripts') @include('partials.charts') @php $sovRows = collect($rows)->where('total', '>', 0)->map(fn($r) => ['n' => $r['company']->name, 't' => $r['total'], 'c' => $r['company']->color ?: '#43d69c'])->values(); @endphp @endpush