@php use \App\Enums\TransactionType as TType; use \App\Enums\TransactionCalcType as TCType; $base_currency = base_currency(); $investments = data_get($user,'allInvested'); $statements = data_get($user,'ivStatements'); @endphp @section('title', __("Investments"))
{{ __('Invested Plans') }}

{{ __('Recent :num invested plans made by user.',['num' => 10]) }}

{{ __('Plan') }}
{{ __('Start Date') }}
{{ __('End Date') }}
{{ __('Investment ID') }}
{{ __('Amount') }}
{{ __('Status') }}
 
@forelse($investments as $plan)
{{ strtoupper(substr(data_get($plan, 'scheme.short'), 0, 2)) }}
{{ data_get($plan, 'scheme.name') }} - {{ data_get($plan, 'calc_details_alter') }}
{{ show_date(data_get($plan, 'term_start'), true) }}
{{ show_date(data_get($plan, 'term_end'), true) }}
{{ data_get($plan, 'ivx') }}
{{ money(data_get($plan, 'amount'), base_currency()) }}
@if(data_get($plan, 'status')=='active')
money(data_get($plan, 'received', 0), base_currency()), 'percent' => data_get($plan, 'progress', 0).'%']) }}">
@else {{ __(ucfirst(data_get($plan, 'status'))) }} @endif
@empty
{{ __('No transactions history found!') }}
@endforelse
{{ __('Invested Statements') }}

{{ __('Recent :num investment transactions.',['num' => 15]) }}

{{ __('Statement ID') }}
{{ __('Date & Time') }}
{{ __('Details') }}
{{ __('Type') }}
{{ __('Amount') }}
@forelse($statements as $statement)
@include('investment.admin.statement.transaction-row', ['transaction' => $statement, 'hide_user'=>true])
@empty
{{ __('No transactions history found!') }}
@endforelse