@extends('frontend::layouts.master') @section('title') @section('style') @endsection @section('content')
{{-- Section : Banner --}} @if (!empty($data['banner']['image_banner_mobile'])) @endif @if (!empty($data['banner']['image_banner'])) @endif {{-- Section : Product --}}
{{ $product["name_$lang"] ?? '' }}
@if (!empty($data['set_certi']['certificate']))
@lang('frontend.frnd_40'): {{ $data['set_certi']['certificate'] ?? '' }}
@endif
{{-- @lang('frontend.categories'): --}} {{ $data['category_menu']['cat_name'] ?? '' }}
@if (!empty($result_item['body_type']))
@if (!empty($result_item['show_name_color'])) {{ $result_item['body_type'] ?? '' }} {{ ' ' . $result_item['show_name_color'] }} @else {{ $result_item['body_type'] ?? '' }} {{ $result_item['color'][0]['name'] ?? '' }} @endif
@endif
@csrf
@if ($price['discount_type'])

{{ !empty($price['old_price']) ? number_format($price['old_price'], 2) : '' }}

THB {{ !empty($price['total_price']) ? number_format($price['total_price'], 2) : '' }} (@lang('frontend.save') {{ !empty($price['discount_percent']) ? $price['discount_percent'] : '' }}%)


@else

THB {{ !empty($price['total_price']) ? number_format($price['total_price'], 2) : '' }}


@endif
{{-- Color product --}} @if (!empty($result_item['color']) && count($result_item['color']) > 0)

@lang('frontend.frnd_46') {{-- - 18k / Rose Gold --}}

@lang('frontend::lang.product_detail_01')
@foreach ($result_item['color'] as $k => $clr)
@endforeach
@endif {{-- Center Diamond --}} @if (!empty($result_item['diamond']) && count($result_item['diamond']) > 0)

@lang('frontend.frnd_45')

@foreach ($result_item['diamond'] as $k => $dmd)
@endforeach

@endif @if ( (!empty($result_item['size']) && count($result_item['size']) > 0) || (!empty($result_item['size_type']) && count($result_item['size_type']) > 0))
@lang('frontend::lang.product_detail_02')
@endif @if (Auth::guard('member')->check()) @else @endif
{{-- @dump($sku_detail) --}}
{{-- {!! mwz_getTextString($product["detail_$lang"] ?? '') !!} --}}
@if (!empty($product['code']))

Model No.
{{ $product['code'] ?? '' }}

@endif @if (!empty($sku_detail['pearl']))

{{ !empty($data['set_certi']['metal']) ? $data['set_certi']['metal'] : __('frontend::lang.detial_ring_00') }}
{{ $sku_detail['pearl'] ?? '' }}

@endif @if (!empty($result_item['diamond'][0]['name']))

@lang('frontend::lang.detial_ring_01')
{{ $result_item['diamond'][0]['name'] ?? '' }}

@endif @if (!empty($data['set_certi']['certificate']))

@lang('frontend::lang.detial_ring_02')
{{ $data['set_certi']['certificate'] ?? '' }}

@endif @if (!empty($sku_detail['uncut'])) {{-- ทรง --}}

@lang('frontend::lang.detial_ring_03')
{{ $sku_detail['uncut'] ?? '' }}

@endif @if (!empty($sku_detail['shape'])) {{-- สี --}}

@lang('frontend::lang.detial_ring_04')
{{ $sku_detail['shape'] ?? '' }}

@endif @if (!empty($sku_detail['cleanliness']))

@lang('frontend::lang.detial_ring_05')
{{ $sku_detail['cleanliness'] ?? '' }}

@endif @if (!empty($item_select->weight))

@lang('frontend::lang.detial_ring_07')
{{ $item_select->weight ?? '' }}

@endif @if (!empty($result_item['body_type']))

@lang('frontend::lang.detial_ring_08')
{{ $result_item['body_type'] ?? '' }}

@endif @if (!empty($item_select->width) && $item_select->width > 0)

@lang('frontend::lang.detial_ring_09')
{{ $item_select->width ?? '' }}

@endif

{!! $sku_detail['another'] ?? '' !!}

{{--
@lang('frontend::lang.product_detail_07')
@lang('frontend::lang.product_detail_08')
--}}
{!! $sku_detail['description'] ?? '' !!}
{{--
@lang('frontend::lang.product_detail_07')
@lang('frontend::lang.product_detail_08')
--}}

{!! !empty($data['text']['detail_1']) ? $data['text']['detail_1'] : '' !!}
@if (!empty($product_other) && count($product_other) > 0)

@lang('frontend::lang.product_detail_11')

    @foreach ($product_other as $prod) @php $price = calculator_price($prod->item_price); $get_image_item = setImage($prod->id); @endphp
  • @if (!empty($prod->status_new) && !empty($prod->labels))

    @foreach (json_decode($prod->labels) as $item) {{ ($item->title ?? '') . ' ' }} @endforeach

    @endif
    @if (Auth::guard('member')->check())
    @else
    @endif
    {{ $prod["name_$lang"] ?? '' }}{!! backProductName($product, $get_image_item['foritems'] ?? '', $pageInit['lang']) !!}
    @if (!empty($price['discount_type']))

    {{ number_format($price['old_price'] ?? 0, 2) }}

    THB {{ number_format($price['total_price'] ?? 0, 2) }} ({{ $price['discount_percent'] }}@lang('frontend::lang.product_01'))

    @else

    THB {{ number_format($price['total_price'] ?? 0, 2) }}

    @endif
  • @endforeach
@endif
@endsection @section('script') @endsection