@if($product['sale_tag'] !== NULL && $product['sale_tag'] != '')
{{ $product['sale_tag'] }}
@endif

{{$product->name}} ({{ variantname($sub) }})

@if(get_product_rating($product->id) != 0)
@else {{ __('Rating Not Available') }} @endif
@if($price_login == 0 || auth()->check()) @if($convert_price != 0) {{price_format($convert_price * $conversion_rate)}} {{price_format($show_price * $conversion_rate)}} @else {{price_format($show_price * $conversion_rate)}} @endif @endif
@if($sub->stock != 0 && $product->selling_start_at == null)
  • {{ csrf_field() }}
  • @auth @if(Auth::user()->wishlist()->count() < 1)
  • @else @php $ifinwishlist = App\Wishlist::where('user_id',Auth::user()->id)->where('pro_id',$sub->id)->first(); @endphp @if(!empty($ifinwishlist))
  • @else
  • @endif @endif @endauth
@elseif($sub->stock != 0 && $product->selling_start_at != null && $current_date >= $product->selling_start_at)
  • {{ csrf_field() }}
  • @auth @if(Auth::user()->wishlist()->count() < 1)
  • @else @php $ifinwishlist = App\Wishlist::where('user_id',Auth::user()->id)->where('pro_id',$sub->id)->first(); @endphp @if(!empty($ifinwishlist))
  • @else
  • @endif @endif @endauth
@endif