@php use App\Enums\InformationMasterialType; use App\Enums\Boolean; use App\Enums\RoomDetailPage; @endphp
@foreach ($restaurantInformations as $index => $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']; $nameSp = $nameRestaurantSp['name']; $logoSp = $nameRestaurantSp['logo']; @endphp
@foreach ($listImagePc as $image)
@endforeach
@foreach ($listImageSp as $image)
@endforeach

{!! setTextDefault(textLocale('name', $val, $lang)) !!} {!! setTextDefault(textLocale('name_sp', $val, $lang)) !!}

{!! setTextDefault(textLocale('descriptive', $val, $lang)) !!} {!! setTextDefault(textLocale('descriptive_sp', $val, $lang)) !!}

@endforeach