@extends('layouts.dashboard') @section('css') @endsection @section('sub-header') {{ __('Property Taxes Statement Report') .' - '. $hospitalitySector->getStudyName() . ' - ' . $hospitalitySector->getPropertyName() }} @endsection @section('content')
@if (session('warning'))
  • {{ session('warning') }}
@endif
@php $originalDates = $dates; @endphp {{-- {{ dd('d') }} --}} @foreach(getIntervalFormatted() as $intervalName=>$intervalNameFormatted) @php $dates = sumIntervalsIndexes($originalDates , $intervalName , $hospitalitySector->financialYearStartMonth(),$dateIndexWithDate); $dates = $hospitalitySector->convertArrayOfStringDatesToStringDatesAndDateIndex($dates,$dateIndexWithDate,$dateWithDateIndex); @endphp {{-- @if($intervalName =='annually') {{ dD }} @endif --}} {{-- {{ dd($reportItems) }} --}}
@slot('table_header') {{ __('Item') }} @foreach($dates as $dateAsString=>$dateAsIndex) {{ formatDateForView($dateAsString) }} @endforeach @endslot @slot('table_body') @foreach ( $reportItems[$intervalName]??[] as $reportName=>$datesAndValues) {{ str_replace(['_','-'],' ',$reportName) }} @foreach($dates as $dateAsString=>$dateAsIndex) {{ number_format(getValueFromArrayStringAndIndex($datesAndValues,$dateAsString,$dateAsIndex,0) ,0) }} @endforeach @endforeach @foreach($dates as $dateAsString=>$dateAsIndex) 0 @endforeach @endslot
@endforeach
@endsection @section('js') @endsection