Total Barang
{{ $totalItems }}
Barang aktif
Stok Menipis
{{ $lowStockCount }}
Perlu diperhatikan
Pengajuan Diproses
{{ $pendingRestockCount }}
Pengajuan Anda
Transaksi Hari Ini
{{ $todayIncoming + $todayOutgoing }}
{{ $todayIncoming }} masuk · {{ $todayOutgoing }} keluar
@if ($lowStockItems->count())
@foreach ($lowStockItems as $item)
{{ $item->name }}
{{ $item->unit?->name ?? '-' }}
{{ rtrim(rtrim(number_format($item->stock, 2, ',', '.'), '0'), ',') }}
Min. {{ rtrim(rtrim(number_format($item->stock_min, 2, ',', '.'), '0'), ',') }}
@endforeach
@else
Stok aman
Tidak ada barang yang sedang menipis.
@endif
@if ($recentTransactions->count())
@foreach ($recentTransactions as $transaction)
{{ $transaction->item?->name ?? '-' }}
{{ $transaction->transaction_type === 'masuk' ? 'Barang Masuk' : 'Barang Keluar' }}
· {{ $transaction->activity?->created_at?->format('d M Y, H:i') ?? '-' }}
{{ $transaction->transaction_type === 'masuk' ? '+' : '-' }}{{ rtrim(rtrim(number_format($transaction->quantity, 2, ',', '.'), '0'), ',') }}
@endforeach
@else
Belum ada transaksi
Transaksi Anda akan tampil di sini.
@endif