@extends('frontend.layouts.master')

@push("css")

@endpush

@section('content')

{{-- @include('frontend.sections.banner')

@include('frontend.sections.security')

@include('frontend.sections.how-its-work')

@include('frontend.sections.download-app')

@include('frontend.sections.statistics')

@include('frontend.sections.call-to-action') --}}


@foreach ($page_section->sections ?? [] as $item)
    @if ($item->section->key == Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::BANNER_SECTION))
        @include('frontend.sections.banner')
    @elseif($item->section->key == Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::SECURITY_SECTION))
        @include('frontend.sections.security')
    @elseif($item->section->key == Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::HOW_ITS_WORK_SECTION))
        @include('frontend.sections.how-its-work')
    @elseif($item->section->key == Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::DOWNLOAD_APP_SECTION))
        @include('frontend.sections.download-app')
    @elseif($item->section->key == Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::STATISTIC_SECTION))
        @include('frontend.sections.statistics')
    @elseif($item->section->key == Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::CALL_TO_ACTION_SECTION))
        @include('frontend.sections.call-to-action')
    @elseif($item->section->key == Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::ABOUT_SECTION))
        @include('frontend.sections.about')
    @elseif($item->section->key == Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::FAQ_SECTION))
        @include('frontend.sections.faq')
    @elseif($item->section->key == Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::SERVICE_SECTION))
        @include('frontend.sections.service')
    @endif
@endforeach

@endsection

@push("script")

@endpush
