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

@lang('Total Spent')

{{ $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 Membership Found Yet')

@endif
@include($activeTemplate.'partials.invest_history',['invests'=>$invests])
@endsection @push('script') @endpush