{{-- Overview under the admin hub (#2957 slice 11, card #3097). Same data and queries as the old admin/index: the latest sendouts of all companies (home.partials.list), global statistics (partials.stats) and admin.partials.fun-stats, drawn with nh markup; the old partials stay for their other callers. Expects $servers and $receiver_counts from AdminController@index. --}} @php $nhSendouts = Sendout::with('company')->where('start_time', '<', \Carbon\Carbon::today()->addDays(7))->orderBy('start_time', 'desc')->limit(7)->get() ->filter(fn ($sendout) => $sendout->company); @endphp
@if ($nhSendouts->isEmpty())

{{ __('dashboard.sendout.empty') }}

@else
    @foreach ($nhSendouts as $sendout) @php [$pill, $word] = [$sendout->statusPill(), $sendout->statusLabelKey()]; @endphp
  • {{ $sendout->subject }} @if ($word){{ __($word) }}@endif {{ $sendout->company->name }} {{ \App\Support\DisplayDate::timestamp($sendout->start_time) }}
  • @endforeach
@endif
@include('admin.partials.nh-fun-stats')