@if(getSetting('site.newsletter_homepage_position') === 'top')
@include('elements.subscribe-box', ['classes' => (getSetting('site.show_featured_clients_area') && count(GenericHelper::getAvailableFeaturedClients()) ? 'mt-md-0 mb-5' : 'my-5') . ' pl-3'])
@endif
{{-- Pinned jobs --}}
@if(count($pinnedJobListings))
@include('elements.listings.featured-category-box', ['listings' => $pinnedJobListings, 'category' => (object)['name' => __('Featured Jobs'), 'id' => null], 'categoryName' => __('Featured Jobs')])
@endif
{{-- Featured categories --}}
@if(count($featuredCategoriesListings))
@foreach($featuredCategoriesListings as $categoryListings)
@include('elements.listings.featured-category-box', [
'listings' => $categoryListings['listings'],
'category' => isset($categoryListings['category']->category) ? $categoryListings['category']->category : $categoryListings['category'],
'categoryName' => isset($categoryListings['category']->category->name) ? $categoryListings['category']->category->name : $categoryListings['category']->name
])
@endforeach
@else
@if( (getSetting('site.disable_featured_categories_on_homepage') && count($jobs) > 0))
@include('elements.listings.featured-category-box', [
'listings' => $jobs,
'category' => 'all',
'categoryName' => __('All jobs'),
])
@endif
@endif
@if(count($featuredCategoriesListings) === 0 && count($pinnedJobListings) === 0 || (getSetting('site.disable_featured_categories_on_homepage') && count($jobs) === 0))
{{__("No content available")}}
{{__("Looks like there are no jobs posted or featured categories yet. Be the first one to post a job, over the job create page, at")}} {{__("this link")}}.
@endif
@if(getSetting('site.newsletter_homepage_position') === 'bottom')
@include('elements.subscribe-box', ['classes' => (count($featuredCategoriesListings) ? 'mb-5' : 'mb-5 mt-5') . ' pl-3' ])
@endif
@if(getSetting('site.show_popular_tags_box'))
@include('elements.tags-box', ['tags' => GenericHelper::getPopularTags(23)])
@endif