@extends('layouts.dashboard') @section('css') @endsection @section('sub-header') {{ __(ucfirst($type).' Disposable Inventory Statement Report') .' - '. $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($namesIncludesTotal as $nameIncludeTotal) @slot('table_header') {{ str_replace(['_','-'],' ',$nameIncludeTotal) }} @foreach ($dates as $fullDate=>$date) {{ formatDateForView($fullDate) }} @endforeach @endslot @slot('table_body') @foreach ($dashboardItems['inventoryStatements'][$type][$nameIncludeTotal][$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
@endforeach
@endsection @section('js') @endsection