@extends('admin.admin_dashboard') @section('admin')
{{-- Statistics Cards --}}

{{ $totalProducts }}

Total Products

{{ $lowStockCount }}

Low Stock Items

{{ $outOfStockCount }}

Out of Stock

৳{{ number_format($totalValue, 0) }}

Total Stock Value
{{-- Filters --}}

Filters

Reset
{{-- Stock Table --}}

Stock Details

@forelse($products as $product) @empty @endforelse @if($products->count() > 0) @endif
# Code Product Name Category Current Stock Reorder Level Cost Price Selling Price Stock Value Status
{{ $loop->iteration }} {{ $product->code }} {{ $product->name }} @if($product->barcode)
{{ $product->barcode }} @endif
{{ $product->category->name ?? 'N/A' }} {{ $product->current_stock }} {{ $product->unit }} {{ $product->reorder_level }} ৳{{ number_format($product->cost_price, 2) }} ৳{{ number_format($product->selling_price, 2) }} ৳{{ number_format($product->current_stock * $product->cost_price, 2) }} @if($product->current_stock <= 0) Out of Stock @elseif($product->current_stock <= $product->reorder_level) Low Stock @else In Stock @endif
No products found
Total Stock Value: ৳{{ number_format($totalValue, 2) }}
@endsection @section('customjs') @endsection