@extends('layouts.app')
@section('content')
Wallet
@include('partials._breadcrumbs')
Wallet Details
@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;
@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
| {{$key+1}} |
{{$user->loginId}} |
{{$user->contact}} |
{{$user->name}} {{$user->last_name}} |
{{$credit}} |
{{$debit}} |
@php
$totalBal+=$credit-$debit;
@endphp
{{$credit-$debit}} |
|
@endforeach
{{--
|
|
|
|
|
Balance |
{{ number_format($totalBal,2,'.','')}} |
|
--}}
|
{{$users->links()}}
|
@endsection