{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if($product->images->count() > 0)
@else
@endif
@if($product->images->count() > 1)
@foreach($product->images as $index => $image)
@endforeach
@endif
{{ $product->name }}
@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
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)) !!} @elseNo detailed description available for this product.
@endif
@if(is_array($product->specifications) && count($product->specifications) > 0)
@foreach($product->specifications as $key => $value)
@else
| {{ ucfirst(str_replace('_', ' ', $key)) }} | {{ $value }} |
No detailed specifications available.
@endif