@php $sumMethodAsHelper = isset($sumMethodAsHelper) ? $sumMethodAsHelper : 'sumIntervalsIndexes'; @endphp @foreach ($reportData as $reportName => $reportTotalWithItsSubItemsArray) @if(true) @php $currentTotal = 0 ; $currentLoopItems = $sumMethodAsHelper(removeKeyFromArray($reportTotalWithItsSubItemsArray,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); @endphp {{ __($reportName) }} @foreach ($dates as $dateAsString=>$dateAsIndex) @if($reportName == 'Accumulated Net Cash') {{ number_format($currentValue = getValueFromArrayStringAndIndex(\App\Helpers\HArr::accumulateArray($reportData['Net Cash Report']),$dateAsString,$dateAsIndex,0) ,0) }} @else {{ number_format($currentValue = getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0) ,0) }} @endif @php $currentTotal+=$currentValue; @endphp @endforeach @php $id = 2 ; @endphp @foreach($reportTotalWithItsSubItemsArray['subItems']??[] as $subItemName => $subItemsTotalsAndItesSubItems ) @php $mainRowtotal = 0 ; $currentLoopItems = $sumMethodAsHelper(removeKeyFromArray($subItemsTotalsAndItesSubItems,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); @endphp
@if(count($subItemsTotalsAndItesSubItems['subItems'] ?? [])) @endif {{ __($subItemName) }}
@foreach ($dates as $dateAsString=>$dateAsIndex) {{ number_format($currentValue=getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0),0) }} @php $mainRowtotal += $currentValue ; @endphp @endforeach @foreach ($subItemsTotalsAndItesSubItems['subItems'] ?? [] as $subName => $subDatesAndValues) @php $subItemTotal = 0 ; $currentLoopItems = $sumMethodAsHelper(removeKeyFromArray($subDatesAndValues,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); @endphp {{-- --}} {{ $subName }} @foreach ($dates as $dateAsString=>$dateAsIndex) {{ number_format($currentValue=getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0) , 0)}} @php $subItemTotal += $currentValue; @endphp @endforeach @endforeach
Warning: Undefined variable $id in /home/cfostools/public_html/cfohotel.evoqas.com/resources/views/components/tables/table-with-no-sub.blade.php on line 98
@endforeach @endif @endforeach