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

@lang('Investment')

@lang('All Investment')

@lang('Here you can find your active and closed investment and their start date, next return date, total return and more.')

@lang('Total Invest')

{{ gs('cur_sym') }}{{ showAmount(auth()->user()->invests->sum('amount'), currencyFormat:false) }}

@lang('Total Profit')

{{ gs('cur_sym') }}{{ showAmount(auth()->user()->transactions()->where('remark','interest')->sum('amount'), currencyFormat:false) }}

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

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

@endforeach
@else

@lang('No Investment Found Yet')

@endif
@lang('Active Investments') ({{ $activePlan }})
@lang('View All')
@include($activeTemplate.'partials.invest_history',['invests'=>$invests])
@endsection @push('script') @endpush