@extends('docs.master', ['title' => 'Stock Report']) @section('content')
| Item Name: | {{$model[0]->item_name}} |
| Start Date: | {{date('d-m-Y',strtotime($model[0]->start_date))}} |
| End Date: | {{date('d-m-Y',strtotime($model[0]->end_date))}} |
| # | Item Name | Category Name | Unit Price | Currency | Opening Balance | Stock In | Stock Out | Balance |
|---|---|---|---|---|---|---|---|---|
| {{$i++}} | {{ $item->item_name}} | {{ $item->categoryname}} | {{ number_format($item->unit_price)}} | {{ $item->currency_name}} | {{ $item->opening_balance }} | {{ $item->stock_in}} | {{ $item->stock_out}} | {{ $item->balance}} |
| Total | {{$model[0]->opening_balance}} | {{$model->sum('stock_in')}} | {{$model->sum('stock_out')}} | {{ ($model[0]->opening_balance + $model->sum('stock_in'))-$model->sum('stock_out')}} | ||||