Total Inventory Value
UGX {{ number_format($totalValue, 0) }}
{{ $valueChange ?? '0.0' }}% from last month
Active Items
{{ $totalItems }}
{{ $activeItems }} active, {{ $inactiveItems }} inactive
Low Stock Alerts
{{ $lowStockCount }}
Require immediate attention
@if($criticalCount > 0)
{{ $criticalCount }} critical items
@endif
Pending Orders
{{ $pendingOrders }}
{{ $pendingOrdersValue }} total value
@if($overdueOrders > 0)
{{ $overdueOrders }} overdue
@endif
No Categories Found
You need to set up categories before adding inventory items. Categories are used to organize both inventory items and vendors.
Inventory Items {{ $items->total() }}
@if(session('success'))
@endif
@if(isset($recentIssues) && $recentIssues->count() > 0)
@endif
@if($items->hasPages())
@endif
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if(session('category_sync'))
{{ session('category_sync') }}
@endif
@if(isset($reorderItems) && $reorderItems->count() > 0)
Reorder Alerts ({{ $reorderItems->count() }})
@foreach($reorderItems as $reorderItem)
{{ $reorderItem->name }}: {{ $reorderItem->quantity }} {{ $reorderItem->unit ?? 'units' }}
(reorder at {{ $reorderItem->reorder_point ?? $reorderItem->min_stock }})
@endforeach
@foreach($reorderItems as $reorderItem)
Order {{ \Illuminate\Support\Str::limit($reorderItem->name, 12) }}
@endforeach
Recent Stock Issues
Who took what and where it went| Item | Qty | Issued To | Department | Reason | Status | By | When | Action |
|---|---|---|---|---|---|---|---|---|
| {{ $issue->item->name ?? 'N/A' }} | {{ $issue->quantity }} {{ $issue->unit ?? 'units' }} | {{ $issue->issued_to_name }} | {{ $issue->issued_to_department ?: '-' }} | {{ $issue->reason }} | @if($issue->status === 'pending') Pending @elseif($issue->status === 'approved') Approved @elseif($issue->status === 'issued') Issued @else Rejected @endif | {{ $issue->issuer->name ?? 'System' }} | {{ optional($issue->issued_at)->diffForHumans() }} |
@if($issue->status === 'pending')
|
| Item | SKU | Category | Current Stock | Par Level | Unit Cost | Total Value | Status | Last Updated | Actions |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $item->name }}
@if($item->description)
{{ Str::limit($item->description, 50) }} @endif @if($item->department)
{{ ucfirst($item->department) }}
@endif
|
{{ $item->sku ?? 'N/A' }}
|
@if($item->category) @if(is_object($item->category)) {{ $item->category->name }} @else {{ $item->category }} @endif @else No Category @endif |
{{ $item->quantity }}
{{ $item->unit ?? 'units' }}
@if($item->quantity > 0 && $item->min_stock > 0)
@php
$percentage = min(100, ($item->quantity / $item->min_stock) * 100);
$color = $percentage >= 150 ? 'bg-success' : ($percentage >= 100 ? 'bg-primary' : ($percentage >= 50 ? 'bg-warning' : 'bg-danger'));
@endphp
|
{{ $item->min_stock }} | UGX {{ number_format($item->unit_price, 0) }} | UGX {{ number_format($item->total_value, 0) }} | @if($item->stock_status == 'in_stock') In Stock @elseif($item->stock_status == 'low_stock') Low Stock @else Out of Stock @endif | {{ $item->updated_at->diffForHumans() }} | |
No inventory items foundStart by adding your first inventory item @if($categories->isEmpty()) @endif |
|||||||||
Showing {{ $items->firstItem() }} to {{ $items->lastItem() }} of {{ $items->total() }} items
Low Stock Items {{ $lowStockItems->count() }}
@if($lowStockItems->isNotEmpty())
@else
@endif
| Item | Category | Current Stock | Minimum Required | Urgency | Recommended Order | Action |
|---|---|---|---|---|---|---|
|
{{ $item->name }}
{{ $item->sku ?? 'N/A' }} |
@if($item->category) @if(is_object($item->category)) {{ $item->category->name }} @else {{ $item->category }} @endif @else No Category @endif | {{ $item->quantity }} | {{ $item->min_stock }} | @php $percentage = ($item->quantity / $item->min_stock) * 100; if($item->quantity == 0) { $urgency = 'Critical'; $color = 'danger'; } elseif($percentage <= 25) { $urgency = 'High'; $color = 'danger'; } elseif($percentage <= 50) { $urgency = 'Medium'; $color = 'warning'; } else { $urgency = 'Low'; $color = 'info'; } @endphp {{ $urgency }} | {{ max($item->min_stock * 2 - $item->quantity, $item->min_stock) }} units | Order Now |
All items are well stocked!
No low stock items at the moment.
Recent Activity
@if($recentActivities->isNotEmpty())
@endif
@foreach($recentActivities as $activity)
@if($activity->reference_number)
@endforeach
@else
{{ $activity->item->name }}
{{ strtoupper($activity->type) }}
{{ $activity->created_at->diffForHumans() }}
Quantity Change:
{{ $activity->quantity_change > 0 ? '+' : '' }}{{ $activity->quantity_change }}
By:
{{ $activity->user->name ?? 'System' }}
Reference:
@endif
@if($activity->notes)
{{ $activity->reference_number }}
Notes:
@endif
{{ $activity->notes }}
No recent activity
Transactions will appear here as they occur.
Categories Management {{ $categories->count() }}
@if($categories->isNotEmpty())
@endif
@foreach($categories as $category)
@php
if (is_object($category)) {
$categoryId = $category->id;
$categoryName = $category->name;
$categoryType = $category->type ?? 'other';
$categoryActive = $category->is_active ?? false;
$categoryDescription = $category->description ?? '';
$categoryUpdatedAt = $category->updated_at ?? now();
$itemCount = $category->items_count ?? 0;
} else {
$categoryId = $loop->index;
$categoryName = $category;
$categoryType = 'other';
$categoryActive = true;
$categoryDescription = '';
$categoryUpdatedAt = now();
$itemCount = 0;
}
@endphp
@endforeach
@else
No Categories Found
Categories help organize your inventory items and vendors. Create your first category to get started.