@php $sale_data = Helper::productSaleStatus($product); @endphp @if(!empty($store_slug)) @php $product->store_slug = $store_slug; @endphp @endif @if(!empty($category) || !empty($product->category_slug)) @if(!empty($category)) @php $link = route('product-in-collection', [$product->store_slug, $category->slug, $product->slug]); @endphp @else @php $link = route('product-in-collection', [$product->store_slug, $product->category_slug, $product->slug]); @endphp @endif @else @php $link = route('product', [$product->store_slug, $product->slug]); @endphp @endif
  • @if($sale_data)
    {{ $sale_data['sale_percentage'] + 0 }}% OFF
    @endif
    {{ $product->name }}
    {{ $product->name }}
    @if($sale_data) {{ Helper::showCurrencyFormats($sale_data['selling_price']) }} {{ Helper::showCurrencyFormats($sale_data['original_price']) }} @else {{ Helper::showCurrencyFormats($product->original_price) }} @endif @if(!empty($product->thc) || !empty($product->cbd))

    @if(!empty($product->thc)) THC (%): {{ Helper::showTHCOrCBD($product->thc) }} @endif @if(!empty($product->cbd)) CBD: {{ Helper::showTHCOrCBD($product->cbd) }} @endif

    @endif
    @if(!empty($product->flavors)) @php $flavors = json_decode($product->flavors, true); @endphp
    @foreach($flavors as $flavor) @php $flavor = trim(str_replace('U+', '&#x', $flavor['code'])) . ';'; @endphp {!! $flavor !!} @endforeach
    @endif @if(!empty($product->type)) {{ strtoupper($product->type) }} @endif