@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']])
{{ __('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 |