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

@lang('Investment')

@lang('All Investment')

@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
@lang('Active Investments') ({{ $activePlan }})
@lang('View All')
@include($activeTemplate.'partials.invest_history',['invests'=>$invests])
@endsection @push('script') @endpush