@extends($activeTemplate . 'layouts.master') @section('content')

@lang('Total Invest')

{{ $general->cur_sym }}{{ showAmount(auth()->user()->invests->sum('amount')) }}

@lang('Total Profit')

{{ $general->cur_sym }}{{ showAmount(auth()->user()->transactions()->where('remark', 'interest')->sum('amount')) }}

@if ($investChart->count())
@foreach ($investChart as $chart)

{{ showAmount(($chart->investAmount / $investChart->sum('investAmount')) * 100) }}% - {{ __($chart->plan->name) }}

@endforeach
@else

@lang('No Investment Found Yet')

@endif
@forelse($invests as $invest) @php $nextTime = \Carbon\Carbon::parse($invest->next_time); @endphp @if ($nextTime > now()) @endif @empty @endforelse
@lang('Plan') @lang('Return') @lang('Received') @lang('Next payment')
{{ __($invest->plan->name) }}
{{ showAmount($invest->amount) }} {{ __($general->cur_text) }}
{{ showAmount($invest->interest) }} {{ __($general->cur_text) }} @lang('every') {{ $invest->time_name }}
@lang('for') @if ($invest->period == '-1') @lang('Lifetime') @else {{ $invest->period }} {{ $invest->time_name }} @endif @if ($invest->capital_status == '1') + @lang('Capital') @endif
{{ $invest->return_rec_time }}x{{ showAmount($invest->interest) }} = {{ $invest->return_rec_time * $invest->interest }} {{ __($general->cur_text) }} @if ($invest->status == '1')

@php if ($invest->last_time) { $start = $invest->last_time; } else { $start = $invest->created_at; } @endphp
@else @lang('Completed') @endif
{{ __($emptyMessage) }}
{{ $invests->links() }}
@endsection @push('script') @endpush