@extends(template() . 'layout.master2') @section('content2')
{{ __('Account Balance') }}

{{ number_format(auth()->user()->balance, 2) . ' ' . $general->site_currency }}

{{ __('Total Withdraw') }}

{{ number_format($withdraw, 2) . ' ' . $general->site_currency }}

{{ __('Total Deposit') }}

{{ number_format($totalDeposit, 2) . ' ' . $general->site_currency }}

{{ number_format($totalInvest, 2) . ' ' . $general->site_currency }}

{{ __('Total Invest') }}

{{ isset($currentInvest->amount) ? number_format($currentInvest->amount, 2) : 0 }} {{ @$general->site_currency }}

{{ __('Current Invest') }}

{{ isset($currentPlan->plan->plan_name) ? $currentPlan->plan->plan_name : 'N/A' }}

{{ __('Current Plan') }}

{{ number_format($pendingInvest, 2) . ' ' . $general->site_currency }}

{{ __('Pending Invest') }}

{{ number_format($pendingWithdraw, 2) . ' ' . $general->site_currency }}

{{ __('Pending Withdraw') }}

{{ number_format($commison, 2) }} {{ @$general->site_currency }}

{{ __('Refferal Earn') }}
@php $reference = auth()->user()->refferals; @endphp @php $reference = auth()->user()->refferals; @endphp
{{ __('Reference Tree') }}
@if ($reference->count() > 0)
  • {{ auth()->user()->full_name . ' - ' . currentPlan(auth()->user()) }}

      @foreach ($reference as $user)
    • {{ $user->full_name . ' - ' . currentPlan($user) }}

        @foreach ($user->refferals as $ref)
      • {{ $ref->full_name . ' - ' . currentPlan($ref) }}

          @foreach ($ref->refferals as $ref2)
        • {{ $ref2->full_name . ' - ' . currentPlan($ref2) }}

        • @endforeach
      • @endforeach
    • @endforeach
@else

{{ __('No Reference User Found') }}

@endif
@endsection @push('style') @endpush @push('script') @endpush