{{-- Expects: - $content: array of section settings (e.g., title, subtitle, bg_color, text_color, items_to_show, view_all_link) - $featured_jobs_data: Collection of featured job models. --}} @php $sectionTitle = $content['title'] ?? 'Featured Job Openings'; $bgColor = $content['bg_color'] ?? 'bg-slate-50 dark:bg-slate-800/50'; $textColor = $content['text_color'] ?? 'text-gray-800 dark:text-gray-100'; $itemsToShow = (int) ($content['items_to_show'] ?? 3); $viewAllLink = $content['view_all_link'] ?? route('landingpage.jobs.index'); $jobs = $featured_jobs_data ?? collect(); @endphp

{{ $sectionTitle }}

@if(!empty($content['subtitle']))

{{ $content['subtitle'] }}

@else
@endif @if($jobs->isNotEmpty())
@foreach($jobs->take($itemsToShow) as $job)

{{ $job->title }}

@if($job->company) {{ $job->company->name }} - @endif {{ $job->location ?: 'Not specified' }} - {{ $job->job_type ?: 'N/A' }}

View Job
@endforeach
@if($viewAllLink && $jobs->count() > $itemsToShow) @endif @else

No featured jobs to display at the moment.

@endif