@if ($locations->count() > 0) @switch($style) @case('style-2')
@if ($title)

{{ $title }}

@endif @if ($description)

{{ $description }}

@endif
@foreach($locations->chunk(3) as $locations) @foreach($locations as $location) @php $jobListUrl = $location instanceof \Botble\Location\Models\City ? route('public.jobs-by-city', $location->slug) : route('public.jobs-by-state', $location->slug); @endphp
{{ ($location->name) }}, {{ $location->country->name }}
@if($location->companies_count > 1) {{ __(':count companies', ['count' => $location->companies_count]) }} @elseif($location->companies_count == 1) {{ __(':count company', ['count' => $location->companies_count]) }} @else {{ __('No company') }} @endif
@if($location->jobs_count > 1) {{ __(':count jobs', ['count' => $location->jobs_count]) }} @elseif($location->jobs_count == 1) {{ __(':count job', ['count' => $location->jobs_count]) }} @else {{ __('No jobs') }} @endif
@endforeach @endforeach
@break @default
@if ($title)

{{ $title }}

@endif @if ($description)

{{ $description }}

@endif
@php $gridClasses = [[3, 4, 5, 4, 5, 3], [5, 7, 7, 5, 7, 5]] @endphp @foreach($locations as $location) @php $jobListUrl = $location instanceof \Botble\Location\Models\City ? route('public.jobs-by-city', $location->slug) : route('public.jobs-by-state', $location->slug); @endphp
{{ ($location->name) }}, {{ $location->country->name }}
@if($location->companies_count > 1) {{ __(':count companies', ['count' => $location->companies_count]) }} @elseif($location->companies_count == 1) {{ __(':count company', ['count' => $location->companies_count]) }} @else {{ __('No company') }} @endif
@if($location->jobs_count > 1) {{ __(':count jobs', ['count' => $location->jobs_count]) }} @elseif($location->jobs_count == 1) {{ __(':count job', ['count' => $location->jobs_count]) }} @else {{ __('No jobs') }} @endif
@endforeach
@break @endswitch @endif