<?php
$title='Author Conference Fit Intelligence';
?>

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

<h2 class="mb-4">
<i class="fa-solid fa-bullseye"></i>
Author Conference Fit Intelligence
</h2>

<div class="row g-3">

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

<div class="col-12">
<div class="alert alert-info">
No conference fit intelligence available yet.
</div>
</div>

<?php endif; ?>

<?php foreach($rows as $r): ?>

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

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

<div class="card-header">
Conference #<?= (int)$r['conference_id'] ?>
</div>

<div class="card-body">

<div class="row">

<div class="col-md-6">
<h6>Fit Score</h6>
<h3><?= htmlspecialchars($r['conference_fit_score']) ?></h3>
</div>

<div class="col-md-6">
<h6>Acceptance Potential</h6>
<h3><?= htmlspecialchars($r['acceptance_potential']) ?>%</h3>
</div>

</div>

<hr>

<p>
<strong>Fit Level:</strong>
<?= htmlspecialchars($r['fit_level']) ?>
</p>

<p>
<strong>Submissions:</strong>
<?= (int)$r['submission_count'] ?>
</p>

<p>
<strong>Accepted:</strong>
<?= (int)$r['accepted_count'] ?>
</p>

<p>
<strong>Recommended Track:</strong>
<?= htmlspecialchars($r['recommended_track'] ?: '-') ?>
</p>

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

</div>

</div>

</div>

<?php endforeach; ?>

</div>

</div>
