@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(!empty($ifinwishlist)) @else @endif
  • @endauth @php $proType = count($product->subvariants) > 0 ? 'variant' : 'simple'; @endphp
  • @php $inCompare = collect(session('comparison', []))->first(function ($it) use ($product, $proType) { return ($it['proid'] ?? null) == $product->id && (($it['type'] ?? 'variant') === $proType); }); @endphp @if($inCompare) @else @endif
@elseif($sub->stock != 0 && $product->selling_start_at != null && $current_date >= $product->selling_start_at)
  • {{ csrf_field() }}
  • @auth
  • @if(!empty($ifinwishlist)) @else @endif
  • @endauth @php $proType = count($product->subvariants) > 0 ? 'variant' : 'simple'; @endphp
  • @php $inCompare = collect(session('comparison', []))->first(function ($it) use ($product, $proType) { return ($it['proid'] ?? null) == $product->id && (($it['type'] ?? 'variant') === $proType); }); @endphp @if($inCompare) @else @endif
@endif