0, 'total_earned' => 0, 'total_withdrawn' => 0, 'records' => []]; $balance = (float) ($revenue_view['balance'] ?? 0); $total_earned = (float) ($revenue_view['total_earned'] ?? 0); $total_withdrawn = (float) ($revenue_view['total_withdrawn'] ?? 0); $records = $revenue_view['records'] ?? []; $settings = class_exists('AKSRT_Settings') ? AKSRT_Settings::get_withdrawal_settings() : []; $min_amount = (float) ($settings['min_amount'] ?? 50); $fee_rate = (float) ($settings['service_charge_rate'] ?? 0); $withdraw_text = (string) ($settings['text'] ?? ''); $withdrawals = []; if (class_exists('AKSRT_Withdrawal')) { $withdrawals = AKSRT_Withdrawal::get_instance()->get_user_withdrawals($user_id, ['limit' => 20]); } $per_page = 20; $paged = max(1, (int) ($_GET['rev_page'] ?? 1)); $total_records = count($records); $total_pages = max(1, (int) ceil(max(1, $total_records) / $per_page)); if ($total_records === 0) { $total_pages = 1; } $paged_records = array_slice($records, ($paged - 1) * $per_page, $per_page); ?>

¥
¥
¥

¥

¥
1 && $total_records > 0) : ?>