@extends('layouts.master') @section('title') @lang('translation.dashboard') @endsection @section('breadcrumb') @component('components.breadcrumb') @slot('title') @lang('translation.dashboard') @endslot @endcomponent @endsection @section('content')
Total Investment

USD {{ $capital }}

Balance

USD {{ $capital_after_loss }}

Total Investment Ever

USD {{ $totalInvestment }}

Earning

USD {{ $wallet}}


Profit
@php $todayValue = $capital_after_loss_today ?? 0; $yesterdayValue = $capital_after_loss_yesterday ?? 0; $percentageChange = $yesterdayValue > 0 ? round((($todayValue - $yesterdayValue) / $yesterdayValue) * 100, 2) : 0; $isOverLimit = abs($percentageChange) > 100; $displayPercentage = $isOverLimit ? '>100' : abs($percentageChange); @endphp

USD {{ $profit }}

{{ $displayPercentage }}%
Bonus

USD {{ $total_referral_bonus }}

TOTAL EARNING EVER

@php $totalAmount = ($referral_bonus ?? 0) + ($total_profit_before_withdrawal ?? 0); @endphp

USD {{ $totalAmount }}

@endsection @section('script') @endsection