<?php
$title='My Mentorship Center';
?>

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

<h2 class="mb-4">
<i class="fa-solid fa-people-arrows"></i>
My Mentorship Center
</h2>

<div class="card shadow-sm mb-4">

<div class="card-header">
Mentorship Roles Where I Am Mentor
</div>

<div class="card-body table-responsive">

<table class="table table-bordered table-striped">

<thead>
<tr>
<th>Mentee</th>
<th>Conference</th>
<th>Type</th>
<th>Score</th>
<th>Status</th>
</tr>
</thead>

<tbody>

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

<tr>
<td colspan="5" class="text-muted">
No mentor assignments found.
</td>
</tr>

<?php endif; ?>

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

<tr>
<td>#<?= (int)$r['mentee_reviewer_id'] ?></td>
<td>#<?= (int)$r['conference_id'] ?></td>
<td><?= htmlspecialchars($r['mentorship_type'] ?? '-') ?></td>
<td><?= htmlspecialchars($r['mentorship_score'] ?? '-') ?></td>
<td><?= htmlspecialchars($r['status'] ?? '-') ?></td>
</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

<div class="card shadow-sm">

<div class="card-header">
Mentorship Roles Where I Am Mentee
</div>

<div class="card-body table-responsive">

<table class="table table-bordered table-striped">

<thead>
<tr>
<th>Mentor</th>
<th>Conference</th>
<th>Type</th>
<th>Score</th>
<th>Status</th>
</tr>
</thead>

<tbody>

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

<tr>
<td colspan="5" class="text-muted">
No mentee assignments found.
</td>
</tr>

<?php endif; ?>

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

<tr>
<td>#<?= (int)$r['mentor_reviewer_id'] ?></td>
<td>#<?= (int)$r['conference_id'] ?></td>
<td><?= htmlspecialchars($r['mentorship_type'] ?? '-') ?></td>
<td><?= htmlspecialchars($r['mentorship_score'] ?? '-') ?></td>
<td><?= htmlspecialchars($r['status'] ?? '-') ?></td>
</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>
