@extends('user.layouts.master') @section('title', __(':Name | Investment Plan', ['name' => __(data_get($invest, 'summary_title_alter'))])) @php use App\Enums\InvestmentStatus; use App\Enums\InterestRateType; use App\Enums\SchemePayout; $currency = base_currency(); $lastNote = data_get($invest->ledgers->last(), 'note'); @endphp @section('content')

{{ data_get($invest, 'summary_title_alter') }}

{{ the_inv($invest->ivx) }} {{ ucfirst($invest->status) }} @if (data_get($invest, 'cancelled_by') == auth()->id()) {{ __('You have cancelled the investment plan.') }} @endif
@if($invest->status==InvestmentStatus::PENDING || $invest->status==InvestmentStatus::ACTIVE || $invest->status==InvestmentStatus::INACTIVE)
    @if(data_get($invest, 'user_can_cancel') == true)
  • @endif
@endif
@if (filled($lastNote) && data_get($invest, 'status') == InvestmentStatus::CANCELLED)
{{ $lastNote }}
@endif @if($invest->status === InvestmentStatus::ACTIVE && $invest->payout_type === SchemePayout::AFTER_MATURED)
@if (data_get($invest, 'term_count') == data_get($invest, 'term_total'))

{{ __('This investment plan has been matured, you will be get paid very soon.') }}

@else

{{ __('You will be paid once this investment plan is matured.') }}

@endif
@endif
{{ amount_z($invest->amount, $currency) }} {{ $currency }}
{{ __('Invested') }}
{{ amount_z($invest->profit, $currency) }}
{{ __('Profit') }}
{{ amount_z($invest->received, $currency) }} {{ $currency }}
{{ __('Total Returned') }} {{ (data_get($invest, 'scheme.capital', 0)==0) ? __("(inc. cap)") : (($invest->status != InvestmentStatus::COMPLETED) ? __("(exc. cap)") : '') }} @if($invest->profit_locked > 0) @endif
  • {{ __('Term basis') }}
    {{ __(":Calc", ['calc' => __(data_get($invest, 'term_calc'))]) }}
  • {{ __('Term duration') }}
    {{ data_get($invest, 'term_text_alter') }}
  • {{ __('Term start at') }}
    {{ show_date(data_get($invest, 'term_start'), true) ?? __('N/A') }}
  • {{ __('Term end at') }}
    {{ show_date(data_get($invest, 'term_end'), true) ?? __('N/A') }}
  • {{ __('Interest (:frequency)', ['frequency' => __(data_get($invest, 'scheme.calc_period'))]) }}
    {{ data_get($invest, 'rate_text') }}
  • {{ __('Total net profit') }}
    {{ $currency }} {{ amount_z(data_get($invest, 'profit'), $currency) }}
  • {{ __(':Calc profit (:capital)', ['calc' => __(data_get($invest, 'scheme.calc_period')), 'capital' => (data_get($invest, 'scheme.capital', 0)==0) ? __("inc. cap") : __("exc. cap") ]) }}
    {{ $currency }} {{ amount_z(data_get($invest, 'calc_profit'), $currency) }}
  • {{ __('Adjust profit') }}
    {{ __(":count / :total times", ['count' => data_get($invest, 'term_count'), 'total' => data_get($invest, 'term_total')]) }}
  • {{ __('Ordered date') }}
    {{ show_date(data_get($invest, 'order_at'), true) }}
  • {{ __('Payment source') }}
    {{ (data_get($invest, 'payment_source')) ? w2n(data_get($invest, 'payment_source')) : __("N/A") }}
  • {{ __('Payment reference') }}
    {{ data_get($invest, 'reference', __("N/A")) }}
  • {{ __('Paid amount') }}
    @if($invest->status!=InvestmentStatus::PENDING) {{ $currency }} {{ amount_z(data_get($invest, 'paid_amount'), $currency) }} @else {{ __("N/A") }} @endif
{{ __('Graph View') }}
{{ __('Overview') }}
{{ data_get($invest, 'progress') }}%
{{ data_get($invest, 'rate_text') }} / {{ strtolower(data_get($invest, 'period_text')) }}
{{ money(0.0, $currency) }}{{ money(data_get($invest, 'total'), $currency) }}
{{ __('Net Profit') }}
{!! __('Earn so far :amount', ['amount' => '' . money(data_get($invest, 'received'), $currency) . '']) !!}
{{ str_replace($currency, '', data_get($invest, 'rate_text')) }}
{{ __(':calc profit', ['calc' => __(data_get($invest, 'scheme.calc_period'))]) }}
{{ money(0.0, $currency) }}{{ money(data_get($invest, 'profit'), $currency) }}
{{ __('Remain') }}
{!! __('Adjusted so far :count', ['count' => '' . data_get($invest, 'term_count') . ' '.__('times').'']) !!}
{{ data_get($invest, 'remaining_term') }}
{{ __('remain to adjust') }}
{{ __('0 Time') }}{{ __(':count Times', ['count' => data_get($invest, 'term_total')]) }}
@if(!empty(data_get($invest, 'profits')))
{{ __('Transactions') }}
@foreach(data_get($invest, 'profits') as $profit) @endforeach @if(data_get($invest, 'scheme.capital') && $invest->status==InvestmentStatus::COMPLETED) @endif
{{ __('Details') }} {{ __('Date & Time') }} {{ __('Amount') }}
{{ __("Investment") }} {{ show_date(data_get($invest, 'order_at'), true) }} - {{ amount_z(data_get($invest, 'amount'), $currency) }} w2n(data_get($invest, 'payment_source')) ]) }}">
{{ __("Profit Earn - :rate", ['rate' => (($profit->type=='F') ? $profit->rate . ' '.$currency . ' ('.$profit->type.')' : $profit->rate . '%')]) }} {{ show_date(data_get($profit, 'calc_at'), true) }} + {{ amount_z($profit->amount, $currency, ['dp' => 'calc']) }} {!! ($profit->payout) ? ' $profit->payout]). '"> ' : '' !!}
{{ __("Captial Return") }} {{ show_date(data_get($invest, 'updated_at'), true) }} + {{ amount_z(data_get($invest, 'amount'), $currency) }} w2n(data_get($invest, 'payment_dest')) ]) }}">
@if($invest->status === InvestmentStatus::ACTIVE && $invest->payout_type === SchemePayout::AFTER_MATURED)
@if (data_get($invest, 'term_count') == data_get($invest, 'term_total'))

{{ __('This investment plan has been matured, you will be get paid very soon.') }}

@else

{{ __('You will be paid once this investment plan is matured.') }}

@endif
@endif
@endif
@endsection @push('scripts') @endpush