@if($product->images!=null && count($product->images_full_url)>0)
@if(json_decode($product->colors) && count($product->color_images_full_url)>0) @foreach ($product->color_images_full_url as $key => $photo) @if($photo['color'] != null)
@if ($product->discount > 0 && $product->discount_type === "percent") {{'-'.$product->discount.'%'}} @elseif($product->discount > 0) {{'-'.webCurrencyConverter($product->discount)}} @endif
@else
@if ($product->discount > 0 && $product->discount_type === "percent") {{'-'.$product->discount.'%'}} @elseif($product->discount > 0) -{{webCurrencyConverter($product->discount)}} @endif
@endif @endforeach @else @foreach ($product->images_full_url as $key => $photo)
@if ($product->discount > 0 && $product->discount_type === "percent") -{{$product->discount}}% @elseif($product->discount > 0) {{'-'.webCurrencyConverter($product->discount)}} @endif
@endforeach @endif
@endif @if($product?->preview_file_full_url['path'])
{{ translate('See_Preview') }}
@endif
@if($product->images!=null && json_decode($product->images)>0)
@if(count($product->color_images_full_url)>0) @foreach ($product->color_images_full_url as $key => $photo) @if($photo['color'] != null)
@else
@endif @endforeach @else @foreach ($product->images_full_url as $key => $photo)
@endforeach @endif
@endif

{{$product->name}}

@if ($product->discount > 0 && $product->discount_type === "percent") {{translate('save')}} {{$product->discount.'%'}} @elseif($product->discount > 0) {{translate('save')}} {{webCurrencyConverter($product->discount)}} @endif
@for ($index = 1; $index <= 5; $index++) @if ($index <= (int)$overallRating[0]) @elseif ($overallRating[0] != 0 && $index <= (int)$overallRating[0] + 1.1 && $overallRating[0] > ((int)$overallRating[0])) @else @endif @endfor
({{ count($product->reviews) }})
@if(($product['product_type'] == 'physical') && ($product['current_stock']<=0))

{{translate('out_of_stock')}}

@else @if($product['product_type'] === 'physical')

{{$product->current_stock}} {{translate('in_Stock')}}

@endif @endif @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
{!! getPriceRangeWithDiscount(product: $product) !!}
@csrf
@if (count(json_decode($product->colors)) > 0)
{{translate('color')}}
    @foreach (json_decode($product->colors) as $key => $color)
  • @endforeach
@endif @foreach (json_decode($product->choice_options) as $choice)
{{translate($choice->title)}}
    @foreach ($choice->options as $key =>$option)
  • @endforeach
@endforeach @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
{{translate('quantity')}}
current_stock == 1?'disabled':'')}}>
{{translate('total_price').':'}} {{webCurrencyConverter($product->unit_price)}}
{{translate('tax').':'}} {{ $product->tax_model == 'include' ? 'incl.' : webCurrencyConverter($product->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 @php($guest_checkout=getWebConfig(name: 'guest_checkout')) @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 (count($moreProductFromSeller)>0) @endif @if($product->added_by=='seller') @if(isset($product->seller->shop))
{{$product->seller->shop->name}}
@for ($increment = 1; $increment <= 5; $increment++) @if ($increment <= (int)$avgRating) @elseif ($avgRating != 0 && $increment <= (int)$avgRating + 1.1 && $avgRating > ((int)$avgRating)) @else @endif @endfor
({{$totalReviews}})
{{$productsForReview->count()}} {{translate('products')}}

{{round($positiveReview).'%'}}

{{translate('positive_review')}}
@if (auth('customer')->id() == '')
@else
@endif
{{translate('visit_store')}}
@include('theme-views.layouts.partials.modal._chat-with-seller',['shop'=>$product->seller->shop, 'user_type' => 'seller']) @endif @else
{{$web_config['company_name']}}
@for ($index = 1; $index <= 5; $index++) @if ($index <= (int)$avgRating) @elseif ($avgRating != 0 && $index <= (int)$avgRating + 1.1 && $avgRating > ((int)$avgRating)) @else @endif @endfor
({{$totalReviews}})
{{$productsForReview->count()}} {{translate('Products')}}

{{round($positiveReview).'%'}}

{{translate('positive_review')}}
@if (auth('customer')->id() == '')
@else
@endif
{{translate('visit_store')}}
@include('theme-views.layouts.partials.modal._chat-with-seller',['shop'=>0, 'user_type' => 'admin']) @endif
@if (count($relatedProducts)>0)
@if($web_config['business_mode'] == 'multi')

{{translate('similar_products_from_other_stores')}}

@else

{{translate('similar_products')}}

@endif
@foreach($relatedProducts as $key=>$relatedProduct)
@include('theme-views.partials._similar-product-large-card',['product'=>$relatedProduct])
@endforeach
@endif @if($product?->preview_file_full_url['path']) @include('theme-views.partials._product-preview-modal', ['previewFileInfo' => $previewFileInfo]) @endif