{{-- Expects: - $content: array of section settings (e.g., title, subtitle, bg_color, text_color, items_to_show, view_all_link) - $featured_companies_data: Collection of featured company models. (This data would be fetched by the controller/service rendering the LpPage and its sections) --}} @php $sectionTitle = $content['title'] ?? 'Featured Companies'; $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'] ?? 4); $viewAllLink = $content['view_all_link'] ?? route('landingpage.companies.index'); // Default to general companies page $companies = $featured_companies_data ?? collect(); // Ensure it's a collection @endphp

{{ $sectionTitle }}

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

{{ $content['subtitle'] }}

@else
{{-- Ensure consistent spacing if no subtitle --}} @endif @if($companies->isNotEmpty())
@foreach($companies->take($itemsToShow) as $company)
{{ $company->name }} banner or logo

{{ Str::limit($company->name, 40) }}

@if($company->companyType)

{{ $company->companyType->name }}

@endif

{{ Str::limit(strip_tags($company->description), 70) }}

@endforeach
@if($viewAllLink && $companies->count() > $itemsToShow) @endif @else

No featured companies to display at the moment.

@endif