@if($product->images!=null && json_decode($product->images)>0)
@if(json_decode($product->colors) && $product->color_image) @foreach (json_decode($product->color_image) as $key => $photo) @if($photo->color != null)
@if ($product->discount > 0 && $product->discount_type === "percent") -{{$product->discount}}% @elseif($product->discount > 0) -{{\App\CPU\Helpers::currency_converter($product->discount)}} @endif image_name")}}" class="dark-support rounded" alt="" onerror="this.src='{{theme_asset('assets/img/image-place-holder.png')}}'">
@else
@if ($product->discount > 0 && $product->discount_type === "percent") -{{$product->discount}}% @elseif($product->discount > 0) -{{\App\CPU\Helpers::currency_converter($product->discount)}} @endif image_name")}}" class="dark-support rounded" alt="" onerror="this.src='{{theme_asset('assets/img/image-place-holder.png')}}'">
@endif @endforeach @else @foreach (json_decode($product->images) as $key => $photo)
@if ($product->discount > 0 && $product->discount_type === "percent") -{{$product->discount}}% @elseif($product->discount > 0) -{{\App\CPU\Helpers::currency_converter($product->discount)}} @endif
@endforeach @endif
@endif
@if($product->images!=null && json_decode($product->images)>0)
@if(json_decode($product->colors) && $product->color_image) @foreach (json_decode($product->color_image) as $key => $photo) @if($photo->color != null)
image_name")}}" class="dark-support rounded border" alt="Product thumb" onerror="this.src='{{theme_asset('assets/img/image-place-holder.png')}}'">
@else
image_name")}}" class="dark-support rounded border" alt="Product thumb" onerror="this.src='{{theme_asset('assets/img/image-place-holder.png')}}'">
@endif @endforeach @else @foreach (json_decode($product->images) as $key => $photo)
Product thumb
@endforeach @endif
@endif

{{$product->name}}

@if ($product->discount > 0 && $product->discount_type === "percent") {{translate('save')}} {{$product->discount}}% @elseif($product->discount > 0) {{translate('save')}} {{\App\CPU\Helpers::currency_converter($product->discount)}} @endif
@for ($i = 1; $i <= 5; $i++) @if ($i <= (int)$overallRating[0]) @elseif ($overallRating[0] != 0 && $i <= (int)$overallRating[0] + 1.1 && $overallRating[0] > ((int)$overallRating[0])) @else @endif @endfor
({{$product->reviews_count}})
@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
{{\App\CPU\Helpers::currency_converter($product->unit_price)}} {{\App\CPU\Helpers::get_price_range($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 $key => $choice)
{{translate($choice->title)}}
    @foreach ($choice->options as $key => $option)
  • @endforeach
@endforeach
{{translate('quantity')}}
current_stock == 1?'disabled':'')}}>
{{translate('total_price')}}: {{\App\CPU\Helpers::currency_converter($product->unit_price)}}
{{translate('Tax')}}: {{ $product->tax_model == 'include' ? 'incl.' : \App\CPU\Helpers::currency_converter($product->tax)}}
@if(($product->added_by == 'seller' && ($seller_temporary_close || (isset($product->seller->shop) && $product->seller->shop->vacation_status && $current_date >= $seller_vacation_start_date && $current_date <= $seller_vacation_end_date))) || ($product->added_by == 'admin' && ($inhouse_temporary_close || ($inhouse_vacation_status && $current_date >= $inhouse_vacation_start_date && $current_date <= $inhouse_vacation_end_date)))) @else @endif
@if(($product->added_by == 'seller' && ($seller_temporary_close || (isset($product->seller->shop) && $product->seller->shop->vacation_status && $current_date >= $seller_vacation_start_date && $current_date <= $seller_vacation_end_date))) || ($product->added_by == 'admin' && ($inhouse_temporary_close || ($inhouse_vacation_status && $current_date >= $inhouse_vacation_start_date && $current_date <= $inhouse_vacation_end_date)))) @endif
@if($product->added_by=='seller') @if(isset($product->seller->shop))
{{$product->seller->shop->name}}
@for ($i = 1; $i <= 5; $i++) @if ($i <= (int)$avg_rating) @elseif ($avg_rating != 0 && $i <= (int)$avg_rating + 1.1 && $avg_rating > ((int)$avg_rating)) @else @endif @endfor
({{$total_reviews}})
{{$products_for_review->count()}} {{translate('products')}}

{{round($rating_percentage)}}%

{{translate('positive_review')}}
@if (auth('customer')->id() == '')
@else
@endif
{{translate('Visit_Store')}}
@include('theme-views.layouts.partials.modal._chat-with-seller',['seller_id'=>$product->seller->id,'shop_id'=>$product->seller->shop->id]) @endif @else
value}}" alt="" class="img-fit dark-support rounded-circle" onerror="this.src='{{theme_asset('assets/img/image-place-holder.png')}}'">
{{$web_config['name']->value}}
@for ($i = 1; $i <= 5; $i++) @if ($i <= (int)$avg_rating) @elseif ($avg_rating != 0 && $i <= (int)$avg_rating + 1.1 && $avg_rating > ((int)$avg_rating)) @else @endif @endfor
({{$total_reviews}})
{{$products_for_review->count()}} {{translate('Products')}}

{{round($rating_percentage)}} %

{{translate('positive_review')}}
{{translate('Visit_Store')}}
@endif

{{translate('similar_Products_From_Other_Stores')}}

@if (count($relatedProducts)>0) @foreach($relatedProducts as $key=>$product)
@include('theme-views.partials._similar-product-large-card',['product'=>$product])
@endforeach @else
{{translate('no_similar_products_found')}}.
@endif