@props([ 'companies' => [], ]) @php $palette = ['#0098A6', '#21A038', '#0018A8', '#1E1E1E', '#E20074', '#003781', '#C84A1E', '#5A6E2F']; $companies = collect($companies)->take(6)->values(); @endphp @if ($companies->isNotEmpty())

{{ __('web.newsrooms.title') }}

{{ __('web.newsrooms.today') }}

@foreach ($companies as $index => $company) @php $initial = $company['initial'] ?? strtoupper(mb_substr($company['name'] ?? '?', 0, 1)); $name = $company['name'] ?? ''; $count = (int) ($company['count'] ?? 0); $color = $company['color'] ?? $palette[$index % count($palette)]; $slug = $company['slug'] ?? null; $href = $slug ? route('newsroom', ['slug' => $slug]) : route('newsrooms'); $isLast = $loop->last; @endphp
{{ $initial }}
{{ $name }}
{{ $count }} {{ __('web.newsrooms.count_suffix') }}
@if ($company['today'] ?? false) {{ __('web.newsrooms.active_today') }} @else @endif
@endforeach {{ __('web.newsrooms.all') }} →
@endif