@foreach($formattedDates as $dateAsIndex=>$dateAsString) @endforeach @foreach($formattedResults as $title => $values) @php // $key ='cost-of-service'; // $currentModalId = $key.'-modal-id'; $currentModalTitle = $title ; @endphp
{{--
@include('non_banking_services.dashboard._expense-modal',['currentModalId'=>$currentModalId,'modalTitle'=>$currentModalTitle,'modalData'=>$values])
--}} {{-- --}}
@php $columnIndex = 0 ; @endphp @foreach($formattedDates as $dateAsIndex=>$dateAsString) @php $isPercentage = $title == 'Variance %' ; $currentVal = !$isPercentage ? ($values[$dateAsIndex]??0)/1000 : $values[$dateAsIndex]??0 ; $prefix = $isPercentage ? ' %' : ''; @endphp
@php $columnIndex++ ; @endphp @endforeach @endforeach