@forelse ($categories as $category)
@php
$nameParts = preg_split('/\s+/u', trim($category['name']), -1, PREG_SPLIT_NO_EMPTY) ?: [];
$accentWord = count($nameParts) > 1 ? array_pop($nameParts) : null;
$titleLead = count($nameParts) > 0 ? implode(' ', $nameParts) : $category['name'];
@endphp
@if (count($category['entries']) > 0)
@foreach ($category['entries'] as $entry)
@if (trim($entry['company']) !== '')
{{ $entry['company'] }}
@endif
@if (trim($entry['city']) !== '')
{{ $entry['city'] }}
@endif
@endforeach
@else
Companies for this category will be published soon.
@endif
@empty
Winner categories for this section will be published soon.
@endforelse
@endsection