<?php require_once __DIR__.'/app_shell.php';require_user();app_head('Portfolio');app_open('portfolio','Portfolio');?>
<div class="page-heading"><div><h2>Portfolio & cash</h2><p>Review your available funds and account activity.</p></div><a class="btn-v" href="<?=APP_BASE?>/deposit">Add funds</a></div><section class="stats"><article class="stat"><div class="stat-top"><span>Available balance</span><i class="bi bi-wallet2 stat-icon"></i></div><strong id="availableBalance">â€”</strong><small>Available account balance</small></article><article class="stat"><div class="stat-top"><span>Invested amount</span><i class="bi bi-briefcase stat-icon"></i></div><strong id="totalInvested">â€”</strong><small>Investment records</small></article><article class="stat"><div class="stat-top"><span>Withdrawn</span><i class="bi bi-arrow-up-right stat-icon"></i></div><strong id="totalWithdrawn">â€”</strong><small>Approved withdrawals</small></article></section><section class="panel" style="margin-top:17px"><div class="panel-title"><h3>Recent activity</h3><a style="color:#059669;font-size:12px" href="<?=APP_BASE?>/transactions">View all</a></div><ul class="list-group" style="list-style:none;padding:0;margin:0"></ul></section><script>window.APP_BASE=<?=json_encode(APP_BASE)?></script><script src="<?=APP_BASE?>/wallet.js?v=<?= filemtime(__DIR__ . '/../wallet.js') ?>"></script><?php app_close();?>