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