<?php
/**
 * admin/comms_tabs.php
 * Full-width bar for Communications Admin (RTL)
 * Usage: $comms_active='home'|'routers'|'vlans'|'assign'|'connect'|'wizard';
 */
if (!isset($comms_active)) $comms_active = 'smart';

$tabs = [
  'setup'   => ['label'=>'معالج الاعداد',   'href'=>'wizard_network.php'],
  'smart'   => ['label'=>'المعالج الذكي',   'href'=>'automation_comms.php'],
  'routers' => ['label'=>'ادارة الرواترات', 'href'=>'routers.php'],
  'sectors' => ['label'=>'ادارة القطاعات',  'href'=>'sectors.php'],
  'dist'    => ['label'=>'توزيع المشتركين', 'href'=>'subscribers_distribution.php'],
];
?>
<div class="ua-ctabs-wrap">
  <div class="ua-ctabs" role="tablist" aria-label="إدارة الاتصالات">
    <?php foreach($tabs as $k=>$t): ?>
      <a class="ua-ctab <?= ($comms_active===$k?'is-active':'') ?>"
         href="<?= htmlspecialchars($t['href'],ENT_QUOTES,'UTF-8') ?>"
         role="tab" aria-selected="<?= ($comms_active===$k?'true':'false') ?>">
        <?= htmlspecialchars($t['label'],ENT_QUOTES,'UTF-8') ?>
      </a>
    <?php endforeach; ?>
  </div>
</div>
