@extends('layouts.template') @section('template')

Current Stock Report VIPOS

@php $srl = 0; $sum = 0; @endphp @if(isset($current_stocks)) @foreach($brands as $key => $singleBrand) @php $inner_sum = 0; @endphp @foreach($current_stocks as $key => $stock) @if("$singleBrand->brand_name" == "$stock->brand_name") @php $inner_sum += $stock->count; $sum += $stock->count; @endphp @endif @endforeach @endforeach @endif
{{ $singleBrand->brand_name }}
{{ $stock->item_name }} {{ $stock->count }}
{{ $inner_sum }}
TOTAL {{$sum}}
@endsection