Total Row: {{ $list->count() }}
Total Amount {{ $list->sum('amount') }} TK
@can('show_commission_reseller_balance_log')
Total Manager Miscellaneous Expense {{ $list->sum('commission') }} TK
@endcan
@can('reseller_balance_log_with_pop') @endcan @can('show_commission_reseller_balance_log') @endcan @can('show_commission_percentage_reseller_balance_log') @endcan @php $total = 0; $manger_commission = 0; @endphp @foreach ($list as $r) @can('reseller_balance_log_with_pop') @endcan @can('show_commission_reseller_balance_log') @endcan @can('show_commission_percentage_reseller_balance_log') @php if($r->amount != 0 && $r->reseller_commission_percentage != 0){ $this_row_commission = ($r->amount * $r->reseller_commission_percentage) / 100; }else{ $this_row_commission = 0; } $manger_commission += $this_row_commission; @endphp @endcan @endforeach @can('show_commission_reseller_balance_log') @endcan @can('show_commission_percentage_reseller_balance_log') @endcan
ID Date Reseller Name Pop Name User Name Action Amount Manager Miscellaneous Expense Manager Miscellaneous Expense Remarks
{{ $r->id }} {{ date('d-M-Y h:i:sa', strtotime($r->created_at)) }} {{ $r->reseller->name ?? '' }} {{ $r->pop->popname ?? '' }} {{ $r->client->userid ?? '' }} {{ $r->action ?? '' }} @php $total += $r->amount @endphp {{ $r->amount }} {{ $r->commission ?? 0 }} {{ $this_row_commission ?? 0 }} {{ $r->remarks }}
Total: {{ number_format($total, 2, '.', '') }}{{ number_format($list->sum('commission'), 2, '.', '') }} {{ $manger_commission ?? 0 }}
{{-- {{ $list->links() }} --}}