Report Parameters
Report Parameters

@error('selectedBranch') {{ $message }} @enderror @if($branchSearchVisible == true)
  • @foreach($branches as $branch) @endforeach
@endif
@error('transaction_date') {{ $message }} @enderror
Generating Report..
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
Min: {{ count($filteredQuantity) > 0 ?min($filteredQuantity) : '0'}}
Max: {{ count($filteredQuantity) > 0 ? max($filteredQuantity) : '0'}}
Peak Hour:
@forelse($peaks as $peak) Hour {{$peak.':00'}}@if(!$loop->last), @endif @empty None @endforelse
@foreach($data as $d) @endforeach
Hour: {{ $d->transaction_hour}}:00 Total Sold: {{$d->total_sold}}
@foreach($data_b->where('transaction_hour',$d->transaction_hour) as $d_b) @endforeach
Item Code Item Name Qty
{{$d_b->item_code}} {{$d_b->item_name}} {{$d_b->sum_quantity}}
@push('custom-scripts') @endpush