@php $canFullDelete = auth()->user()->can('customer-recharge-full-delete'); $canPartialDelete = auth()->user()->can('customer-recharge-partial-delete'); $canBatchDelete = $canFullDelete || $canPartialDelete; @endphp
@if ($canBatchDelete) 0 selected @if ($canFullDelete) @endif @if ($canPartialDelete) @endif A recharge takes money from the manager balance and the POP balance together, so deleting one gives both back. @endif
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
@if ($canBatchDelete) @endif @can('show_reseller_cost_in_pop') @endcan @can('show_commission_sub_reseller_balance_log') @endcan @php $total = 0; @endphp @foreach ($list as $r) @if ($canBatchDelete) @endif @can('show_reseller_cost_in_pop') @endcan @can('show_commission_sub_reseller_balance_log') @endcan @endforeach @if ($canBatchDelete) @endif @can('show_reseller_cost_in_pop') @endcan @can('show_commission_sub_reseller_balance_log') @endcan
ID Date Type Pop Name CID Username Action Amount Reseller Amount Sub Manager Miscellaneous Expense Remarks
@if ($r->reseller_balance_log_id) @else — @endif {{ $r->id}} {{date('d-M-Y h:i:sa',strtotime($r->created_at))}} {{ $r->logTypeLabel() }} @if (!is_null($r->refund_balance_before) || !is_null($r->refund_balance_after)) refund: {{ number_format((float) $r->refund_balance_before, 2) }} → {{ number_format((float) $r->refund_balance_after, 2) }} @endif @foreach($pops as $pop) @if($pop->id == $r->sub_reseller_id) {{ $pop->popname}} @endif @endforeach {{$r->client_id ?: ''}} {{$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() }} --}}