@extends('layouts.portal') @section('title', 'My Plan') @section('portal_title', 'My Subscribed Plan') @section('portal_subtitle', 'View the investment plan you selected and your payment review status.') @section('portal_content') @if ($subscribedPlan) @php $status = $subscribedPlan['status'] ?? 'Pending Payment Review'; $isActiveInvestment = in_array($status, ['Deposit Approved', 'Payment Completed'], true); $investmentAmount = is_numeric($subscribedPlan['amount'] ?? null) ? '$' . number_format((float) $subscribedPlan['amount'], 2) : ($subscribedPlan['amount'] ?? 'Not entered'); $dailyReturnAmount = $subscribedPlan['daily_return_amount'] ?? null; $dailyReturn = $isActiveInvestment && $dailyReturnAmount !== null ? '$' . number_format((float) $dailyReturnAmount, 2) : ($isActiveInvestment ? '$' . number_format(portalDailyReturnAmount($subscribedPlan), 2) : 'Starts after approval'); $statusClass = match ($status) { 'Payment Completed' => 'bg-emerald-50 text-emerald-700', 'Deposit Approved' => 'bg-emerald-50 text-emerald-700', 'Deposit Rejected' => 'bg-red-50 text-red-700', default => 'bg-amber-50 text-amber-700', }; @endphp

Subscribed Plan

{{ $subscribedPlan['name'] }}

Your selected investment plan is saved here so you can review your subscription details anytime from the portal.

{{ $status }}
Investment Name Investment Amount Daily Profit Daily Return Duration Payment Method Status Total Profit Earned
{{ $subscribedPlan['name'] ?? 'Selected Plan' }} {{ $investmentAmount }} {{ $subscribedPlan['profit'] ?? '-' }} {{ $dailyReturn }} {{ $subscribedPlan['period'] ?? '-' }} {{ $subscribedPlan['payment_method'] ?? 'Not selected' }} {{ $status }} ${{ number_format((float) ($subscribedPlan['total_profit_earned'] ?? 0), 2) }}

Plan Range

Minimum Investment
{{ $subscribedPlan['minimum'] }}
Maximum Investment
{{ $subscribedPlan['maximum'] }}
Submitted On
{{ $subscribedPlan['submitted_at'] ?? '-' }}
@if (! empty($subscribedPlan['reviewed_at']))
Reviewed On
{{ $subscribedPlan['reviewed_at'] }}
@endif

Payment Note

{{ $subscribedPlan['note'] ?: 'No payment note was added.' }}

@if (! empty($subscribedPlan['admin_note']))

Admin Review Note

{{ $subscribedPlan['admin_note'] }}

@endif
View Payment History Change Plan
@else

No Active Plan

You have not subscribed to any plan yet.

Select an investment plan first, then submit your payment request. Your subscribed plan will appear here after submission.

Choose Investment Plan
@endif @endsection