@guest
@endguest @auth
@endauth

{{ $product->product_name }}

{{-- {{ $product->shop_online_button }} @if ($product_price_enabled == true) ${{ $product->price }} @endif --}} @if ($product->shop_online_link) {{ $product->shop_online_button ?: 'Shop Online' }} @endif
{{ $product->product_name }} @php $discount = $product->discount_percentage; if (is_null($discount) && $product->price > 0 && $product->price > $product->final_price) { $discount = (($product->price - $product->final_price) / $product->price) * 100; } @endphp {{-- Discount Badge --}} @if ($discount && $product->is_deal_active) {{ round($discount) }}% OFF @endif {{-- @if ($product->discount_percentage && $product->is_deal_active) {{ round($product->discount_percentage) }}% OFF @endif --}}
@if ($product->is_deal_active)

${{ $product->price }} ${{ $product->final_price }}

@else

${{ $product->final_price }}

@endif {{-- Gallery --}} @if ($image_count > 0)
@endif @if ($video_count)
@endif
{{--
--}} {{--
--}}
{!! Purifier::clean($product->description) !!}
@if ($product->type === 'physical')
{{-- Sizes --}} {{-- @if (!empty($product->sizes)) --}} {{-- @if (count((array) $product->sizes) > 0) --}} @if (count(array_filter((array) $product->sizes)) > 0)

Sizes

@foreach ($product->sizes as $size) @endforeach
@endif {{-- Colors --}} {{-- @if (!empty($product->colors)) --}} @if (count(array_filter((array) $product->colors)) > 0)

Colors

@foreach ($product->colors as $color) @endforeach
@endif {{-- Styles --}} @if (count(array_filter((array) $product->styles)) > 0)

Styles

@foreach ($product->styles as $style) @endforeach
@endif {{-- Hidden inputs to pass to Add-to-Cart --}}
@endif @if ($product->is_deal_active)

${{ $product->price }} ${{ $product->final_price }}

@else

${{ $product->final_price }}

@endif
Add to Cart