@extends('layout.master') @section('body-class', 'page-product') @section('title', $product['meta_title'] ?: $product['name']) @section('keywords', $product['meta_keywords'] ?: system_setting('base.meta_keyword')) @section('description', $product['meta_description'] ?: system_setting('base.meta_description')) @push('header') @if ($product['video']) @endif @endpush @php $iframeClass = request('iframe') ? 'd-none' : ''; @endphp @section('content') @if (!request('iframe')) @endif
@if(!is_mobile())
@include('product.product-video')
@else @include('product.product-video')
@endif
@hookwrapper('product.detail.name')

{{ $product['name'] }}

@endhookwrapper @hookwrapper('product.detail.price') {{-- 非阶梯价 --}}
{{ $product['trade_term'] ?? 'DAP'}} @{{ product.price_format }} - @{{ product.origin_price_format }} @if($product['unit']) / {{explode('/',$product['unit'])[0]}} @endif @if($product['sales_method'] == 'piece') | {{ $product['minimum_order'] }} {{explode('/',$product['unit'])[1]}} @else | {{ ($product['piece_to_batch'] * $product['minimum_order']) }} {{explode('/',$product['unit'])[1]}} @endif ({{__('product.minimum_order')}})
{{--{{$product['trade_term'] ?? 'DAP'}}--}} {{--@{{ product.price_format }}--}} {{-----}} {{--@{{ product.origin_price_format }}--}} {{--@if($product['unit'])--}} {{-- / {{explode('/',$product['unit'])[0]}} |--}} {{--@endif--}} {{----}} {{-- @if($product['sales_method'] == 'piece')--}} {{--  {{ $product['minimum_order'] }} {{explode('/',$product['unit'])[1]}}({{__('product.minimum_order')}})--}} {{-- @else--}} {{--  {{ ($product['piece_to_batch'] * $product['minimum_order']) }} {{explode('/',$product['unit'])[1]}}({{__('product.minimum_order')}})--}} {{-- @endif--}} {{----}} @if($product['sales_method'] == 'batches') {{__('product.minimum_order')}}:@{{ minimum_order }} {{ __('product.batches') }} (1 {{ __('product.batches') }} = {{ $product['piece_to_batch'] }} {{ strpos($product['unit'], '/') !== false ? explode('/',$product['unit'])[0] : $product['unit']}} in total) @endif
{{--阶梯价--}}
{{$product['trade_term'] ?? 'DAP'}}
@{{ item.num }} - @{{ numPrices[index + 1].num - 1 }} {{ strpos($product['unit'], '/') !== false ? explode('/',$product['unit'])[1] : $product['unit']}}
>= @{{ item.num }} {{ strpos($product['unit'], '/') !== false ? explode('/',$product['unit'])[1] : $product['unit']}}
@{{ item.price_format }}
@if($product['sales_method'] == 'batches')
{{__('product.minimum_order')}}:@{{ minimum_order }} {{ __('product.batches') }} (1 {{ __('product.batches') }} = {{ $product['piece_to_batch'] }} {{ strpos($product['unit'], '/') !== false ? explode('/',$product['unit'])[0] : $product['unit']}} in total)
@endif
@endhookwrapper
{{__('product.product_type')}}: {{ $product['active'] == 1 ? __('common.enable_status') : __('common.disable_status') }}
@hookwrapper('product.detail.quantity')
{{ __('product.quantity') }}:
@endhookwrapper @if ($product['brand_id']) @hookwrapper('product.detail.brand')
{{ __('product.brand') }}: {{ $product['brand_name'] }}
@endhookwrapper @endif @hookwrapper('product.detail.sku')
SKU:@{{ product.sku }}
@endhookwrapper @hookwrapper('product.detail.model')
{{ __('shop/products.model') }}: @{{ product.model }}
@endhookwrapper {{--
{{ __('product.sales_method') }}: @if($product['sales_method'] == 'piece') {{ __('product.sales_method_piece_unit',['unit'=>$product['unit']]) }} @else {{ __('product.sales_method_batches') }}({{ __('product.pieces_per_batch',['num'=>$product['piece_to_batch'],'unit'=>$product['unit']]) }}) @endif
--}} {{--
{{__('product.minimum_order')}}:@{{ minimum_order }} @if($product['sales_method'] == 'piece') {{ $product['unit'] }} @else {{ __('product.batches') }}({{__('product.total_num',['num'=>($product['piece_to_batch'] * $product['minimum_order']),'unit'=>$product['unit']])}}) @endif
--}} {{--@if(!empty($product['unit']))
{{__('product.unit_of_measurement')}}: {{ $product['unit'] }}
@endif--}}
@if (0)
@for ($i = 0; $i < 5; $i++) @endfor
132 reviews
@endif {{--商品规格--}}

@{{ variable.name }}

@{{ value.name }}
@{{ value.name }}
{{-- 购买数量 - 单规格 --}}
{{--购买&进入购物车按钮--}}
@hook('product.detail.buy.before') {{--添加购买规格--}} {{-- 购买数量 - 多规格 --}}
@hookwrapper('product.detail.quantity.input')
@{{ skuInfoValue.name }}:@{{ skuInfoValue.value }}
@endhookwrapper
{{--操作内容--}}
{{--点击加入购物车--}} @hookwrapper('product.detail.add_to_cart') @endhookwrapper {{-- 直接下单产品 - 显示立即购买按钮 --}} @if ($product['active']) @hookwrapper('product.detail.buy_now') @endhookwrapper @endif @hook('product.detail.buy.after') {{-- 加入收藏 --}} @if ((current_customer() || !request('iframe'))) @hookwrapper('product.detail.wishlist') @endhookwrapper @endif
{{--价格实时计算--}}
    {{--
  • {{ __('shop/products.product_total') }} @{{ product_total }}
  • {{ __('shop/products.shipping_fee') }} @{{ shipping_fee }}
  • {{ __('shop/products.order_total') }} @{{ order_tota }}
  • --}}
{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- 组合--}} {{-- 不明--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @hook('product.detail.after')
{{ $product['name'] }}
{{-- Cancel--}} Submit
{!! $product['description'] !!}
@foreach ($product['attributes'] as $group) @foreach ($group['attributes'] as $item) @endforeach @endforeach
{{ $group['attribute_group_name'] }}
{{ $item['attribute'] }} {{ $item['attribute_value'] }}
@hook('product.tab.after.pane')
{{-- 国家选择器 --}} {{-- 物流选择器 --}}
@if ($relations && !request('iframe'))
{{ __('admin/product.product_relations') }}
@foreach ($relations as $item)
@include('shared.product', ['product' => $item])
@endforeach
@endif @hook('product.detail.footer') @endsection @push('add-scripts') @include('shared.select-countries') @include('shared.select-logistics') @endpush