@extends('backEnd.layouts.master') @section('title', 'Inventory Management') @section('content')
| # | Product | Category | SKU | Price | Purchase Cost | Stock | Status | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ ($products->currentPage() - 1) * $products->perPage() + $i + 1 }} |
@if($product->thumbnail)
{{ Str::limit($product->name, 35) }}
@if($activeVariants->isNotEmpty())
{{ $activeVariants->count() }} variants
@endif
|
{{ $product->category?->name ?? '—' }} | {{ $product->sku ?? '—' }} |
৳{{ number_format($product->sale_price ?? $product->price) }} | @if($product->purchase_price) ৳{{ number_format($product->purchase_price) }} @else — @endif | {{ $displayStock }} units | @if($displayStock <= 0) Out of Stock @elseif($displayStock <= 5) Low Stock @else In Stock @endif | |
| {{ $variant->label() }} | {{ $variant->sku ?? '—' }} |
— | @if($variant->purchase_price) ৳{{ number_format($variant->purchase_price) }} @elseif($product->purchase_price) ৳{{ number_format($product->purchase_price) }} (base) @else — @endif | {{ $variant->stock }} | ||||
| @if(request()->filled('search') || request()->filled('stock_filter')) No products match your search. @else No products found. @endif | ||||||||