@forelse(($recentMovements ?? collect())->take(8) as $movement)
@php
$typeConfig = [
'IN' => ['icon' => 'đĨ', 'class' => 'in', 'label' => 'Received'],
'OUT' => ['icon' => 'đ¤', 'class' => 'out', 'label' => 'Delivered'],
'TRANSFER' => ['icon' => 'đ', 'class' => 'transfer', 'label' => 'Transfer'],
'RETURN' => ['icon' => 'âŠī¸', 'class' => 'return', 'label' => 'Return'],
'ADJUSTMENT' => ['icon' => 'âī¸', 'class' => 'adjust', 'label' => 'Adjusted'],
];
$config = $typeConfig[$movement->movement_type] ?? ['icon' => 'đĻ', 'class' => 'in', 'label' => $movement->movement_type];
$isPositive = $movement->qty >= 0;
@endphp
{{ $config['icon'] }}
{{ $movement->product->name ?? 'Unknown' }}
{{ $movement->reference_no }} âĸ {{ $movement->warehouse->name ?? '' }}
@empty
đ
No Recent Activity
Stock movements will appear here
@endforelse