{{ $loop->iteration }}
{{ $item->reseller->id ?? 'N/A' }}
{{ $item->reseller->name ?? 'N/A' }}
{{ $item->reseller->bank_account_no ?? 'N/A' }}
{{ $item->reseller->account_name ?? 'N/A' }}
{{ $item->reseller->bank_name ?? 'N/A' }}
{{ $item->reseller->branch_name ?? 'N/A' }}
{{ $item->reseller->routing_number ?? 'N/A' }}
@php $total += $item->total_amount @endphp
{{ number_format($item->total_amount, 2) }}
@can('show_commission_rate_reseller_balance_log')
{{ $item->reseller_commission_percentage ?? 'N/A' }}%
@endcan
@can('show_commission_reseller_balance_log')
@php $totalCommission += $item->total_commission_amount @endphp
{{ number_format($item->total_commission_amount, 2) }}
@endcan
@can('show_commission_percentage_reseller_balance_log')
@php $totalCalculatedCommission += $item->calculated_commission_amount @endphp
{{ number_format($item->calculated_commission_amount, 2) }}
@endcan
@can('change_commission_percentage_reseller_balance_log')
{{-- The row identifies exactly which balance log rows get rewritten:
this manager + this old rate, inside the searched date range. --}}
@if ($item->reseller)
Rate
@else
N/A
@endif
@endcan
@empty
@endforelse
Total:
{{ number_format($total, 2) }}
@can('show_commission_rate_reseller_balance_log')
@endcan
@can('show_commission_reseller_balance_log')
{{ number_format($totalCommission, 2) }}
@endcan
@can('show_commission_percentage_reseller_balance_log')
{{ number_format($totalCalculatedCommission, 2) }}
@endcan
@can('change_commission_percentage_reseller_balance_log')
@endcan