@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

{{ $product->name }}

@if($product->category) {{ $product->category->name }} @endif @if($product->brand) {{ $product->brand }} @endif @if($product->sku) SKU: {{ $product->sku }} @endif @if($product->model) Model: {{ $product->model }} @endif
@if($product->sale_price && $product->sale_price < $product->price) KSh {{ number_format($product->sale_price) }} KSh {{ number_format($product->price) }} @php $discount = round((($product->price - $product->sale_price) / $product->price) * 100); @endphp Save {{ $discount }}% @else KSh {{ number_format($product->price) }} @endif
@if($product->stock_status === 'in_stock') In Stock ({{ $product->stock_quantity }} available) @else Out of Stock @endif
@auth
@csrf
@else @endauth
Nationwide Delivery
{{ $product->warranty ?? '1 Year' }} Warranty
Installation Available
Technical Support
@if($product->short_description)

{{ $product->short_description }}

@endif @if($product->description) {!! nl2br(e($product->description)) !!} @else

No detailed description available for this product.

@endif
@if(is_array($product->specifications) && count($product->specifications) > 0) @foreach($product->specifications as $key => $value) @endforeach
{{ ucfirst(str_replace('_', ' ', $key)) }} {{ $value }}
@else

No detailed specifications available.

@endif
@if($relatedProducts->count() > 0) @endif