@extends('layouts.app') @section('title', 'Inventory') @section('breadcrumb') @endsection @section('content') {{-- Stats Cards --}}
{{ $products->count() }}
Total Products
{{ $products->where('track_stock', true)->count() }} tracking stock
{{ $lowStock->count() }}
Low Stock Items
Need reordering
Rs. {{ number_format($products->sum(fn($p) => $p->stock_quantity * $p->cost_price), 0) }}
Total Stock Value
At cost price
{{-- Low Stock Alerts --}} @if($lowStock->count() > 0)
Low Stock Alerts
{{ $lowStock->count() }} items
@foreach($lowStock->take(5) as $product) @endforeach
Product Current Stock Reorder Level Status Action
{{ $product->name }}
{{ $product->sku }}
{{ number_format($product->stock_quantity, 0) }} {{ $product->unit ?? 'pcs' }} {{ number_format($product->reorder_level, 0) }} {{ $product->unit ?? 'pcs' }} @if($product->stock_quantity <= 0) Out of Stock @else Low Stock @endif
@endif {{-- All Products Inventory --}}
All Products Stock
@forelse($products as $product) @empty @endforelse
Product Item Code Category Cost Price Stock Qty Stock Value Status Actions
@if($product->image) {{ $product->name }} @else @endif
{{ $product->name }}
@if($product->barcode) {{ $product->barcode }} @endif
{{ $product->sku ?? '-' }} {{ $product->category?->name ?? '-' }} Rs. {{ number_format($product->cost_price, 2) }} @if($product->track_stock) {{ number_format($product->stock_quantity, 0) }} {{ $product->unit ?? 'pcs' }} @else Not tracked @endif @if($product->track_stock) Rs. {{ number_format($product->stock_quantity * $product->cost_price, 2) }} @else - @endif @if(!$product->track_stock) No Track @elseif($product->stock_quantity <= 0) Out of Stock @elseif($product->stock_quantity <= $product->reorder_level) Low Stock @else In Stock @endif
@if($product->track_stock) @endif

No products found

{{-- Stock Adjustment Modal --}} @push('scripts') @endpush @endsection