@extends('layouts.frontend') @section('title', 'Wallet') @section('content') @if(Session::has('message')) @else

Wallet

{{ number_format(auth()->user()->member->credit ?? 0, 0) }}

Account Balance ({{ $settings_->where('key', 'currency')->first()->value ?? '' }})

{{--

Current Balance @if(isset(auth()->user()->member->loans)) {{number_format(auth()->user()->member->loans()->sum('amount')??0,0)}} {{ $settings_->where('key', 'currency')->first()->value ?? '' }} @else 0.0 @endif

--}}
Wallet
({{ $settings_->where('key', 'currency')->first()->value ?? '' }}){{ number_format(auth()->user()->member->credit ?? 0, 0) }}
Withdrawing
({{ $settings_->where('key', 'currency')->first()->value ?? '' }}) @if(isset(auth()->user()->member->transactions)) {{number_format(auth()->user()->member->amountToWithdrawn()??'0' ,0)}} @endif
@if ($errors->any())
@endif {{-- --}}
@include('frontend.quee')
@endif @include('app.sweetAlert') @endsection @push('scripts') @endpush @push('styles') @endpush