@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) }} @lang('Invest Now') @lang('Withdraw Now') @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('View All') @include($activeTemplate.'partials.invest_history',['invests'=>$invests]) @endsection @push('script') @endpush
@lang('Total Invest')
@lang('Total Profit')
{{ showAmount(($chart->investAmount / $investChart->sum('investAmount')) * 100, currencyFormat:false) }}% - {{ __($chart->plan->name) }}