{{--*/ $total_amount = 0 /*--}} @if(is_null($requisition_approval->requisitionApprovalItems)) @if(sizeof($requisition_approval->requisitionApprovalItems)>0) @foreach($requisition_approval->requisitionApprovalItems as $index=>$requisition_item) {{--*/ $total_amount += $requisition_item->quantity*$requisition_item->price /*--}} @endforeach @endif @endif @foreach($requisition_approval->cashRequisitionApprovalItems as $index=>$requisition_item) {{--*/ $total_amount += $requisition_item->amount /*--}} @endforeach
S/N Item UoM/Currency Quantity Price Amount
{{++$index}} {{$requisition_item->item_name}} ({{$requisition_item->description}}) {{$requisition_item->unit_of_measure}} {{number_format($requisition_item->quantity)}} {{$requisition_item->price}} {{number_format($requisition_item->quantity*$requisition_item->price,2)}}
{{++$index}} {{$requisition_item->account_name}} {{$requisition_item->currency}} {{number_format($requisition_item->quantity)}} {{$requisition_item->price}} {{number_format($requisition_item->amount,2)}}
{{number_format($total_amount,2)}}