@foreach ($reportData as $reportName => $reportTotalWithItsSubItemsArray)
@php
$currentTotal = 0 ;
$currentLoopItems = sumIntervalsIndexes(removeKeyFromArray($reportTotalWithItsSubItemsArray,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate);
@endphp
| {{ __($reportName) }} |
@foreach ($dates as $dateAsString=>$dateAsIndex)
{{ number_format($currentValue = getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0),0) }}
|
@php
$currentTotal+=$currentValue
@endphp
@endforeach
@php
$id = 1 ;
@endphp
@foreach($reportTotalWithItsSubItemsArray['subItems']??[] as $subItemName => $subItemsTotalsAndItesSubItems )
@php
$mainRowtotal = 0 ;
$currentLoopItems = sumIntervalsIndexes(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
@php
$order = 1 ;
@endphp
@foreach ( $subItemsTotalsAndItesSubItems['subItems']??[] as $subItemNameOfSubItem =>$subItemsTotalsAndItesSubItemsLast)
@php
$mainRowtotal = 0 ;
$currentLoopItems = sumIntervalsIndexes(removeKeyFromArray($subItemsTotalsAndItesSubItemsLast,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate);
@endphp
|
{{ __(str_replace('_',' ',$subItemNameOfSubItem)) }}
|
@foreach ($dates as $dateAsString=>$dateAsIndex)
{{ number_format(getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0) ,0) }}
|
@php
$mainRowtotal += getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0) ;
@endphp
@endforeach
@foreach ($subItemsTotalsAndItesSubItemsLast['subItems'] ?? [] as $subNameOfThirdSubItem => $subDatesAndValues)
@php
$currentLoopItems = sumIntervalsIndexes(removeKeyFromArray($subDatesAndValues,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate);
$subItemTotal = 0 ;
@endphp
|
{{ \App\Models\DepartmentExpense::getNameFromId($subNameOfThirdSubItem,$hospitalitySector->departmentExpenses) }}
|
@foreach ($dates as $dateAsString => $dateAsIndex)
{{ number_format(getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0) , 0)}}
|
@php
$subItemTotal += $subDatesAndValues[$date] ?? 0;
@endphp
@endforeach
@endforeach
@php
$order = $order +1 ;
@endphp
@endforeach