@extends('layout.app') @section('content')

Grand Total Quantity: {{ $grandTotal }}

@foreach ($list as $r) {{-- --}} @endforeach
ID Item Name Category Name Stock Quantity Action
{{ $r->id }} {{ $r->name ?? '' }} {{ $r->category->name ?? '' }} {{ $r->stockIn->sum('quantity') - $r->stockOut->sum('quantity') + $r->itemReturn->sum('qty') - $r->itemAdjustment->sum('quantity') }} {{ \App\Classes\AvailableStockCalculation::item_id($r->item_id) }}
@if ($r->serial_number == 'enable') Show Serial Number @endif
{{--
{{ $list->links() }}
--}}
@endsection