Report Parameters
Report Parameters

@error('selectedBranch') {{ $message }} @enderror @if($branchSearchVisible == true)
  • @if(auth()->user()->access_scope == 0) @endif @if(auth()->user()->access_scope == 1 || auth()->user()->access_scope == 0) @endif @if(auth()->user()->access_scope == 2 || auth()->user()->access_scope == 0) @endif @if(auth()->user()->access_scope == 3 || auth()->user()->access_scope == 0) @endif @foreach($branch_selection as $branch) @endforeach
@endif
@error('start_date') {{ $message }} @enderror
@error('end_date') {{ $message }} @enderror
Generating Report..
Generating CSV File..
Payments Breakdown
Report Date: {{ date('M j, Y g:i:s a',strtotime(now()))}} Generated By: {{ auth()->user()->name}}
Coverage: {{date('M j, Y',strtotime($start_date))}} - {{date('M j, Y',strtotime($end_date))}}
*Note: Coverage date is based on Transaction Date.
@php $bCode = ''; $mop = ''; $branchCount = 0; $mopCount = 0; $isFirstBranch = false; $isFirstMop = false; $renderCounter = 0; @endphp @forelse ($data as $index => $d) @php if($d->branch_code == $bCode){ $isFirstBranch = false; $renderCounter += 1; }else{ $isFirstBranch = true; $bCode = $d->branch_code; $branchCount = $data->where('branch_code',$bCode)->count(); $renderCounter = 1; } if($d->mode_of_payment == $mop){ $isFirstMop = false; }else{ $isFirstMop = true; $mop = $d->mode_of_payment; $mopCount = $data->where('branch_code',$bCode)->where('mode_of_payment',$mop)->count(); } @endphp @if($isFirstBranch == true) @endif @if($isFirstMop == true) @endif @if($renderCounter == $branchCount) @endif @empty @endforelse @if(!empty($data)) @else @endif
Branch Code Branch MOP Type Count Amount
{{ $d->branch_code}} {{ $d->branch_name}}{{ $d->mode_of_payment}}{{ $d->type}} {{ $d->payment_count }} {{ number_format($d->total_amount,2) }}
SUB-TOTAL {{ number_format($data->where('branch_code',$bCode)->sum('total_amount'),2) }}
0 0.00
TOTAL {{ number_format($data->sum('total_amount'),2)}}
TOTAL 0.00
@push('custom-scripts') @endpush