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