@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 --}}
@csrf

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

{{ $product["name_$lang"] ?? '' }}
@if (!empty($data['set_certi_m']['certificate']))
@lang('frontend.frnd_40'): {{ $data['set_certi_m']['certificate'] }}
@endif {{-- @if (!empty($data['category_menu_m']['cat_name']))
@lang('frontend.categories'): {{ $data['category_menu_m']['cat_name'] ?? '' }}
@endif --}} @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
@if ($price['discount_type'])

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

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


@else'

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


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

@lang('frontend.frnd_46')

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

@lang('frontend.frnd_45')

@foreach ($result_item['diamond'] as $index => $diamond)
@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
{{-- {!! mwz_getTextString($product["detail_$lang"] ?? '') !!} --}}
@if (!empty($product['code']))

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

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

{{ !empty($data['set_certi_m']['metal']) ? $data['set_certi_m']['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_m']['certificate']))

@lang('frontend::lang.detial_ring_02')
{{ $data['set_certi_m']['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 ($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')
--}}

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

{{ $product2["name_$lang"] ?? '' }}
@if (!empty($data['set_certi_w']['certificate']))
@lang('frontend.frnd_40'): {{ $data['set_certi_w']['certificate'] }}
@endif {{-- @if (!empty($data['category_menu_w']['cat_name']))
@lang('frontend.categories'): {{ $data['category_menu_w']['cat_name'] ?? '' }}
@endif --}} @if (!empty($result_item2['body_type']))
@if (!empty($result_item2['show_name_color'])) {{ $result_item2['body_type'] ?? '' }} {{ ' ' . $result_item2['show_name_color'] }} @else {{ $result_item2['body_type'] ?? '' }} {{ $result_item2['color'][0]['name'] ?? '' }} @endif
@endif
@if ($price2['discount_type'])

{{ number_format($price2['old_price'], 2) }}

THB {{ number_format($price2['total_price'], 2) }} (@lang('frontend.save') {{ $price2['discount_percent'] }}%)


@else

THB {{ number_format($price2['total_price'], 2) }}


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

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

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

@lang('frontend.frnd_45')

@foreach ($result_item2['diamond'] as $index => $diamond)
@endforeach

@endif
@lang('frontend::lang.product_detail_02')
@if (Auth::guard('member')->check()) {{-- ล็อกอินแล้ว --}} @else {{-- ยังไม่ล็อกอิน --}} @endif
{{-- {!! mwz_getTextString($product2["detail_$lang"] ?? '') !!} --}}
@if (!empty($product2['code']))

Model No.
{{ $product2['code'] }}

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

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

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

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

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

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

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

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

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

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

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

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

@endif {{-- @if (!empty($sku_detail2['uncut']))

@lang('frontend::lang.detial_ring_06')
{{ $sku_detail2['uncut'] }}

@endif --}} @if (!empty($item_select2->weight))

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

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

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

@endif @if (!empty($item_select2->width))

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

@endif
{!! $sku_detail2['another'] ?? '' !!}
{{--
@lang('frontend::lang.product_detail_07')
@lang('frontend::lang.product_detail_08')
--}}
{!! $sku_detail2['description'] ?? '' !!}
{{--
@lang('frontend::lang.product_detail_07')
@lang('frontend::lang.product_detail_08')
--}}
{!! !empty($data['text']['detail_1']) ? $data['text']['detail_1'] : '' !!}

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

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

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

    @endif @endif
    @if (Auth::guard('member')->check())
    @else
    @endif
    {{ $prod["name_$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