@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]+.50)) @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')}}: {{\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))))
{{translate('this_shop_is_temporary_closed_or_on_vacation')}}. {{translate('You_cannot_add_product_to_cart_from_this_shop_for_now')}}
@endif