@if (!empty($product_items['data'])) @foreach ($product_items['data'] as $item) @if (!empty($item)) @foreach ($item as $diamonds) @if (!empty($diamonds)) @foreach ($diamonds as $val) @php $str = "c$c" . "_w$d" . "_s$s"; $images = []; $color = json_decode($val['color'] ?? null); $diamond = json_decode($val['diamond'] ?? null); $size = json_decode($val['size'] ?? null); if (!empty($val['images'])) { $images = json_decode($val['images']); } @endphp @endforeach @endif @endforeach @endif @endforeach @endif
ข้อมูลจำเพาะ การแสดง จัดการ รูปภาพ
{!! !empty($color->name) && !empty($color->code) ? $color->name . ' ' : '' !!} {{ $diamond->name ?? '' }} {{ $size->name ?? '' }} status_show) ? 'checked' : '' }} onclick="setShowDisplay({{ $val->id }},{{ $val->product_id }})">
@if (!empty($images)) @foreach ($images as $image) @php $img = videoOrImageBN($image->image); $item_images[] = $img['url']; @endphp @if ($img['type'] == 'img') No image available @else @endif @endforeach @endif