<?php
$listTabsId = trim((string) ($listTabsId ?? ''));
$listTabsItems = is_array($listTabsItems ?? null) ? $listTabsItems : [];
?>
<div class="app-list-tabs"<?php if ($listTabsId !== ''): ?> id="<?php e($listTabsId); ?>"<?php endif; ?>>
  <?php foreach ($listTabsItems as $listTabsItem): ?>
    <?php
    if (!is_array($listTabsItem)) {
      continue;
    }
    $tabHref = trim((string) ($listTabsItem['href'] ?? ''));
    $tabLabel = (string) ($listTabsItem['label'] ?? '');
    $tabActive = (bool) ($listTabsItem['active'] ?? false);
    if ($tabHref === '') {
      continue;
    }
    ?>
    <a href="<?php e($tabHref); ?>" class="<?php e($tabActive ? 'tab-link is-active' : 'tab-link'); ?>">
      <?php e($tabLabel); ?>
    </a>
  <?php endforeach; ?>
</div>
