@php use App\Enums\InformationMasterialType; use App\Enums\Boolean; use App\Enums\MultiLangMode; @endphp
@foreach ($restaurantInformations as $val) @php $listImagePc = []; $listImageSp = []; for ($i = 1; $i <= 8; $i++) { if (!empty($val['image' . $i])) { $listImagePc[] = $val['image' . $i]; } if (!empty($val['image' . $i . '_sp'])) { $listImageSp[] = $val['image' . $i . '_sp']; } } if (count($listImagePc) == 0) { $listImagePc[] = 'https://assets.micado-rayout.jp/img/common/no-image-found-360x250.png'; } if (count($listImageSp) == 0) { $listImageSp = $listImagePc; } $nameRestaurantSp = nameRestaurantSp($val, $lang); $isLogoSp = $nameRestaurantSp['isLogo']; $logoSp = $nameRestaurantSp['logo']; @endphp
@foreach ($listImagePc as $image)
@endforeach
@if (count($listImagePc) > 1)
@endif
@if (fieldPropertyValue('is_logo', $val) == Boolean::TRUE)
@else
{!! setTextDefault(fieldPropertyValue('name_en', $val)) !!}
@if ($lang != MultiLangMode::ENGLISH)
{!! setTextDefault(textLocale('name', $val, $lang)) !!}
@endif @endif
{!! setTextDefault(textLocale('descriptive', $val, $lang)) !!}
@php $informationMaterial = getInformationMaterial($val['restaurant_information_details'], $lang); @endphp
@foreach ($informationMaterial as $detail)
{!! fieldPropertyValue('heading', $detail) !!}
@switch(fieldPropertyValue('type', $detail)) @case(InformationMasterialType::TEXT)
{!! fieldPropertyValue('descriptive', $detail) !!}
@break @case(InformationMasterialType::BUTTON) {!! fieldPropertyValue('button_name', $detail) !!} @break @case(InformationMasterialType::PDF) @if (fieldPropertyValue('pdf_descriptive', $detail)) @endif @break @endswitch
@endforeach
View More
@foreach ($listImageSp as $image)
@endforeach
@if (count($listImagePc) > 1)
@endif
@if ($isLogoSp == Boolean::TRUE)
@else
{!! setTextDefault(fieldPropertyValue('name_sp_en', $val)) !!}
@if ($lang != MultiLangMode::ENGLISH)
{!! setTextDefault(textLocale('name_sp', $val, $lang)) !!}
@endif @endif
{!! setTextDefault(textLocale('descriptive_sp', $val, $lang)) !!}
@php $informationMaterial = getInformationMaterial($val['restaurant_information_details'], $lang); @endphp
@foreach ($informationMaterial as $detail)
{!! fieldPropertyValue('heading_sp', $detail) !!}
@switch(fieldPropertyValue('type', $detail)) @case(InformationMasterialType::TEXT)
{!! fieldPropertyValue('descriptive_sp', $detail) !!}
@break @case(InformationMasterialType::BUTTON) {!! fieldPropertyValue('button_name_sp', $detail) !!} @break @case(InformationMasterialType::PDF) @if (fieldPropertyValue('pdf_descriptive_sp', $detail)) @endif @break @endswitch
@endforeach
@endforeach