Total Row: {{ $list->count() }}
Total Amount: {{ $list->sum('amount') }}
@can('show_reseller_cost_in_pop')
Total Reseller Amount: {{ $list->sum('reseller_cost') }}
@endcan @can('show_reseller_cost_in_pop')
Total Sub Manager Miscellaneous Expense {{ $list->sum('commission') }}
@endcan
@can('show_reseller_cost_in_pop') @endcan @can('show_commission_sub_reseller_balance_log') @endcan @php $total = 0; @endphp @foreach ($list as $r) @can('show_reseller_cost_in_pop') @endcan @can('show_commission_sub_reseller_balance_log') @endcan @endforeach @can('show_reseller_cost_in_pop') @endcan @can('show_commission_sub_reseller_balance_log') @endcan
ID Date Pop Name User ID Action Amount Reseller Amount Sub Manager Miscellaneous Expense Remarks
{{ $r->id}} {{date('d-M-Y h:i:sa',strtotime($r->created_at))}} @foreach($pops as $pop) @if($pop->id == $r->sub_reseller_id) {{ $pop->popname}} @endif @endforeach {{$r->client->userid ?? ''}} {{$r->action ?? ''}} @php $total+=$r->amount @endphp {{$r->amount}} {{$r->reseller_cost ?? 0}} {{$r->comission ?? 0}} {{ $r->remarks}}
Total {{ number_format($total, 2, '.', '') }}{{ number_format($list->sum('reseller_cost') , 2, '.', '') }}{{ number_format($list->sum('comission') , 2, '.', '') }}
{{-- {{ $list->links() }} --}}