@extends('adtTheme::layouts.master') @section('title',!is_null($product['metas']) && !is_null($product['metas']['meta_title']) ? $product['metas']['meta_title'] : $product['name']['product_name']) @section('meta_description',!is_null($product['metas']) ? $product['metas']['meta_description'] : '') @section('meta_keywords',!is_null($product['metas']) ? $product['metas']['meta_keywords'] : '') @section('meta') @if(array_key_exists('price_data',$product) && !is_null($product['price_data'])) @if(!config('storeSettings.hidePrice',false)) @if(!empty($product['price_data']->basket_discount) && $product['price_data']->basket_discount->basket_discount_price > 0) @elseif(!empty($product['price_data']->discount) && $product['price_data']->discount->discount_price > 0) @else @endif @endif @endif @if(array_key_exists('images',$product) && !is_null($product['images']) && count($product['images']) > 0) @endif @if(array_key_exists('images',$product) && count($product['images']) > 0 && $product['images'][array_key_first($product['images'])]['paths']['medium']) @if(config('generalSettings.webp_status',0)) @else @endif @endif @endsection @section('content') @include('frontend.themes.default.layouts.partials.announcement-template', ['position'=>\App\Constants\AnnouncementPositionTypeConstants::PRODUCT_HEADER,'relationId' => $product['product_id']])
@foreach($product['badges'] as $badge)
{!! $badge['name']['badge_name'] !!}
@endforeach @if(!is_null($product['price_data']->discount))
{{ __('frontend/product_card.x_discount_percent',['discountPercent' => $product['price_data']->discount->discount_percent]) }}
@endif
{{ __('frontend/product-detail.video') }}
@if(!is_null($cargoCounterRemainingTime)) @endif @if(array_key_exists('accessory_products',$product) && count($product['accessory_products']) > 0)
{!! __('frontend/product-detail.accessories_for_this_product') !!}
@include('frontend.themes.default.templates.products.partials.accessory-slider-component')
@endif

@{{ productData.name.product_name }}

@{{ productData.descriptions.product_short_description }}
@if(!config('storeSettings.hidePrice',false))
@if(config('app.storeType',\App\Constants\StoreTypeConstants::RETAIL) == \App\Constants\StoreTypeConstants::DEALER)
{{ __('frontend/product-detail.dealer_seria_price') }} :
@endif
@{{ (productData.price.price).toFixed(2) }}
@{{ (productData.price.discountPrice).toFixed(2) }}
Sepette @{{ (productData.price.basketDiscountPrice).toFixed(2) }}
@else {{ __('frontend/general.hide_price_text') }} @endif {{ number_format($product['avg_rating'],1) }}({{ $productComments->total() }} {{ __('frontend/product-detail.comment') }})
@if(!is_null($product['brand']) && config('storeSettings.productDetailPageViewBrand', false)) @endif @if(isset($includedVariants) && count($includedVariants) > 0) @if(!config('storeSettings.hidePrice',false)) @endif @endif
{{ __('frontend/product-detail.product_code') }}:@{{ productData.product_code }}
{{ __('frontend/product-detail.product_brand') }}:{{ $product['brand']['brand_name'] }}
{{ __('frontend/product-detail.product_barcode') }}:@{{ selectedProductVariant.barcode }}
{{ __('frontend/product-detail.product_min_order') }}:@{{ productData.sale_criteria.min_order }}
{{ __('frontend/product-detail.dealer_product_included_variant') }}: {{ implode(',',$includedVariants->pluck('variant_name')->toArray()) }}
{{ __('frontend/product-detail.dealer_product_included_variant_count') }}: {{ count($includedVariants) }}
{{ __('frontend/product-detail.dealer_product_unit_price') }}: @if(!empty($product['price_data']->basket_discount) && $product['price_data']->basket_discount->basket_discount_price > 0) {{ ($product['price_data']->basket_discount->basket_discount_price)/count($includedVariants) }} @elseif(!empty($product['price_data']->discount) && $product['price_data']->discount->discount_price > 0) {{ ($product['price_data']->discount->discount_price)/count($includedVariants) }} @else {{ $product['price_data']->product_price/count($includedVariants) }} @endif
@include('frontend.themes.default.templates.products.partials.variant-selection-area') @if(!config('storeSettings.hidePrice',false))
{{ $product['unit']['name']['unit_name'] }}:
0) min="{{ $product['sale_criteria']['min_order'] }}" value="{{ $product['sale_criteria']['min_order'] }}" @endif @if($product['sale_criteria']['max_order'] > 0) max="{{ $product['sale_criteria']['max_order'] }}" @endif @else min="1" value="1" @endif :step="productData.unit !=undefined && productData.unit.step ? productData.unit.step : 1 " id="product_count" class="product-page-number__count">
@else
@endif
@{{ information.text.product_information_title }}
@if(array_key_exists('accessory_products',$product) && count($product['accessory_products']) > 0)
{!! __('frontend/product-detail.accessories_for_this_product') !!}
@include('frontend.themes.default.templates.products.partials.accessory-slider-component')
@endif @if(!is_null($cargoCounterRemainingTime)) @endif @if(!is_null($productCampaigns) && count($productCampaigns) > 0) @foreach($productCampaigns as $productCampaign) @if(!is_null($productCampaign->productDetail))
@if(!empty($productCampaign->productDetail->campaign_mini_image)) @else @endif
{{ $productCampaign->productDetail->campaign_title }}
{{ $productCampaign->productDetail->campaign_description }}
@endif @endforeach @endif @include('frontend.themes.default.layouts.partials.announcement-template', ['position'=>\App\Constants\AnnouncementPositionTypeConstants::PRODUCT_BUTTONS_SUB,'relationId' => $product['product_id']])
{{ __('frontend/product-detail.product_detail') }}
{!! $product['descriptions']['product_long_description'] !!}
{{ __('frontend/product-detail.product_delivery_and_return') }}
{!! $product['delivery_and_return']['product_delivery_and_return'] ?? '' !!}
@include('frontend.themes.default.templates.products.partials.comments')
@if(count($availableInstallmentGroups) > 0)
@include('frontend.themes.default.templates.products.partials.installments')
@endif @if(count($attributeTableData) > 0)
@include('frontend.themes.default.templates.products.partials.product-attributes')
@endif @if(count($tabs) > 0) @foreach($tabs as $key => $tab)
{!! $tab->getTabContent() !!}
@endforeach @endif
@include('frontend.themes.default.templates.products.partials.similar-product-carousel') @include('frontend.themes.default.templates.products.partials.complement-product-carousel') @include('frontend.themes.default.templates.products.partials.size-model') @include('frontend.themes.default.templates.products.partials.tell-when-it-comes-stock-modal') @include('frontend.themes.default.templates.products.partials.evaluate-modal') @include('frontend.themes.default.layouts.partials.announcement-template', ['position'=>\App\Constants\AnnouncementPositionTypeConstants::PRODUCT_FOOTER,'relationId' => $product['product_id']])
@endsection @section('style_before') @endsection @section('style') @if(count($tabs) > 0) @foreach($tabs as $key => $tab) {!! $tab->getTabCss() !!} @endforeach @endif @endsection @section('js-middle') @endsection @section('js-end') @include('frontend.themes.default.integrations.google.ads.product-detail-view',['product' => $product]) @include('frontend.themes.default.integrations.google.ads.product-detail-add-to-cart',['product' => $product]) @include('frontend.themes.default.integrations.facebook.product_detail',['product' => $product]) @include('frontend.themes.default.integrations.schema.product-detail-schema',['product' => $product,'productComments' => $productComments]) @if(count($tabs) > 0) @foreach($tabs as $key => $tab) {!! $tab->getTabJavascript() !!} @endforeach @endif @endsection @include('frontend.themes.default.layouts.partials.static-code') @section('top-bar-notification') @include('frontend.themes.default.layouts.partials.top-bar-notification',[ 'positions' =>[\App\Constants\AnnouncementPositionTypeConstants::PRODUCT_PAGE_TOP],'relationId' => $product['product_id']]) @endsection