@extends('layouts.app') @section('title', 'Inventory') @section('breadcrumb') @endsection @section('content') {{-- Stats --}}
{{ number_format($totalVariants) }}
Total Variants
৳{{ number_format($inventoryValue, 0) }}
Stock Value
{{ $lowStockCount }}
Low Stock
{{ $outOfStockCount }}
Out of Stock
{{-- Alert for critical items --}} @if($outOfStockCount > 0)
{{ $outOfStockCount }} product(s) are completely out of stock. Consider creating purchase orders. View them →
@endif {{-- Filters --}}
{{-- Stock Table --}}
Stock Levels ({{ $variants->total() }}) {{ $lowStockCount }} low  |  {{ $outOfStockCount }} out  |  {{ $reorderCount }} need reorder
@can_permission('inventory.adjust') @endcan_permission @forelse($variants as $variant) @can_permission('inventory.adjust') @endcan_permission @empty @endforelse
Product / Variant SKU Category Cost Price Selling Price Current Stock Min Alert Reorder At StatusAdjust
{{ $variant->variant_name }}
@if($variant->product->brand)
{{ $variant->product->brand->name }}
@endif
{{ $variant->sku }} {{ $variant->product->category->name }} ৳{{ number_format($variant->cost_price, 2) }} ৳{{ number_format($variant->selling_price, 2) }} @if($variant->is_out_of_stock) 0 — OUT @elseif($variant->is_low_stock) {{ $variant->current_stock }} — LOW @else {{ $variant->current_stock }} @endif {{ $variant->min_stock_alert }} {{ $variant->reorder_level }} @if($variant->current_stock <= $variant->reorder_level && $variant->current_stock > 0) Reorder @elseif($variant->is_out_of_stock) Critical @else OK @endif
No inventory records found.
@if($variants->hasPages())@endif
{{-- Stock Adjustment Modal --}} @can_permission('inventory.adjust') @endcan_permission @endsection @push('scripts') @endpush