@extends('layouts.admin') @push('styles') @endpush @section('content')
Refresh

Inventory Movement Report

@php $sl = 1; $totalOpening = 0; $totalPurchase = 0; $totalUsage = 0; $totalClosing = 0; $totalHoBalance = 0; $totalDifference = 0; @endphp @foreach ($reportData as $stock) @php $totalOpening += $stock->opening_qty; $totalPurchase += $stock->purchase_qty; $totalUsage += $stock->usage_qty; $totalClosing += $stock->closing_qty; $totalHoBalance += $stock->ho_balance; $totalDifference += $stock->difference; @endphp {{-- ✅ highlight difference --}} @endforeach
SL Category Product Name OP. Stock Pur. Qty Usage Qty Clo. Qty HO Balance Difference
{{ $sl++ }} {{ $stock->cat_name }} {{ $stock->product_name }} {{ $stock->opening_qty }} {{ $stock->purchase_qty }} {{ $stock->usage_qty }} {{ $stock->closing_qty }} {{ $stock->ho_balance }} {{ $stock->difference }}
Total {{ $totalOpening }} {{ $totalPurchase }} {{ $totalUsage }} {{ $totalClosing }} {{ $totalHoBalance }} {{ $totalDifference }}
@endsection @push('scripts') @endpush