<?php

$title =
'Workflow Ownership Center';

function woc_h($v)
{
    return htmlspecialchars(
        (string)$v,
        ENT_QUOTES,
        'UTF-8'
    );
}

?>

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

<div class="card border-0 shadow-lg rounded-4">

<div class="card-body">

<h2 class="fw-bold">

<i class="fa fa-user-shield text-primary"></i>

Workflow Ownership Center

</h2>

<p class="text-muted">

Identify responsibility, ownership, and escalation paths.

</p>

<hr>

<div class="table-responsive">

<table class="table table-hover align-middle">

<thead>

<tr>

<th>Conference</th>
<th>Status</th>
<th>Owner</th>
<th>Role</th>
<th>Days Waiting</th>
<th>Escalation</th>

</tr>

</thead>

<tbody>

<?php foreach($ownershipRows as $row): ?>

<tr>

<td>

<?= woc_h($row['conference_name']) ?>

</td>

<td>

<span class="badge bg-primary">

<?= woc_h($row['status']) ?>

</span>

</td>

<td>

<?= woc_h($row['owner_name']) ?>

</td>

<td>

<?= woc_h($row['assigned_role']) ?>

</td>

<td>

<?= (int)$row['days_waiting'] ?>

</td>

<td>

<?= woc_h($row['escalation_target']) ?>

</td>

</tr>

<?php endforeach; ?>

</tbody>

</table>

</div>

</div>

</div>

</div>
