@extends('layouts.app1')
@section('content')
@if(request()->role=="")
@endif
| S.N. |
Member ID |
Mobile |
Member Name |
Credit Balance |
Debit Balance |
Total Balance |
Detail |
@php
$totalBal=0.0;
@endphp
@foreach ($users as $key=> $user)
@php
$debit=0.00;
$credit=0.00;
$comissionWallet=0.00;
@endphp
@foreach($user->wallet as $wallet)
@if ($wallet->type==0)
@php
$credit=$credit+$wallet->amount;
@endphp
@else
@php
$debit=$debit+$wallet->amount;
@endphp
@endif
@if ($wallet->type==0 && $wallet->method =='Cashback Balance')
@php
$comissionWallet=$comissionWallet+$wallet->amount;
@endphp
@endif
@endforeach
| {{$key+1}} |
{{$user->loginId}} |
{{$user->contact}} |
{{$user->name}} {{$user->last_name}} |
{{$credit}} |
{{$debit}} |
@php
$totalBal+=$credit-$debit;
@endphp
0.00
|
|
@endforeach
|
|