@extends('layouts.user.base') @php $system_settings = active_system_setting(); $user = auth()->user()->load(['wallet','investments', 'active_investments', 'compounding_wallet', 'bonus_wallet','settings']); $wallet = $user->wallet; $active_investments = $user->active_investments; $compounding_wallet = $user->compounding_wallet; $bonus_wallet = $user->bonus_wallet; $settings = $user->settings; // $last_calculated_plan = App\Models\Investments\CalculatorLog::where('user_id', $user->id)->orderBy('id', 'DESC')->with(['plan'])->first(); // $show_calculator_reminder = $last_calculated_plan ? 1 : 0; $popup_target = getPopupTarget($user); $show_popup_target = $popup_target ? 1 : 0; @endphp @section('welcome_message')
| Plan | Amount | Profit | Start | Next Payout | End | Status |
|---|---|---|---|---|---|---|
| {{ $investment->plan->name }} |
{{ formatMoney($investment->amount) }} |
{{ $investment->isActive() ? formatMoney($investment->profit()) : NOT_AVAILABLE }} |
{{ $investment->start_date($investment->payouts) }} |
{{ $investment->next_payout_date($investment->payouts) }} |
{{ $investment->end_date($investment->payouts) }} |
{{ $investment->status_data()->message }} |
{{ formatMoney($downline['bonus']) }}