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

{{ $totalItems }}

Total Stock Items

More info

{{ $totalCategories }}

Categories

More info

{{ $totalOfficers }}

Registered Officers

More info

{{ $recentTransactions }}

Total Transactions

More info
@if($lowStockItems->count() > 0)

Low Stock Alerts

@foreach($lowStockItems as $alertItem) @endforeach
Item Name Category Variation / Size Current Stock Min Threshold Action
{{ $alertItem->item->name }} {{ $alertItem->item->category->name }} {{ $alertItem->value }} {{ $alertItem->stock_quantity }} {{ $alertItem->item->min_stock_threshold }} Restock
@endif

Recent Transactions

@forelse($recentActivities as $activity) @empty @endforelse
Transaction Type Officer Item & Variation Qty Date
@if($activity->type == 'in') Stock In @elseif($activity->type == 'out') Issuance @else Receive Back @endif {{ $activity->officer->name ?? 'N/A' }} {{ $activity->itemVariation->item->name }} ({{ $activity->itemVariation->value }}) {{ $activity->quantity }} {{ $activity->created_at->format('M d, Y h:i A') }}
No recent transactions.
@endsection