{{-- resources/views/themes/general/sections/services.blade.php --}} @php $sectionTitle = $section->title ?? 'Our Services'; $services = $section->content['services_list'] ?? []; // Default placeholder icon (SVG) $defaultIcon = ''; // Fallback for demonstration if $services is empty (remove for production if not needed) // if (empty($services)) { // $services = [ // ['title' => 'Web Development', 'description' => 'Creating stunning and performant websites tailored to your needs.', 'visual_type' => 'icon', 'icon_html' => $defaultIcon, 'link' => '#web-development'], // ['title' => 'AI Solutions', 'description' => 'Leveraging AI to build smart applications.', 'visual_type' => 'image', 'image_url' => 'https://via.placeholder.com/100x100.png?text=AI', 'link' => '#ai-solutions'], // ['title' => 'Cloud Services', 'description' => 'Scalable cloud infrastructure.', 'visual_type' => 'icon', 'icon_html' => '', 'link' => '#cloud-services'], // ]; // } @endphp {{ $sectionTitle }} @if(!empty($services)) @foreach ($services as $service) {{-- h-auto for variable height content, p-2 for spacing --}} {{-- Fixed size container for visual --}} @if(($service['visual_type'] ?? 'icon') === 'image' && !empty($service['image_url'])) @elseif(!empty($service['icon_html'])) {!! $service['icon_html'] !!} @else {!! $defaultIcon !!} {{-- Default placeholder icon --}} @endif {{ $service['title'] }} {{ $service['description'] }} Learn More → @endforeach @else Our services will be listed here soon. @endif @pushOnce('styles') @endPushOnce @pushOnce('scripts') @endPushOnce
{{ $service['description'] }}
Our services will be listed here soon.