@extends('layouts.app') @section('title', 'Stock Movements') @section('breadcrumb') @endsection @section('content')
Movement Log ({{ $movements->total() }})
@forelse($movements as $movement) @empty @endforelse
Date & Time Product / Variant Type Direction Qty Before After Reference By
{{ $movement->created_at->format('d M Y H:i') }}
{{ $movement->productVariant->product->name }}
{{ $movement->productVariant->variant_name }}
@php $tc = ['purchase'=>'success','sale'=>'primary','adjustment'=>'warning','return'=>'info','damage'=>'danger','loss'=>'danger','transfer'=>'secondary']; @endphp {{ ucfirst($movement->movement_type) }} {{ strtoupper($movement->direction) }} {{ $movement->direction === 'in' ? '+' : '-' }}{{ $movement->quantity }} {{ $movement->before_qty }} {{ $movement->after_qty }} {{ $movement->reference ?? '—' }} {{ $movement->creator->name }}
No stock movements found.
@if($movements->hasPages())@endif
@endsection