⚠️ Low Stock Inventory

Device models with stock count below 5 units

@if($inventories->count() > 0)

Low Stock Alert

The following device models have low stock levels (less than 5 units). Consider restocking soon to avoid inventory shortages.

@endif
@forelse($inventories as $inventory) @php $deviceModel = \App\Models\DeviceModel::find($inventory->device_model_id); $stockCount = $inventory->stock_count; $devices = \App\Models\Inventory::where('device_model_id', $inventory->device_model_id) ->where('status', 'in_stock') ->get(); $avgPrice = $devices->avg('purchase_price') ?? 0; $totalValue = $devices->sum('purchase_price') ?? 0; @endphp @empty @endforelse
Device Model Manufacturer Stock Count Status Unit Price Total Value Actions

{{ $deviceModel->name ?? 'Unknown Model' }}

@if($deviceModel && $deviceModel->model_number)

Model: {{ $deviceModel->model_number }}

@endif
{{ $deviceModel->manufacturer ?? 'N/A' }}
@if($stockCount <= 2) ❌ {{ $stockCount }} units @elseif($stockCount <= 4) ⚠️ {{ $stockCount }} units @else {{ $stockCount }} units @endif
@if($stockCount <= 2) Critical @elseif($stockCount <= 4) Low Stock @else Monitor @endif @if($avgPrice > 0) PKR {{ number_format($avgPrice, 2) }} @else N/A @endif @if($totalValue > 0) PKR {{ number_format($totalValue, 2) }} @else N/A @endif

All Stock Levels are Good!

All device models have adequate stock (5 or more units).

View All Inventory
@if($inventories->count() > 0)

Critical Stock (≤2 units)

{{ $inventories->where('stock_count', '<=', 2)->count() }}

Low Stock (3-4 units)

{{ $inventories->where('stock_count', '>', 2)->where('stock_count', '<=', 4)->count() }}

Models Needing Attention

{{ $inventories->count() }}

Recommended Actions:

  • Review critical stock items (2 units or less) immediately
  • Contact suppliers to order more units for low stock items
  • Use bulk import feature to quickly add multiple devices
  • Consider setting up automatic reorder points for popular models
  • Monitor sales trends to predict future stock requirements
@endif @if($inventories->count() > 0) @endif