{{-- Header Card --}}
{{-- Plan Info --}}

{{ $plan->plan->name }}

{{ $roiInfo }} {{ __('t.for') }} {{ $plan->plan->duration }}
@if ($plan->status == 'active')
{{ __('t.active_plan') }}
@elseif($plan->status == 'expired')
{{ __('t.expired') }}
@else
{{ __('t.inactive') }}
@endif
{{-- Cancel Button --}} @if ($settings->should_cancel_plan && $plan->status == 'active') @endif
{{-- Investment Stats --}}
{{ __('t.invested_amount') }}
{{ Number::currency($plan->amount, $settings->s_currency) }}
{{ __('t.profit_earned') }}
{{ Number::currency($plan->profit_earned, $settings->s_currency) }}
{{ __('t.total_return') }}
@if ($settings->return_capital) {{ Number::currency($plan->amount + $plan->profit_earned, $settings->s_currency) }} @else {{ Number::currency($plan->profit_earned, $settings->s_currency) }} @endif
{{-- Details Grid --}}

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

{{ __('t.duration') }}
{{ $plan->plan->duration }}
{{ __('t.roi_range') }}
{{ $plan->plan->min_return }}% - {{ $plan->plan->max_return }}%
{{ __('t.roi_interval') }}
{{ $plan->plan->increment_interval }}

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

{{ __('t.started') }}
{{ $plan->created_at->format('M d, Y h:i A') }}
{{ __('t.ends') }}
{{ $plan->expire_date->format('M d, Y h:i A') }}
{{-- ROI History --}} @can('see profit history')

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

@forelse($roiHistory as $history) @empty @endforelse
{{ __('t.amount') }} {{ __('t.date') }}
{{ Number::currency($history->amount, $settings->s_currency) }}
{{ $history->created_at->format('M d, Y h:i A') }}

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

{{ $roiHistory->links() }}
@endcan