@extends('layouts.master') @section('title', 'Inventory Stock Level Report') @section('content')
Back to Dashboard
Inventory Stock Level Report
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if(isset($stockData) && count($stockData) > 0)
@csrf
@php $currentItem = null; $itemShown = false; @endphp @foreach($stockData as $data) @if($currentItem != $data['item']->id) @if($currentItem !== null && $itemShown) @endif @php $currentItem = $data['item']->id; $currentItemCode = $data['item']->code; $currentItemDescription = $data['item']->description1; $itemShown = true; @endphp @endif @endforeach @if($currentItem !== null && $itemShown) @endif
Item Code Item Description Warehouse Category Qty Available
Total for {{ $currentItemCode }} - {{ $currentItemDescription }} {{ number_format($itemTotals[$currentItem], 2) }}
{{ $data['item']->code }} {{ $data['item']->description1 }} {{ $data['warehouse']->description ?? 'N/A' }} {{ $data['category']->name ?? 'N/A' }} {{ number_format($data['available_quantity'], 2) }}
Total for {{ $currentItemCode }} - {{ $currentItemDescription }} {{ number_format($itemTotals[$currentItem], 2) }}

Copyright © Melsoft (Private) Limited

@elseif(isset($stockData) && count($stockData) == 0)
No inventory transactions found for the selected criteria.
@endif
@endsection @section('styles') @endsection @section('scripts') @endsection