@use('\Illuminate\Support\Str', 'Str')
{{-- Plans Display (Initial View) --}}
{{-- Plans Grid --}}
@foreach($plans as $plan)
{{-- Plan Header --}}

{{ $plan->name }}

@if($plan->status == 'inactive') {{ __('t.inactive') }} @endif
{{ Number::currency($plan->price, $settings->s_currency) }}

{{ __('t.minimum_investment') }}

{{-- Plan Features --}}
{{-- Plan Description --}}

{{ $plan->description ?? __('t.default_plan_description') }}

{{-- Duration & ROI --}}
{{ __('t.duration') }}
{{ $plan->duration }}
{{ __('t.roi') }}
{{ $plan->increment_type === 'Percentage' ? Number::percentage((float)$plan->min_return) . ' - ' . Number::percentage((float)$plan->max_return) : Number::currency((float)$plan->increment_amount, $settings->s_currency) }}
{{-- Feature List --}}
{{ __('t.min_return') }}: {{ $plan->min_return }}%
{{ __('t.max_return') }}: {{ $plan->max_return }}%
{{ __('t.bonus') }}: {{ Number::currency($plan->bonus, $settings->s_currency) }}
{{ Str::title($plan->increment_interval) }} {{ __('t.roi') }}
{{-- Investment Button --}}
@endforeach
{{-- Purchase View --}}
{{-- Left Column: Amount Input --}}
{{-- Header with Back Button --}}

{{ __('t.investment_amount') }}

{{-- Quick Amount Selection --}}
@foreach([5000, 15000, 50000] as $quickAmount) @endforeach
{{-- Custom Amount Input --}}
{{ $settings->currency }}
{{ __('t.available_balance') }} {{ Number::currency(auth()->user()->account_bal, $settings->s_currency) }}
{{-- Right Column: Investment Summary --}}

{{ __('t.investment_summary') }}

{{ __('t.selected_plan') }} {{ $planSelected ? $planSelected->name : '-' }}
{{ __('t.duration') }} {{ $planSelected ? $planSelected->duration : '-' }}
{{ __('t.roi') }} {{ $roiInfo ?? '-' }}
{{ __('t.amount') }} {{ $amount ? Number::currency($amount, $settings->s_currency) : '-' }}
{{ __('t.bonus') }} +{{ $planSelected ? Number::currency($planSelected->bonus, $settings->s_currency) : '-' }}
{{-- Invest Button --}}