@extends('layouts.main_without_top_button') @section('title') Inventory @stop @section('navigation')
@stop @section('contentinner')Inward | Outward | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Date | Reference | Items | Qnty | Price | Amount | Qnty | Price | Amount | ||||||
{{ \Carbon\Carbon::parse($inventory['date'])->toFormattedDateString()}} | {{ $inventory['document_number']}} | {{ $inventory['item_name']}} | @if($inventory['type'] == 'DECREASE'){{number_format($inventory['quantity'])}} | {{number_format($inventory['price'],2)}} | {{number_format($inventory['quantity']*$inventory['price'],2)}} | {{--*/ $inventory_value_out += $inventory['quantity']*$inventory['price'] /*--}} @else{{number_format($inventory['quantity'])}} | {{number_format($inventory['price'],2)}} | {{number_format($inventory['quantity']*$inventory['price'],2)}} | {{--*/ $inventory_value_in += $inventory['quantity']*$inventory['price'] /*--}}@endif @endforeach | |||||
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)}} |