<?php
/**
 * subscribers_tabs.php
 * Full-width tabs bar (RTL) - no iframes
 * Usage: set $active_tab then include this file.
 */
if (!isset($active_tab)) $active_tab = '';
$tabs = [
  'list' => ['label' => 'المشتركين', 'href' => 'subscribers.php'],
  'add' => ['label' => 'إضافة مشترك', 'href' => 'subscribers_add.php'],
  'dist' => ['label' => 'توزيع المشتركين', 'href' => 'subscribers_distribution.php'],
  'sectors' => ['label' => 'القطاعات', 'href' => 'sectors.php'],
];
?>

<div class="ua-atabs-wrap"><div class="ua-atabs" role="tablist" aria-label="تبويبات">
<?php foreach ($tabs as $k => $t): ?>
<a class="ua-atab <?= ($active_tab === $k ? 'is-active' : '') ?>" href="<?= htmlspecialchars($t['href'], ENT_QUOTES, 'UTF-8') ?>" role="tab" aria-selected="<?= ($active_tab === $k ? 'true' : 'false') ?>"><?= htmlspecialchars($t['label'], ENT_QUOTES, 'UTF-8') ?></a>
<?php endforeach; ?>
</div></div>
