@php $canFullDelete = auth()->user()->can('customer-recharge-full-delete'); $canPartialDelete = auth()->user()->can('customer-recharge-partial-delete'); $canBatchDelete = $canFullDelete || $canPartialDelete; @endphp
| @endif | ID | Date | Type | Pop Name | CID | Username | Action | Amount | @can('show_reseller_cost_in_pop')Reseller Amount | @endcan @can('show_commission_sub_reseller_balance_log')Sub Manager Miscellaneous Expense | @endcanRemarks |
|---|---|---|---|---|---|---|---|---|---|---|---|
| @if ($r->reseller_balance_log_id) @else — @endif | @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}} | @can('show_reseller_cost_in_pop'){{$r->reseller_cost ?? 0}} | @endcan @can('show_commission_sub_reseller_balance_log'){{$r->comission ?? 0}} | @endcan{{ $r->remarks}} |
| @endif | Total | {{ number_format($total, 2, '.', '') }} | @can('show_reseller_cost_in_pop'){{ number_format($list->sum('reseller_cost') , 2, '.', '') }} | @endcan @can('show_commission_sub_reseller_balance_log'){{ number_format($list->sum('comission') , 2, '.', '') }} | @endcan