@extends('admin.layouts.master') @section('title', __('Investment Details')) @php use App\Enums\InvestmentStatus; use App\Enums\InterestRateType; use App\Enums\RefundType; $currency = base_currency(); @endphp @section('content')

{!! __('Investment / :summary', ['summary' => ''.data_get($invest, 'summary_title').'' ]) !!}

  • {{ __("Invested By:") }} {{ the_uid($invest->user->id) }} ({{ str_protect($invest->user->email) }})
  • {{ __("Invest ID:") }} {{ the_inv($invest->ivx) }}
  • {{ ucfirst($invest->status) }}
{{ amount_z($invest->amount, $currency) }} {{ $currency }}
{{ __('Invested') }}
{{ amount_z($invest->profit, $currency) }}
{{ __('Profit') }}
{{ amount_z($invest->received, $currency) }} {{ $currency }} @if($invest->pending_amount > 0) @endif
{{ __('Paid Amount') }} {{ (data_get($invest, 'scheme.capital', 0)==0) ? __("(inc. cap)") : (($invest->status != InvestmentStatus::COMPLETED) ? __("(exc. cap)") : '') }}
  • {{ __('Term duration') }}
    {{ data_get($invest, 'term') }}
  • {{ __('Term compute') }}
    {{ ucfirst(__(data_get($invest, 'term_calc'))) }}
  • {{ __('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')]) }}
  • {{ __('Payment source') }}
    {{ (data_get($invest, 'payment_source')) ? w2n(data_get($invest, 'payment_source')) : __("N/A") }}
  • {{ __('Payment reference') }}
    {{ data_get($invest, 'reference', __("N/A")) }}
  • {{ __('Payment date') }}
    {{ data_get($invest, 'payment_date', __("N/A")) }}
  • {{ __('Paid amount') }}
    @if($invest->status!=InvestmentStatus::PENDING) {{ $currency }} {{ amount_z(data_get($invest, 'paid_amount'), $currency) }} @else {{ __("N/A") }} @endif
{{ __("Plan Details") }}
  • {{ __('Scheme / Plan') }}
    {{ data_get($invest->scheme, 'name') . ' (' . data_get($invest->scheme, 'short') . ')' }}
  • {{ __('Payout term') }}
    {{ str_replace('_', ' ', ucfirst(data_get($invest->scheme, 'payout'))) }}
  • {{ __('Interest rate') }} ({{ ucfirst(data_get($invest->scheme, 'calc_period')) }})
    {{ data_get($invest->scheme, 'rate') . ' (' . ucfirst(data_get($invest->scheme, 'rate_type')) . ')' }}
  • {{ __('Term duration') }}
    {{ data_get($invest->scheme, 'term') . ' ' . ucfirst(data_get($invest->scheme, 'term_type')) }}
  • {{ __('Capital return') }}
    {{ (data_get($invest->scheme, 'capital', 0)==1) ? __("End of term") : __("Each term") }}
  • {{ __('Fixed investment') }}
    {{ (data_get($invest->scheme, 'is_fixed', 0)==1) ? __("Yes") : __("No") }}
{{ __("Action Details") }}
  • {{ __('Ordered date') }}
    {{ show_date(data_get($invest, 'order_at'), true) }}
  • {{ __('Ordered by') }}
    @if(data_get($invest, 'order_by')) {{ get_user(data_get($invest, 'order_by'))->name }} @else {{ __("Unknown") }} @endif
  • {{ __('Approved date') }}
    @if(data_get($invest, 'approve_at')) {{ show_date(data_get($invest, 'approve_at'), true) }} @else {{ __("Not yet") }} @endif
  • {{ __('Approved by') }}
    @if(data_get($invest, 'approve_by')) {{ get_user(data_get($invest, 'approve_by'))->name }} @else {{ __("N/A") }} @endif
  • {{ __('Completed date') }}
    @if(data_get($invest, 'completed_at')) {{ show_date(data_get($invest, 'completed_at'), true) }} @else @if($invest->status==InvestmentStatus::PENDING) {{ __("Not started") }} @else {{ __("Not completed") }} @endif @endif
  • @if($invest->status==InvestmentStatus::CANCELLED)
  • {{ __('Cancelation date') }}
    @if(data_get($invest, 'cancelled_by')) get_user(data_get($invest, 'cancelled_by'))->name ]) }}"> @endif {{ show_date(data_get($invest, 'cancelled_at'), true) }}
  • @else
  • {{ __('Last updated') }}
    {{ show_date(data_get($invest, 'updated_at'), true) }}
  • @endif
{{ __("Additional") }}
  • {{ __('Desc') }}
    {{ (data_get($invest, 'desc')) ? data_get($invest, 'desc') : __("N/A") }}
  • {{ __('Notes') }}
    {!! (data_get($invest, 'note')) ? auto_p(data_get($invest, 'note')) : __("N/A") !!}
  • {{ __('Remarks (Admin Only)') }}
    {!! (data_get($invest, 'remarks')) ? auto_p(data_get($invest, 'remarks')) : __("N/A") !!}
  • @if(data_get($invest, 'cancelled_by')==$invest->user_id)
  • {{ __('Caution:') }} {{ __("The investment cancelled by investor.") }}
  • @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' => strtolower(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(!blank(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=='fixed') ? $profit->rate . ' '.$currency . ' ('.$profit->type.')' : $profit->rate . '%')]) }} {{ show_date(data_get($profit, 'calc_at'), true) }} + {{ amount_z($profit->amount, $currency) }} {!! ($profit->payout) ? ' $profit->payout]). '"> ' : '' !!}
{{ __("Captial Return") }} {{ show_date(data_get($invest, 'updated_at'), true) }} + {{ amount_z(data_get($invest, 'amount'), $currency) }}
@endif
@endsection @push('modal') @if($invest->status == InvestmentStatus::PENDING) @endif @if($invest->status == InvestmentStatus::ACTIVE) @endif @endpush @push('scripts') @endpush