@extends('layouts.previews.ibisStylesV2') @php use App\Enums\ElementType; use App\Enums\RoomElementDefault; use App\Enums\CustomElementType; $concept = current( array_filter($elements, function ($item) { return fieldPropertyValue('element_type', $item) == ElementType::DEFAULT && fieldPropertyValue('default_element_type', $item) == RoomElementDefault::CONCEPT && $item['status']; }), ); @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(RoomElementDefault::ROOM) @include('preview.ibisStylesV2.defaults.rooms.roomType') @break @case(RoomElementDefault::PLAN) @include('preview.ibisStylesV2.commons.plan') @break @endswitch @endif @endif @if (textLocale('status', $item, $lang) && fieldPropertyValue('custom_element_type', $item) >= CustomElementType::ONE_COLUMN && fieldPropertyValue('custom_element_type', $item) <= CustomElementType::SIDE_CONTENT_V2)
@include('preview.customs.customContent')
@endif @endforeach @include('preview.ibisStylesV2.commons.allContaint') @include('preview.ibisStylesV2.commons.reserve')
@endsection