@php
$credit_b= App\Models\BonusWallet::where('type','credit')->where('status','approved')->sum('amount');
$debit_b=App\Models\BonusWallet::where('type','debit')->where('status','approved')->sum('amount');
$bonus_wallet=round($credit_b-$debit_b,2);
@endphp
TOTAL BONUS WALLET
{{$bonus_wallet}}