@if (!empty($product['color'])) @foreach ($product['color']['data'] as $index => $color)
{{ $color['name'] }}
@endforeach @endif
@if (!empty($product['diamond'])) @foreach ($product['diamond']['data'] as $index => $diamond)
{{ $diamond['name'] }}
@endforeach @endif
@if (!empty($product['size'])) @foreach ($product['size']['data'] as $index => $size)
{{ $size['name'] }}
@endforeach @endif

กำหนด สี อย่างเพื่อกำหนดราคาสินค้า

{{-- --}} @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"; $color = json_decode($val['color'] ?? null); $diamond = json_decode($val['diamond'] ?? null); $size = json_decode($val['size'] ?? null); @endphp @endforeach @endif @endforeach @endif @endforeach @endif

ข้อมูลจำเพาะ

ราคาปกติ

ส่วนลดปกติ

ราคาสมาชิก

ส่วนลดสมาชิก

{!! !empty($color->name) && !empty($color->code) ? $color->name . ' ' : '' !!} {{ $diamond->name ?? '' }} {{ $size->name ?? '' }}

{{ !empty($val->price->discount_type) ? ($val->price->discount_type == 1 ? 'เปอร์เซ็น' : 'จำนวนเงิน') : 'จำนวนเงิน' }}

{{ !empty($val->price->currency) ? ($val->price->currency == 'THB' ? 'THB' : 'USD') : 'THB' }}