@extends('frontend.layouts.user.index') @section('title', __('Wallet Earn Details')) @push('styles') @endpush @section('content')
{{ __('Back') }}
{{ $stake->currency->code }}

{{ $stake->plan_name }}

{{ __('Started: :date', ['date' => $stake->starts_at?->format('d M Y, h:i A') ?? __('Pending approval')]) }}

{{ $stake->status->label() }}
@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('Next Payout') {{ $stake->next_payout_at?->format('d M Y, h:i A') ?? __('Not scheduled') }}
@lang('Maturity') {{ $stake->matures_at?->format('d M Y, h:i A') ?? __('Pending') }}
@lang('Payout Progress') {{ $stake->payouts_made }} / {{ $stake->total_payouts }}

@lang('Reward History')

@lang('Every paid reward is recorded with its transaction reference.')

@forelse($stake->rewards as $reward)
{{ __('Payout #:number', ['number' => $reward->payout_number]) }} {{ $reward->transaction?->trx_id ?? __('Transaction pending') }} +{{ number_format((float) $reward->amount, (int) setting('site_decimal', 2)) }} {{ $stake->currency->code }}
@empty @endforelse
@endsection