@extends('layouts.front-end.app') @section('title', $product['name']) @push('css_or_js') @include(VIEW_FILE_NAMES['product_seo_meta_content_partials'], ['metaContentData' => $product?->seoInfo, 'productDetails' => $product]) @endpush @section('content')

{{ $product->name }}

@for($inc=1;$inc<=5;$inc++) @if ($inc <= (int)$overallRating[0]) @elseif ($overallRating[0] != 0 && $inc <= (int)$overallRating[0] + 1.1 && $overallRating[0] > ((int)$overallRating[0])) @else @endif @endfor
({{$overallRating[0]}}) {{$overallRating[1]}} {{translate('reviews')}} {{$countOrder}} {{translate('orders')}} {{$countWishlist}} {{translate('wish_listed')}}
@if($product['product_type'] == 'digital')
@if(count($productPublishingHouseInfo['data']) > 0)
{{ translate('Publishing_House') }} :
@foreach($productPublishingHouseInfo['data'] as $publishingHouseName) {{ $publishingHouseName['name'] }} @endforeach
@endif @if(count($productAuthorsInfo['data']) > 0)
{{ translate('Author') }} :
@foreach($productAuthorsInfo['data'] as $productAuthor) {{ $productAuthor['name'] }} @endforeach
@endif
@endif

{{ getProductPriceByType(product: $product, type: 'discounted_unit_price', result: 'string') }} @if(getProductPriceByType(product: $product, type: 'discount', result: 'value') > 0) {{ webCurrencyConverter(amount: $product->unit_price) }} @endif

@csrf
@if (count(json_decode($product->colors)) > 0)
{{translate('color')}}:
    @foreach (json_decode($product->colors) as $key => $color)
  • @endforeach
@endif @php $qty = 0; if(!empty($product->variation)){ foreach (json_decode($product->variation) as $key => $variation) { $qty += $variation->qty; } } @endphp
@php($extensionIndex=0) @if($product['product_type'] == 'digital' && $product['digital_product_file_types'] && count($product['digital_product_file_types']) > 0 && $product['digital_product_extensions']) @foreach($product['digital_product_extensions'] as $extensionKey => $extensionGroup)
{{ translate($extensionKey) }} :
@if(count($extensionGroup) > 0)
@foreach($extensionGroup as $index => $extension)
@php($extensionIndex++) @endforeach
@endif
@endforeach @endif @foreach (json_decode($product->choice_options) as $key => $choice)
{{ $choice->title }} :
@foreach ($choice->options as $index => $option)
@endforeach
@endforeach
{{translate('quantity')}} :
{{translate('total_price')}} :
  ({{translate('tax')}} : )
@if(($product->added_by == 'seller' && ($sellerTemporaryClose || (isset($product->seller->shop) && $product->seller->shop->vacation_status && $currentDate >= $sellerVacationStartDate && $currentDate <= $sellerVacationEndDate))) || ($product->added_by == 'admin' && ($inHouseTemporaryClose || ($inHouseVacationStatus && $currentDate >= $inHouseVacationStartDate && $currentDate <= $inHouseVacationEndDate)))) @else @endif
@if(($product['product_type'] == 'physical'))
@endif @if(($product->added_by == 'seller' && ($sellerTemporaryClose || (isset($product->seller->shop) && $product->seller->shop->vacation_status && $currentDate >= $sellerVacationStartDate && $currentDate <= $sellerVacationEndDate))) || ($product->added_by == 'admin' && ($inHouseTemporaryClose || ($inHouseVacationStatus && $currentDate >= $inHouseVacationStartDate && $currentDate <= $inHouseVacationEndDate)))) @endif
@if($product->video_url != null && (str_contains($product->video_url, "youtube.com/embed/")))
@endif @if ($product['details'])
{!! $product['details'] !!}
@endif
@if (!$product['details'] && ($product->video_url == null || !(str_contains($product->video_url, "youtube.com/embed/"))))

{{translate('product_details_not_found')}} !

@endif
@if(count($product->reviews)==0 && $productReviews->total() == 0)

{{translate('No_review_given_yet')}}!

@else

{{$overallRating[0]}}

@for($inc=1;$inc<=5;$inc++) @if ($inc <= (int)$overallRating[0]) @elseif ($overallRating[0] != 0 && $inc <= (int)$overallRating[0] + 1.1 && $overallRating[0] > ((int)$overallRating[0])) @else @endif @endfor
{{$productReviews->total()}} {{translate('ratings')}}
{{translate('excellent')}}
{{$rating[0]}}
{{translate('good')}}
{{$rating[1]}}
{{translate('average')}}
{{$rating[2]}}
{{translate('below_Average')}}
{{$rating[3]}}
{{translate('poor')}}
{{$rating[4]}}
{{ translate('Product_review') }}
@endif
@include('web-views.partials._product-reviews')
@if(count($product->reviews) > 2)
@endif
@php($companyReliability = getWebConfig('company_reliability')) @if($companyReliability != null)
@foreach ($companyReliability as $key=>$value) @if ($value['status'] == 1 && !empty($value['title']))
{{translate($value['title'])}}
@endif @endforeach
@endif @if(getWebConfig(name: 'business_mode')=='multi')
@if($product->added_by=='seller') @if(isset($product->seller->shop))
{{$totalReviews}} {{translate('reviews')}}
{{$productsForReview->total()}} {{translate('products')}}
@if (auth('customer')->id()) @else {{translate('chat_with_vendor')}} @endif
@endif @else
{{$totalReviews}} {{translate('reviews')}}
{{$productsForReview->total()}} {{translate('products')}}
@if (auth('customer')->id()) @else {{translate('chat_with_vendor')}} @endif
@endif
@endif

@if(getWebConfig(name: 'business_mode')=='multi') {{ translate('more_from_the_store')}} @else {{ translate('you_may_also_like')}} @endif

@foreach($moreProductFromSeller as $item) @include('web-views.partials._seller-products-product-details',['product'=>$item,'decimal_point_settings'=>$decimalPointSettings]) @endforeach
@if (count($relatedProducts)>0)

{{ translate('similar_products')}}

@php($category=json_decode($product['category_ids'])) @if($category) {{ translate('view_all')}} @endif
@foreach($relatedProducts as $key => $relatedProduct)
@include('web-views.partials._inline-single-product-without-eye',['product'=>$relatedProduct,'decimal_point_settings'=>$decimalPointSettings])
@endforeach
@endif
@include("web-views.products._product-details-sticky", ['productDetails' => $product]) @if($product?->preview_file_full_url['path']) @include('web-views.partials._product-preview-modal', ['previewFileInfo' => $previewFileInfo]) @endif @include('layouts.front-end.partials.modal._chatting',['seller'=>$product->seller, 'user_type'=>$product->added_by]) @endsection @push('script') @endpush