@extends('frontend.layouts.master')

@section('content')
    <!-- Vendor Landing page -->

    {{-- @include('frontend.section.vendor-banner')
    @include('frontend.section.vendor-features')
    @include('frontend.section.vendor-requirements') --}}



    {{-- @dd($page_section->sections); --}}
    @forelse ($page_section->sections ?? [] as $item)
        
        @php
            $component_name = 'frontend.section.' . $item->section->key;
        @endphp

        @if (View::exists($component_name))
            @include($component_name)
        @endif
    @empty
        @include('frontend.section.demo')
    @endforelse
@endsection
