<?php
$title='Academic Portfolio';
?>

<div class="container-fluid py-4">

<h2 class="mb-4">
<i class="fa-solid fa-user-graduate"></i>
Academic Portfolio Intelligence
</h2>

<?php if(empty($portfolio)): ?>

<div class="alert alert-info">
No portfolio intelligence available yet.
</div>

<?php return; endif; ?>

<div class="row g-3">

<div class="col-lg-4">

<div class="card shadow h-100">

<div class="card-body text-center">

<h6>Portfolio Score</h6>

<h1 class="display-4">
<?= htmlspecialchars($portfolio['portfolio_score']) ?>
</h1>

<div class="badge bg-primary">
<?= htmlspecialchars($portfolio['portfolio_rank']) ?>
</div>

</div>

</div>

</div>

<div class="col-lg-8">

<div class="card shadow h-100">

<div class="card-body">

<div class="row">

<div class="col-md-6">
<p><strong>Academic Level:</strong>
<?= htmlspecialchars($portfolio['academic_level']) ?>
</p>
</div>

<div class="col-md-6">
<p><strong>Success Score:</strong>
<?= htmlspecialchars($portfolio['success_score']) ?>
</p>
</div>

<div class="col-md-6">
<p><strong>Collaboration:</strong>
<?= htmlspecialchars($portfolio['collaboration_score']) ?>
</p>
</div>

<div class="col-md-6">
<p><strong>Research Impact:</strong>
<?= htmlspecialchars($portfolio['impact_score']) ?>
</p>
</div>

<div class="col-md-6">
<p><strong>Conference Fit:</strong>
<?= htmlspecialchars($portfolio['fit_score']) ?>
</p>
</div>

<div class="col-md-6">
<p><strong>Readiness:</strong>
<?= htmlspecialchars($portfolio['readiness_score']) ?>
</p>
</div>

</div>

<hr>

<p>
<strong>Recommendation:</strong><br>
<?= htmlspecialchars($portfolio['recommendation_text']) ?>
</p>

</div>

</div>

</div>

</div>

</div>
