@aware(['page']) @props([ 'title', 'description', 'layout' => 'grid', 'background_color' => '#F9FAFB', 'background_image' => null, 'use_gradient' => false, 'gradient_start' => '#4F46E5', 'gradient_end' => '#9333EA', 'features' => [], ]) @php $backgroundStyle = ''; if ($use_gradient) { $backgroundStyle = "background: linear-gradient(135deg, {$gradient_start}, {$gradient_end});"; } elseif ($background_image) { $backgroundStyle = "background-image: url('{{ asset('storage/' . $background_image) }}'); background-size: cover; background-position: center;"; } else { $backgroundStyle = "background-color: {$background_color};"; } // Generate a unique ID for the carousel component $carouselId = 'carousel-' . uniqid(); @endphp

{{ $title }}

@if($description)

{!! $description !!}

@endif
@if($layout === 'grid')
@foreach($features as $feature)

{{ $feature['title'] ?? 'Untitled Feature' }}

{{ $feature['description'] ?? '' }}

@if(!empty($feature['button_text']) && !empty($feature['button_link'])) @endif
@endforeach
@else @endif