@extends('layouts.app') @section('title', $category->name . ' - Prokiti') @push('styles') @endpush @section('content')

{{ $category->name }}

{{ $category->description }}

{{ $products->total() }} products found

@if($products->count() > 0)
@foreach($products as $product)
@if($product->image) {{ $product->name }} @else
@endif
{{ Str::limit($product->name, 40) }}
৳{{ number_format($product->price, 2) }} @if($product->mrp_price) ৳{{ number_format($product->mrp_price, 2) }} @endif
{{ $product->pv ?? $product->pv_value ?? 0 }} PV
{{ $product->stock_quantity > 0 ? 'In Stock' : 'Out of Stock' }} {{ $product->sales_count ?? 0 }} sold
View Details @if($product->stock_quantity > 0) @else @endif
@endforeach
{{ $products->appends(request()->query())->links() }}
@else

No products found in this category

Try browsing other categories.

Browse All Products
@endif
@php $relatedCategories = \App\Models\Category::where('is_active', true) ->where('id', '!=', $category->id) ->limit(4) ->get(); @endphp @if($relatedCategories->count() > 0)

Browse Other Categories

@endif @endsection @push('scripts') @endpush