<x-app-layout>
    <x-slot name="header">
        <h2 class="font-semibold text-xl text-gray-800 leading-tight">
            {{ $page->title }}
        </h2>
    </x-slot>

    <div class="py-8 bg-gradient-to-b from-gray-50 to-white">
        <div class="max-w-6xl mx-auto space-y-6 sm:px-6 lg:px-8">
            @if(!empty($page->sections))
                @foreach($page->sections as $section)
                    @include('pages.partials.section', ['section' => $section])
                @endforeach
            @else
                <div class="bg-white p-6 rounded-lg shadow-sm prose max-w-none">
                    {!! $page->content !!}
                </div>
            @endif
        </div>
    </div>
</x-app-layout>
