@extends('layouts.app') @section('title', 'Inventory Dashboard') @section('content')

Inventory Management Dashboard

Complete inventory tracking and management system

{{ $stats['total_products'] }}

Total Products

{{ $stats['total_categories'] }}

Categories

{{ $stats['total_suppliers'] }}

Suppliers

{{ $stats['low_stock_products'] }}

Low Stock

{{ $stats['total_sales'] }}

Total Sales

BDT{{ number_format($stats['total_inventory_value'], 2) }}

Inventory Value
Recent Products
View All
@if($recentProducts->count() > 0) @foreach($recentProducts as $product)
{{ $product->name }}
{{ $product->category->name ?? 'No Category' }} Qty: {{ $product->quantity }}
BDT{{ number_format($product->sale_price ?? 0, 2) }}
@endforeach @else

No products found

@endif
Recent Sales
{{ $recentSales->count() }}
@if($recentSales->count() > 0) @foreach($recentSales as $sale)
{{ $sale->product->name }}
Qty: {{ $sale->quantity }} {{ $sale->customer_name ?? 'Walk-in' }}
BDT{{ number_format($sale->sale_price ?? 0, 2) }}
@endforeach @else

No sales found

@endif
Low Stock Alert
{{ $lowStockProducts->count() }}
@if($lowStockProducts->count() > 0) @foreach($lowStockProducts as $product)
{{ $product->name }}
{{ $product->category->name ?? 'No Category' }}
{{ $product->quantity }} left
@endforeach @else

All products are well stocked

@endif
@endsection