@extends('layouts.home') @section('content')

{{ $category->name }}

{{ $category->description }}

@forelse ($products as $index => $product)
@if ($product->image) {{ $product->name }} @else {{ $product->name }} @endif @php $discount = 0; if ($product->discount_price && $product->price > $product->discount_price) { $discount = round( (($product->price - $product->discount_price) / $product->price) * 100, ); } @endphp @if ($discount)
{{ $discount }}% OFF
@endif
{{ Str::limit($product->name, 30, '...') }}
@if ($product->description)
{{ Str::limit($product->description, 80, '...') }}
@endif @if ($product->is_stock_available)
In Stock
@else
Out of Stock
@endif
@if ($discount) {{ $product->discount_price }} @if ($config->currancy) ({{ $config->currancy }}) @endif {{ $product->price }} @if ($config->currancy) ({{ $config->currancy }}) @endif @else {{ $product->price }} @if ($config->currancy) ({{ $config->currancy }}) @endif @endif
@empty

No products found

Try adjusting your filters or search terms

Go Back
@endforelse
@endsection