@extends('layouts.app') @section('title', 'Inventory Movement History') @section('content')
| Date & Time | Type | Product | From Location | To Location | Quantity | Context |
|---|---|---|---|---|---|---|
|
{{ $movement->created_at->format('d M, Y') }}
{{ $movement->created_at->format('h:i A') }}
|
@php $colors = [ 'stock_inward' => ['color' => 'success', 'icon' => 'fa-arrow-down'], 'stock_adjustment' => ['color' => 'warning', 'icon' => 'fa-sliders'], 'transfer' => ['color' => 'info', 'icon' => 'fa-arrow-right-arrow-left'], 'event_handover' => ['color' => 'primary', 'icon' => 'fa-truck-fast'], 'order_dispatch' => ['color' => 'secondary', 'icon' => 'fa-box-open'] ]; $typeMeta = $colors[$movement->movement_type] ?? ['color' => 'secondary', 'icon' => 'fa-circle']; @endphp {{ ucwords(str_replace('_', ' ', $movement->movement_type)) }} |
{{ $movement->product->name ?? 'Unknown' }}
{{ $movement->product->code ?? '-' }}
|
@if($movement->from_location_type) @if($movement->from_location_type === 'warehouse') @else @endif {{ $movement->from_location_name }} @else — @endif | @if($movement->to_location_type) @if($movement->to_location_type === 'warehouse') @else @endif {{ $movement->to_location_name }} @else — @endif | {{ $movement->quantity > 0 ? '+' : '' }}{{ number_format($movement->quantity, 2) }} |
{{ $movement->performedBy->name ?? 'System' }}
{{ $movement->reason ?? 'No notes' }}
|
| No movement history found. | ||||||