@extends('backend.wallet_earn.layout') @section('title', __('Wallet Earn Stake')) @section('wallet_earn_title', __('Stake Details')) @section('wallet_earn_icon', 'lock') @section('wallet_earn_subtitle', __('Review principal, schedule, reward history, and admin actions.')) @section('wallet_earn_action') @lang('Back') @endsection @section('wallet_earn_content')

{{ $stake->plan_name }}

{{ $stake->currency->code }} @lang('stake') · {{ $stake->status->label() }}

{{ $stake->status->label() }}
@lang('User')
{{ $stake->user->name }}{{ $stake->user->email }}
@lang('Wallet')
{{ $stake->wallet->uuid }}{{ $stake->currency->code }}
@lang('Principal')
{{ number_format((float) $stake->principal_amount, (int) setting('site_decimal', 2)) }} {{ $stake->currency->code }}
@lang('Expected Profit')
{{ number_format((float) $stake->expected_profit, (int) setting('site_decimal', 2)) }} {{ $stake->currency->code }}
@lang('Paid Profit')
{{ number_format((float) $stake->paid_profit, (int) setting('site_decimal', 2)) }} {{ $stake->currency->code }}
@lang('Payouts')
{{ $stake->payouts_made }} / {{ $stake->total_payouts }}{{ $stake->payout_frequency->label() }}
@lang('Started')
{{ $stake->starts_at?->format('d M Y, h:i A') ?? __('Pending') }}
@lang('Maturity')
{{ $stake->matures_at?->format('d M Y, h:i A') ?? __('Not scheduled') }}

@lang('Reward History')

@lang('Paid reward entries linked to transactions.')

@forelse($stake->rewards as $reward) @empty @endforelse
@lang('Payout') @lang('Paid At') @lang('Transaction') @lang('Amount')
#{{ $reward->payout_number }} {{ $reward->paid_at?->format('d M Y, h:i A') }} {{ $reward->transaction?->trx_id ?? __('N/A') }} {{ number_format((float) $reward->amount, (int) setting('site_decimal', 2)) }} {{ $stake->currency->code }}
@can('wallet-earn-manage')

@lang('Admin Actions')

@lang('Approve, reject, cancel, or complete this stake.')

@csrf @if($stake->status === \App\Enums\WalletEarnStatus::Pending) @elseif($stake->status === \App\Enums\WalletEarnStatus::Active) @else
@lang('This stake is closed and no further action is available.')
@endif
@endcan
@endsection