@php $HeaderArray = $ReturnArray['Headers']; $ResultArray = $ReturnArray['Results']; $PrimaryKey = $ReturnArray['Primarykey']; $ModuleTable = $ReturnArray['ModuleTable']; $loopcount = 1; $TotalAmount=0; @endphp @php $HeaderLoopcount = 0; @endphp @foreach($HeaderArray as $headers) @php $HeaderLoopcount++; @endphp @endforeach @foreach($ResultArray as $Results) @foreach($Results as $Key=>$Value) @if($Key == 'TotalAmount') @php $TotalAmount = $TotalAmount + $Value; @endphp @endif @endforeach @php $loopcount++; @endphp @endforeach @php @$HeaderLoopcount = $HeaderLoopcount-1; @endphp @if($TotalAmount > 0) @endif
Sl No @if($PrimaryKey == $headers) @if($GridType == 1) Action @endif @else {{$headers}} @endif
{{$loopcount}} @if($PrimaryKey == $Key) @if($GridType == 1) @endif @else {{$Value}} @endif
Total : {{$TotalAmount}}