@extends('layouts.app') @section('content')

Wallet

@include('partials._breadcrumbs')

Wallet Details

@if(request()->role=="")
Member Id Name Contact Number Aadhar #
@endif
@php $totalBal=0.0; @endphp @foreach ($users as $key=> $user) @php $debit=0.00; $credit=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 @endforeach @php $totalBal+=$credit-$debit; @endphp @endforeach {{-- --}}
S.N. Member ID Mobile Member Name Credit Balance Debit Balance Total Balance Detail
{{$key+1}} {{$user->loginId}} {{$user->contact}} {{$user->name}} {{$user->last_name}} {{$credit}} {{$debit}} {{$credit-$debit}}
Balance {{ number_format($totalBal,2,'.','')}}
{{$users->links()}}
@endsection