@extends('layouts.dashboard') @section('css') @endsection @section('dash_nav') @endsection @section('sub-header') {{ __('Cash In & Out Flow Report') .' - '. $hospitalitySector->getStudyName() . ' - ' . $hospitalitySector->getPropertyName() }} @endsection @section('content')
@if (session('warning'))
  • {{ session('warning') }}
@endif
@php $originalDates = $dates; @endphp @foreach(getIntervalFormatted() as $intervalName=>$intervalNameFormatted) @php $interval = $intervalName ; @endphp @php $dates = sumIntervalsIndexes($originalDates , $intervalName , $hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); $dates = $hospitalitySector->convertArrayOfStringDatesToStringDatesAndDateIndex($dates,$dateIndexWithDate,$dateWithDateIndex); @endphp
@slot('table_header') {{ __('Item Name') }} @foreach ($dates as $dateAsString=>$dateAsIndex) @if($intervalName == 'annually') {{ 'Yr-'.explode('-',$dateAsString)[2] }} @else {{ formatDateForView($dateAsString) }} @endif @endforeach @foreach ($dates as $dateAsString=>$dateAsIndex) @endforeach @endslot @slot('table_body') @foreach ($reportItems['cashInReport']??[] as $reportName => $reportTotalWithItsSubItemsArray) @php $currentLoopItems = sumIntervalsIndexes(removeKeyFromArray($reportTotalWithItsSubItemsArray,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); @endphp @php $currentTotal = 0 ; @endphp {{ __($reportName) }} @foreach ($dates as $dateAsString=>$dateAsIndex) {{ number_format($currentValue =getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0),0) }} @php $currentTotal+=$currentValue @endphp @endforeach @php $id = 0 ; @endphp @foreach($reportTotalWithItsSubItemsArray['subItems']??[] as $subItemName => $subItemsTotalsAndItesSubItems ) @php $currentLoopItems = sumIntervalsIndexes(removeKeyFromArray($subItemsTotalsAndItesSubItems,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); @endphp @php $mainRowtotal = 0 ; @endphp
{{ __($subItemName) }}
@foreach ($dates as $dateAsString=>$dateAsIndex) {{ number_format(getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0),0) }} @php $mainRowtotal += $currentLoopItems[$dateAsString] ?? 0 ; @endphp @endforeach @foreach ($subItemsTotalsAndItesSubItems['subItems'] ?? [] as $subName => $subDatesAndValues) @php $currentLoopItems = sumIntervalsIndexes(removeKeyFromArray($subDatesAndValues,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); @endphp @php $subItemTotal = 0 ; @endphp {{-- --}} {{ \App\Models\DepartmentExpense::getNameFromId($subName,$hospitalitySector->departmentExpenses,'Total '.explode(' ',$subItemName)[1]) }} @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/admin/hospitality-sector/cash-in-out-report.blade.php on line 388
@endforeach @endforeach {{-- {{ __('Collapse') }} --}} @foreach ($dates as $dateAsString=>$dateAsIndex) @endforeach {{-- --}} @foreach ($reportItems['cashOutReport']??[] as $reportName => $reportTotalWithItsSubItemsArray) @php $currentLoopItems = sumIntervalsIndexes(removeKeyFromArray($reportTotalWithItsSubItemsArray,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); @endphp @php $currentTotal = 0 ; @endphp {{ __($reportName) }} @foreach ($dates as $dateAsString=>$dateAsIndex) {{ number_format($currentValue = getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0) ,0) }} @php $currentTotal+=$currentValue @endphp @endforeach @foreach($reportTotalWithItsSubItemsArray['subItems']??[] as $subItemName => $subItemsTotalsAndItesSubItems ) @php $currentLoopItems = sumIntervalsIndexes(removeKeyFromArray($subItemsTotalsAndItesSubItems,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); @endphp @php $mainRowtotal = 0 ; @endphp
{{ __($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 $currentLoopItems = sumIntervalsIndexes(removeKeyFromArray($subDatesAndValues,'subItems'),$interval,$hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); @endphp @php $subItemTotal = 0 ; @endphp {{-- --}} {{ \App\Models\DepartmentExpense::getNameFromId($subName,$hospitalitySector->departmentExpenses,'Total Collection') }} @foreach ($dates as $dateAsString=>$dateAsIndex) {{ number_format($currentValue =getValueFromArrayStringAndIndex($currentLoopItems,$dateAsString,$dateAsIndex,0) , 0)}} @php $subItemTotal += $currentValue ; @endphp @endforeach @endforeach @endforeach @endforeach @include('components.tables.table-with-no-sub',[ 'reportData'=>$reportItems['netCash']??[], 'interval'=>$intervalName ]) @endslot
@endforeach
@endsection @section('js') @endsection