@extends('layouts.previews.hankyu') @php use App\Enums\ElementType; use App\Enums\SightseeingAroundElementDefault; use App\Enums\CustomElementType; @endphp @section('content')
@foreach ($elements as $item) @if (fieldPropertyValue('status', $item)) @if (fieldPropertyValue('element_type', $item) == ElementType::DEFAULT) @switch(fieldPropertyValue('default_element_type', $item)) @case(SightseeingAroundElementDefault::CONCEPT) @include('preview.hankyu.defaults.roomSightseeing.concept') @break @case(SightseeingAroundElementDefault::TOURIST_ROUTE) @include('preview.hankyu.defaults.roomSightseeing.touristRoute') @break @case(SightseeingAroundElementDefault::PLAN) @include('preview.hankyu.commons.plan') @break @case(SightseeingAroundElementDefault::CV_NEXT) @php $reserve = $item; @endphp @break @endswitch @endif @if (fieldPropertyValue('element_type', $item) == ElementType::CUSTOM) @if (fieldPropertyValue('custom_element_type', $item) == CustomElementType::CONTACT) @include('preview.hankyu.customs.contactContent') @endif @if (fieldPropertyValue('custom_element_type', $item) >= CustomElementType::ONE_COLUMN && fieldPropertyValue('custom_element_type', $item) <= CustomElementType::SIDE_CONTENT_V2) @include('preview.customs.customContent') @endif @endif @endif @endforeach @include('preview.hankyu.commons.allContaint') @if (!empty($reserve)) @include('preview.hankyu.commons.reserve') @endif
@endsection