Quantity Sold Per Hour{{isset($selectedBranch) ? $selectedBranch : ''}} |
|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Report Date: {{ date('M j, Y g:i:s a',strtotime(now()))}} | Generated By: {{ auth()->user()->name}} | ||||||||||||
| Coverage: {{date('M j, Y',strtotime($transaction_date))}} | |||||||||||||
| *Note: Coverage date is based on Transaction Date. | |||||||||||||
|
|
|||||||||||||
@php
$filteredQuantity = array_filter($sold_per_hour_counts, function ($value) {
return $value !== 0;
});
function findMaxValueIndex($array) {
$maxValue = max($array);
if($maxValue == 0) return [];
return array_keys($array,$maxValue);
}
$peaks = findMaxValueIndex($sold_per_hour_counts);
@endphp
|
|||||||||||||
|
|||||||||||||