@extends('layouts.main_without_top_button') @section('title') Inventory @stop @section('navigation') @stop @section('contentinner')
{{--*/ $inventory_value_in = 0 /*--}} {{--*/ $inventory_value_out = 0 /*--}} @foreach($inventories as $inventory) @if($inventory['type'] == 'DECREASE') {{--*/ $inventory_value_out += $inventory['quantity']*$inventory['price'] /*--}} @else {{--*/ $inventory_value_in += $inventory['quantity']*$inventory['price'] /*--}} @endif @endforeach
  Inward Outward
Date Reference Items Qnty Price Amount Qnty Price Amount
{{ \Carbon\Carbon::parse($inventory['date'])->toFormattedDateString()}} {{ $inventory['document_number']}} {{ $inventory['item_name']}} {{number_format($inventory['quantity'])}} {{number_format($inventory['price'],2)}} {{number_format($inventory['quantity']*$inventory['price'],2)}}{{number_format($inventory['quantity'])}} {{number_format($inventory['price'],2)}} {{number_format($inventory['quantity']*$inventory['price'],2)}}
VALUE INWARD {{number_format($inventory_value_in,2)}} VALUE OUTWARD {{number_format($inventory_value_out,2)}}
INVENTORY VALUE {{number_format($inventory_value_in-$inventory_value_out,2)}}
@stop