@if($product->category)
{{ $product->category->name }}
@endif
{{ $product->name }}
@php
$isQuoteOnly = ($product->price == 0 && $product->effective_price == 0);
$waRaw = \App\Models\Setting::get('home_whatsapp', '+254712315165');
$waNum = preg_replace('/[^0-9]/', '', $waRaw);
$productUrl = route('products.show', $product->slug);
$waMsg = urlencode(
'Redirected from "' . $productUrl . '"' . "\n\n" .
'Hi ECA Networks, I am interested in *' . $product->name . '*. Kindly share the price and availability.'
);
@endphp
@if(!$isQuoteOnly)
KES {{ number_format($product->effective_price) }}
@if($product->is_on_sale)
KES {{ number_format($product->price) }}
@php
$discount = round((($product->price - $product->sale_price) / $product->price) * 100);
@endphp
-{{ $discount }}%
@endif
@endif
@if($isQuoteOnly)
Talk to Us on WhatsApp
@elseif($product->stock > 0)
@else
@endif
{{-- Add to Quote (always visible) --}}