@extends('layouts.previews.ibisStylesV2')
@php
use App\Enums\ElementType;
use App\Enums\TopElementDefault;
use App\Enums\CustomElementType;
use App\Enums\NoteType;
use App\Enums\FvType;
$listImagePc = [];
$listImageSp = [];
for ($i = 1; $i <= 3; $i++) {
if (!empty($project->topPage['slide_image_pc' . $i])) {
$listImagePc[] = $project->topPage['slide_image_pc' . $i];
}
if (!empty($project->topPage['slide_image_sp' . $i])) {
$listImageSp[] = $project->topPage['slide_image_sp' . $i];
}
}
if (count($listImagePc) == 0) {
$listImagePc[] = 'https://assets.micado-rayout.jp/img/common/no-image-found-360x250.png';
}
if (count($listImageSp) == 0) {
$listImageSp = $listImagePc;
}
@endphp
@section('content')
@if (fieldPropertyValue('fv_type', $project->topPage) == FvType::MOVIE)
{!! fieldPropertyValue('movie_tag', $project->topPage) !!}
@else
@foreach ($listImagePc as $index => $image)
@endforeach
@endif
@if (fieldPropertyValue('fv_type_sp', $project->topPage) == FvType::MOVIE)
{!! fieldPropertyValue('movie_tag_sp', $project->topPage) !!}
@else
@foreach ($listImageSp as $index => $image)
@endforeach
@endif
@if (fieldPropertyValue('note_type', $project->topPage) == NoteType::THERE_IS_TEXT)
{!! setTextDefault(textLocale('note', $project->topPage, $lang)) !!}
@endif
@if (fieldPropertyValue('note_type_sp', $project->topPage) == NoteType::THERE_IS_TEXT)
{!! setTextDefault(textLocale('note_sp', $project->topPage, $lang)) !!}
@endif
{!! setTextDefault(textLocale('cv_text1', $basic, $lang)) !!}
@foreach ($elements as $index => $item)
@if (fieldPropertyValue('default_element_type', $item) == TopElementDefault::INSTAGRAM)
@include('preview.ibisStylesV2.defaults.tops.instagram')
@endif
@if (fieldPropertyValue('status', $item))
@if (fieldPropertyValue('element_type', $item) == ElementType::DEFAULT)
@switch(fieldPropertyValue('default_element_type', $item))
@case(TopElementDefault::CONCEPT)
@include('preview.ibisStylesV2.defaults.tops.concept')
@break
@case(TopElementDefault::ROOM)
@include('preview.ibisStylesV2.defaults.tops.room')
@break
@case(TopElementDefault::RESTAURANT)
@include('preview.ibisStylesV2.defaults.tops.restaurant')
@break
@case(TopElementDefault::OTHER_FACILITY)
@include('preview.ibisStylesV2.defaults.tops.facility')
@break
@case(TopElementDefault::ACTIVITY)
@include('preview.ibisStylesV2.defaults.tops.activity')
@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