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

{{ $searchTitle ?? 'All Products' }}

{{ $searchSubtitle ?? 'Browse our complete collection' }}

@if (request('q')) @endif @if (request('categories')) @foreach (request('categories') as $category) @endforeach @endif @if (request('stock_filter')) @endif
@if (request('q')) @endif @if (request('qmobile')) @endif
Filter by Category
@if (count($categories) > 0) @foreach ($categories as $category)
name, request('categories', [])) ? 'checked' : '' }}>
@endforeach @endif
Filter by Stock
Showing {{ $products->count() }} products
@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

View All Products
@endforelse
@if($products->hasPages())
{{ $products->links('components.pagination') }}
@endif
@endsection