@php /* $layout_page = shop_product_detail **Variables:** - $product: no paginate - $productRelation: no paginate */ @endphp @extends($sc_templatePath.'.layout') {{-- block_main --}} @section('block_main_content_center') @php $countItem = 0 @endphp
@if ($countItem > 1) @endif
{{ csrf_field() }}

{{ $product->name }}

{!! $product->displayVendor() !!}

SKU: {{ $product->sku }}

{{-- Show price --}}
{!! $product->showPriceDetail() !!}
{{--// Show price --}}
{{-- Button add to cart --}} @if ($product->kind != SC_PRODUCT_GROUP && $product->allowSale() && !sc_config('product_cart_off'))
@php $dataButton = [ 'class' => '', 'id' => 'sc_button-form-process', 'type_w' => '', 'type_t' => 'buy', 'type_a' => '', 'type' => 'submit', 'name' => ''.sc_language_render('action.add_to_cart'), 'html' => '' ]; @endphp @include($sc_templatePath.'.common.button.button', $dataButton)
@endif {{--// Button add to cart --}} {{-- Show attribute --}} @if (sc_config('product_property'))
@if ($product->attributes()) {!! $product->renderAttributeDetails() !!} @endif
@endif {{--// Show attribute --}} {{-- Stock info --}} @if (sc_config('product_stock'))
{{ sc_language_render('product.stock_status') }}: @if($product->stock <=0 && !sc_config('product_buy_out_of_stock')) {{ sc_language_render('product.out_stock') }} @else {{ sc_language_render('product.in_stock') }} @endif
@endif {{--// Stock info --}} {{-- date available --}} @if (sc_config('product_available') && $product->date_available >= date('Y-m-d H:i:s')) {{ sc_language_render('product.date_available') }}: {{ $product->date_available }} @endif {{--// date available --}} {{-- Category info --}}
{{ sc_language_render('product.category') }}: @foreach ($product->categories as $category) {{ $category->getTitle() }}, @endforeach
{{--// Category info --}} {{-- Brand info --}} @if (sc_config('product_brand') && !empty($product->brand->name))
{{ sc_language_render('product.brand') }}: {!! empty($product->brand->name) ? 'None' : ''.$product->brand->name.'' !!}
@endif {{--// Brand info --}} {{-- Product kind --}} @if ($product->kind == SC_PRODUCT_GROUP)
@php $groups = $product->groups @endphp {{ sc_language_render('product.kind_group') }}:
@foreach ($groups as $group) {!! sc_image_render($group->product->image) !!} @endforeach
@endif @if ($product->kind == SC_PRODUCT_BUILD)
@php $builds = $product->builds @endphp {{ sc_language_render('product.kind_bundle') }}:
{!! sc_image_render($product->image) !!} = @foreach ($builds as $k => $build) {!! ($k) ? '':'' !!} {{ $build->quantity }} x {!! sc_image_render($build->product->image) !!} @endforeach
@endif {{-- Product kind --}}
{{-- Social --}}
Share
{{--// Social --}}
{{-- Render connetnt --}}
{!! sc_html_render($product->content) !!}
{{--// Render connetnt --}}
@if ($productRelation->count())

{{ sc_language_render('front.products_recommend') }}

@foreach ($productRelation as $key => $productRel)
{{-- Render product single --}} @include($sc_templatePath.'.common.product_single', ['product' => $productRel]) {{-- //Render product single --}}
@endforeach
@endif @endsection {{-- block_main --}} @push('styles') {{-- Your css style --}} @endpush @push('scripts') {{-- //script here --}} @endpush