@extends('layouts.app') @section('title', 'All Products - Prokriti Shop') @push('styles') @endpush @section('content')
@if(request('search'))
Results for: "{{ request('search') }}" Clear search
@else
Showing {{ $products->total() }} products
@endif
Filters
Categories
All Categories @foreach($categories as $category) {{ $category->name }} @endforeach
Price Range

All Products

Clear All Filters
@if($products->count() > 0)
@foreach($products as $product)
@if($product->mrp_price > $product->price) @php $discount = round((($product->mrp_price - $product->price) / $product->mrp_price) * 100); @endphp
-{{ $discount }}%
@endif @if($product->image) {{ $product->name }} @else
@endif
{{ Str::limit($product->name, 50) }}
৳{{ number_format($product->price, 0) }}
@if($product->mrp_price > $product->price)
৳{{ number_format($product->mrp_price, 0) }}
@endif
{{ $product->pv ?? $product->pv_value ?? 0 }} PV
{{ $product->stock_quantity > 0 ? $product->stock_quantity . ' in stock' : 'Out of stock' }}
View Details @if($product->stock_quantity > 0) @else @endif
@endforeach
{{ $products->appends(request()->query())->links() }}
@else

No Products Found

Try adjusting your search or filters.

Clear All Filters
@endif
@endsection @push('scripts') @endpush