Products

Products

Manage your inventory, prices and visibility

Add Product
{{-- Search Bar area --}}
@forelse($products as $product)
@php $primaryImage = $product->images->where('is_primary', true)->first(); $imagePath = $primaryImage ? asset('storage/' . $primaryImage->image_path) : asset('images/placeholder.svg'); @endphp
{{ $product->name }}

{{ $product->name }}

@csrf @method('DELETE')
@forelse($product->categories as $category) {{ $category->name }} @empty Uncategorized @endforelse

Price Range

@if($product->variants->count() > 0) @php $minPrice = $product->variants->min('price'); $maxPrice = $product->variants->max('price'); @endphp

৳{{ number_format($minPrice) }}@if($minPrice != $maxPrice)- {{ number_format($maxPrice) }}@endif

@else

No price set

@endif

Total Stock

{{ $product->variants->sum('stock_quantity') }} UNITS
@empty
No products found
@endforelse
{{ $products->links() }}