@extends('layouts.app') @section('content')
@foreach($items as $item) @if(in_array(auth()->user()->station, json_decode($item->inactive_station)) == true) @continue @endif @endforeach
Item Category UOM Opening Stock Receipts Issues Closing
Balance
Actions
{{@ucwords(@strtolower($item->item_category))}} {{$item->item_unit}} {{ $opening = Collect($item->stock_open_close->pluck('stock_in'))->sum() - Collect($item->stock_open_close->pluck('stock_out'))->sum() }} {{ $recieved = Collect($item->stock->pluck('stock_in'))->sum() }} {{ $closing = Collect($item->stock->pluck('stock_out'))->sum() }} {{($opening + $recieved) - $closing}}
{{$items->links()}}
@endsection