@php $label = optional($product->label)->name; @endphp @if ($label)
{{ $label }}
@endif {{ $product->name }}

@php //reduce name string length to 20 chars and append ... $name = strlen($product->name) > 20 ? substr($product->name, 0, 20) . '...' : $product->name; @endphp {{ ucwords($name) }}

{{ $product->specification }} | {{ $product->sku }}
@php $discount = \App\Helpers\ProductsHelper::getProductPrice($product, true); $originalPrice = \App\Helpers\ProductsHelper::getProductPrice($product); $show_price = get_setting('show_price'); @endphp @if ($show_price == '1' || isCustomer())
£{{ $originalPrice }} @if (!empty($product->off_price) && $product->off_price > $originalPrice) £{{ $product->off_price }} @endif
@else @endif
@php $isExist = false; if (count($cartItems) > 0) { $isExist = $cartItems->where('product_id', $product->id)->first(); $qty = $isExist ? $isExist->quantity : 1; } else { $qty = $product->minimum_purchase_quantity ?? 1; } @endphp @if (!$isExist) @php $show_purchase_note = get_setting('show_purchase_note'); @endphp {{-- @if (auth()->check() && auth()->user()->status === 'pending') Your Status is Pending @elseif(auth()->check() && auth()->user()->status === 'blocked') You are Blocked @else --}} @if ($product->minimum_purchase_quantity > $product->quantity) Out of Stock @else @if ($show_purchase_note == '1' && !empty($product->purchase_note) && $product->show_purchase_note) Add to cart @else Add to cart @endif @endif {{-- @endif --}} @else
@endif
@include('frontend.partials.purchase-note-modal', $product)