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