@extends('layouts.app') @section('content')
Item | Category | UOM | Opening Stock | Receipts | Issues | Closing Balance |
Actions |
---|---|---|---|---|---|---|---|
{{@ucwords(@strtolower($item->item_name))}}
{{$item->item_code}} |
{{@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}} |
|