@extends('layouts.admin') @section('title', 'Inventory Management') @section('content')

{{ $supermarket->name }} - Inventory Management

{{ $products->total() }}

Total Products

{{ $products->where('stock_quantity', '<=', 'minimum_stock')->count() }}

Low Stock Items

{{ $products->where('stock_quantity', '<=', 0)->count() }}

Out of Stock

{{ $products->where('on_sale', true)->count() }}

On Sale

@forelse($products as $product) @empty @endforelse
Image Product Name Brand SKU Category Aisle Price (AED) Stock Status Actions
@if($product->image) {{ $product->name }} @else
@endif
{{ $product->name }}
{{ $product->barcode ?? 'No barcode' }}
@if($product->brand) {{ $product->brand }} @else No brand @endif {{ $product->sku }} @if($product->mainCategory) {{ $product->mainCategory->name }} @endif @if($product->subCategory)
{{ $product->subCategory->name }} @endif @if(!$product->mainCategory && !$product->subCategory) Uncategorized @endif
@if($product->aisle) {{ $product->aisle->aisle_number }}: {{ $product->aisle->aisle_name }} @else No aisle @endif AED {{ number_format($product->price, 2) }} @if($product->sale_price && $product->sale_price < $product->price)
Sale: AED {{ number_format($product->sale_price, 2) }} @endif
{{ $product->stock_quantity }} @if($product->minimum_stock) / min: {{ $product->minimum_stock }} @endif @if($product->stock_quantity <= 0) Out of Stock @elseif($product->stock_quantity <= $product->minimum_stock) Low Stock @else In Stock @endif @if($product->on_sale)
On Sale @endif @if($product->is_featured)
Featured @endif
@csrf @method('DELETE')
No products found

Add some products to get started.

@if($products->hasPages())
{{ $products->appends(request()->query())->links() }}
@endif
@endsection