@php $metrics = [ ['label' => __('Meetings'), 'value' => number_format($summary['notes']), 'icon' => 'chat-bubble-left-right', 'accent' => '#6366f1', 'sub' => __('Confirmed notes')], ['label' => __('Organisations'), 'value' => number_format($summary['organisations']), 'icon' => 'building-office', 'accent' => '#0ea5e9', 'sub' => __('Distinct in these meetings')], ['label' => __('Officers'), 'value' => number_format($summary['officers']), 'icon' => 'users', 'accent' => '#8b5cf6', 'sub' => __('Who wrote the notes')], ['label' => __('Client needs'), 'value' => number_format(count($summary['needs'])), 'icon' => 'tag', 'accent' => '#10b981', 'sub' => __('Distinct needs')], ['label' => __('Competitors'), 'value' => number_format(count($summary['competitors'])), 'icon' => 'flag', 'accent' => '#f59e0b', 'sub' => __('Distinct competitors')], ]; @endphp

{{ __('Meetings held :from to :to', ['from' => $from->format('j M Y'), 'to' => $to->format('j M Y')]) }}

{{ __('Draft notes are left out. Counts are distinct meetings and distinct organisations.') }}

@foreach ($metrics as $m)

{{ $m['label'] }}

{{ $m['value'] }}

{{ $m['sub'] }}
@endforeach
@foreach ($tabs as $key => $meta) @endforeach

{{ $tab === 'competitors' ? __('Competitors mentioned') : __('Client needs') }}

{{ __('The same wording in one meeting counts as one meeting. The same organisation counts once, however many of its meetings mentioned it.') }}

@forelse ($rows as $row) @empty @endforelse
{{ $tab === 'competitors' ? __('Competitor') : __('Need') }} {{ __('Meetings') }} {{ __('Organisations') }} {{ __('Source meetings') }}
{{ $row['label'] }} {{ number_format($row['meetings']) }} {{ number_format($row['organisations']) }}
    @foreach ($row['sources'] as $source)
  • {{ $source['title'] }}

    {{ $source['held_at'] ? $source['held_at']->timezone($tz)->format('j M Y') : __('Not available') }} · {{ $source['organisation'] ?: __('Not available') }} · {{ $source['officer'] ?: __('Not available') }}

  • @endforeach
@if ($rows->hasPages())
{{ $rows->links() }}
@endif