@yield('page_content')
@foreach ($sections as $section)
@php
$settings = $section->settings ?? [];
$styles = "";
if (!empty($settings['bg_color'])) $styles .= "background-color: {$settings['bg_color']}; ";
if (!empty($settings['padding_top'])) $styles .= "padding-top: {$settings['padding_top']}; ";
if (!empty($settings['padding_bottom'])) $styles .= "padding-bottom: {$settings['padding_bottom']}; ";
if (!empty($settings['border_radius'])) {
$radiusMap = ['none' => '0px', 'sm' => '8px', 'md' => '16px', 'lg' => '24px', 'full' => '999px'];
$r = $radiusMap[$settings['border_radius']] ?? '0px';
$styles .= "border-radius: {$r}; overflow: hidden; ";
}
if (!empty($settings['glass_blur']) && $settings['glass_blur']) {
$blur = $settings['blur_amount'] ?? '16';
$styles .= "backdrop-filter: blur({$blur}px); -webkit-backdrop-filter: blur({$blur}px); ";
}
$class = "builder-section";
if (!empty($settings['hidden_mobile'])) $class .= " hidden md:block";
if (!empty($settings['shadow_style'])) {
$shadowMap = [
'soft' => 'shadow-lg shadow-black/20',
'medium' => 'shadow-xl shadow-black/40',
'premium' => 'shadow-[0_20px_50px_rgba(0,0,0,0.5)] border border-white/10'
];
$class .= " " . ($shadowMap[$settings['shadow_style']] ?? '');
}
@endphp
{{ $section->type }}
@php
$themeSection = 'theme::sections.' . $section->type;
@endphp
@if(view()->exists($themeSection))
@include($themeSection, ['section' => $section])
@else
@includeIf('pages.storefront.sections.' . $section->type, ['section' => $section])
@endif
Your store is empty
Drag components from the sidebar to start building your marketplace.