@extends('backend.wallet_earn.layout') @section('title', __('Wallet Earn')) @section('wallet_earn_title', __('Earn Dashboard')) @section('wallet_earn_icon', 'trending-up') @section('wallet_earn_subtitle', __('Monitor staking volume, pending reviews, active stakes, and paid rewards.')) @section('wallet_earn_content')
@lang('Total Staked')
{{ number_format((float) $metrics['total_staked'], (int) setting('site_decimal', 2)) }}
@lang('Active Stakes')
{{ $metrics['active'] }}
@lang('Pending Review')
{{ $metrics['pending'] }}
@lang('Rewards Paid')
{{ number_format((float) $metrics['rewards_paid'], (int) setting('site_decimal', 2)) }}
@lang('Reset')
@forelse($stakes as $stake) @empty @endforelse
@lang('User') @lang('Plan') @lang('Principal') @lang('Paid Profit') @lang('Schedule') @lang('Status') @lang('Action')
{{ strtoupper(substr($stake->user->first_name ?? 'U', 0, 1)) }}
{{ $stake->user->name }}
{{ $stake->user->email }}
{{ $stake->plan_name }}
{{ $stake->currency->code }} · {{ $stake->payout_frequency->label() }}
{{ number_format((float) $stake->principal_amount, (int) setting('site_decimal', 2)) }} {{ $stake->currency->code }} {{ number_format((float) $stake->paid_profit, (int) setting('site_decimal', 2)) }} {{ $stake->currency->code }}
@lang('Next')
{{ $stake->next_payout_at?->format('d M Y, h:i A') ?? __('Not scheduled') }}
{{ $stake->status->label() }}
@lang('View') @can('wallet-earn-manage') @if($stake->status === \App\Enums\WalletEarnStatus::Pending)
@csrf
@endif @endcan
@if($stakes->hasPages()) @endif
@endsection