@php $resellerTotal = $resellerLogs->sum('amount'); $subResellerTotal = $subResellerLogs->sum('amount'); @endphp {{-- STAT HEADER / TABS --}}
@can('reseller-balance-log-report')
Reseller Recharge {{ number_format(abs($resellerTotal), 2) }} TK {{ $resellerLogs->count() }} records
@endcan @can('sub-reseller-balance-log-report')
Sub-Reseller Recharge {{ number_format(abs($subResellerTotal), 2) }} TK {{ $subResellerLogs->count() }} records
@endcan
{{-- RESELLER LOG PANE --}} @can('reseller-balance-log-report')
@if($resellerLogs->isEmpty())
No reseller recharge records found.
@else @foreach($resellerLogs as $log) @endforeach
ID Date Action Remarks Amount
#{{ $log->id }}
{{ \Carbon\Carbon::parse($log->created_at)->format('d M Y') }}
{{ \Carbon\Carbon::parse($log->created_at)->format('h:i A') }}
{{ $log->action }}
{{ $log->remarks ?? '—' }}
@if($log->amount >= 0) {{ number_format($log->amount, 2) }} @else {{ number_format($log->amount, 2) }} @endif
Total {{ number_format($resellerTotal, 2) }} TK
@endif
@endcan {{-- SUB-RESELLER LOG PANE --}} @can('sub-reseller-balance-log-report')
@if($subResellerLogs->isEmpty())
No sub-reseller recharge records found.
@else @foreach($subResellerLogs as $log) @endforeach
ID Date Action Remarks Amount
#{{ $log->id }}
{{ \Carbon\Carbon::parse($log->created_at)->format('d M Y') }}
{{ \Carbon\Carbon::parse($log->created_at)->format('h:i A') }}
{{ $log->action }}
{{ $log->remarks ?? '—' }}
@if($log->amount >= 0) {{ number_format($log->amount, 2) }} @else {{ number_format($log->amount, 2) }} @endif
Total {{ number_format($subResellerTotal, 2) }} TK
@endif
@endcan