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

@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
@include($activeTemplate . 'partials.invest_history', ['invests' => $invests])
@endsection @push('script') @endpush