@extends('frontend.user.setting.index') @section('title', __('My Wallet Earn')) @section('user_setting_content') @if($walletEarnSummary['active_count'] > 0)
{{ __('Current active Wallet Earn') }}
{{ trans_choice(':count active position|:count active positions', $walletEarnSummary['active_count'], ['count' => $walletEarnSummary['active_count']]) }}

{{ __('Only active Wallet Earn positions are shown here to keep this settings view focused.') }}

{{ __('Active') }}
{{ __('Principal') }} {{ number_format($walletEarnSummary['principal_amount'],siteDecimalPlaces()) }}
{{ __('Expected Profit') }} {{ number_format($walletEarnSummary['expected_profit'],siteDecimalPlaces()) }}
{{ __('Paid Profit') }} {{ number_format($walletEarnSummary['paid_profit'],siteDecimalPlaces()) }}
{{ __('Next Payout') }} {{ $walletEarnSummary['next_payout_at']?->format('d M Y') ?? __('Not scheduled') }}
@foreach($activeStakes->take(4) as $stake)
{{ $stake->plan_name }}

{{ number_format((float) $stake->principal_amount,siteDecimalPlaces()) }} {{ $stake->currency?->code ?? siteCurrency() }} {{ $stake->profit_rate }}{{ $stake->profit_type?->value === 'percentage' ? '%' : '' }}

{{ $stake->matures_at?->format('d M Y') ?? __('Open') }} {{ __('Maturity') }}
@endforeach
@else @endif @endsection