@php use App\Models\WalletEarnPlan; $locale = $locale ?? app()->getLocale(); $eyebrow = $data['eyebrow'][$locale] ?? $data['subheading'][$locale] ?? __('Grow Your Capital'); $heading = $data['heading'][$locale] ?? __('Wallet Earn __Programmes.__'); $description = $data['description'][$locale] ?? __('Three curated yield instruments, each calibrated to a different temperament.'); $renderedHeading = preg_replace_callback('/__(.+?)__/u', function ($m) { return ''.e($m[1]).''; }, e($heading)); $plans = WalletEarnPlan::query()->active()->orderBy('sort_order')->with('currency')->get(); @endphp
{{ $eyebrow }}

{!! $renderedHeading !!}

{!! nl2br(e($description)) !!}

@if($plans->isEmpty())

{{ __('No earning plans available at the moment.') }}

@else
@foreach($plans as $plan) @php $isFeatured = $plan->is_featured; $badge = $plan->planBadgeLabel(); $currency = $plan->currency_id ? $plan->currency->code : __('All Wallets'); @endphp
@if($isFeatured && $badge) {{ $badge }} @endif

{{ $plan->name }}

{{ $plan->description ?: __('Earn scheduled rewards while your principal stays locked.') }}
{{ number_format((float) $plan->profit_rate, 2) }}%
{{ $plan->profit_type->label() }}
{{ $currency }} {{ $plan->durationLabel() }} {{ $plan->payout_frequency->label() }}
{{ __('Range') }} {{ $plan->amountRangeLabel() }}
{{ __('Payout') }} {{ $plan->payout_frequency->label() }}
{{ __('Principal') }} {{ $plan->return_principal ? __('Returned') : __('Not returned') }}
{{ __('Approval') }} {{ $plan->auto_approve ? __('Auto') : __('Manual') }}
  • {{ $plan->currency_id ? $plan->currency->code.' '.__('only') : __('All currencies') }}
  • {{ $plan->auto_approve ? __('Auto-approved') : __('Manual review') }}
  • {{ $plan->return_principal ? __('Principal returned') : __('Principal locked') }}
{{ __('Begin Earning') }}
@endforeach
@endif