@extends('layouts.app') @section('title', 'Stock Movement Report') @section('breadcrumb') @endsection @section('content') @include('reports.partials.date-filter')
{{ number_format($totals->total_movements) }}
Total Movements
+{{ number_format($totals->total_in) }}
Total In
-{{ number_format($totals->total_out) }}
Total Out
By Movement Type
@foreach($byType as $bt) @endforeach
TypeDirectionCountTotal Qty
{{ ucfirst($bt->movement_type) }} {{ strtoupper($bt->direction) }} {{ $bt->count }} {{ $bt->direction === 'in' ? '+' : '-' }}{{ number_format($bt->total_qty) }}
Movement Log ({{ $movements->total() }})
@forelse($movements as $m) @empty @endforelse
Date & TimeProductTypeDirectionQtyBeforeAfterReferenceBy
{{ $m->created_at->format('d M Y H:i') }}
{{ $m->productVariant->product->name }}
{{ $m->productVariant->variant_name }}
{{ ucfirst($m->movement_type) }} {{ strtoupper($m->direction) }} {{ $m->direction === 'in' ? '+' : '-' }}{{ $m->quantity }} {{ $m->before_qty }} {{ $m->after_qty }} {{ $m->reference ?? '—' }} {{ $m->creator->name }}
No movements in this period
@if($movements->hasPages())@endif
@endsection