<?php

/**
 * Landing hub for admin/settings.
 *
 * Each section is a standalone subpage reachable via its own URL
 * (admin/settings/<section>). This page renders a tile grid of entry points.
 */

?>
<div class="app-dashboard-titlebar">
  <h1><?php e(t('Settings')); ?></h1>
</div>
<hr>
<div class="app-dashboard">
  <div class="app-tiles">
    <?php
    // Tile order follows an onboarding flow: app basics → look & feel →
    // outbound mail → user policies → integrations → observability.
    appTile([
      'href' => 'admin/settings/general',
      'label' => t('General'),
      'icon' => 'bi bi-sliders',
      'iconTone' => 'blue',
      'tooltip' => t('App title, language, registration and new-user defaults'),
    ]);
    appTile([
      'href' => 'admin/settings/branding',
      'label' => t('Branding'),
      'icon' => 'bi bi-palette',
      'iconTone' => 'pink',
      'tooltip' => t('App logo and favicon'),
    ]);
    appTile([
      'href' => 'admin/settings/email',
      'label' => t('Email'),
      'icon' => 'bi bi-envelope',
      'iconTone' => 'amber',
      'tooltip' => t('SMTP connection and sender details'),
    ]);
    appTile([
      'href' => 'admin/settings/account-access',
      'label' => t('Account access'),
      'icon' => 'bi bi-shield-lock',
      'iconTone' => 'violet',
      'tooltip' => t('Sessions, login persistence, login tokens'),
    ]);
    appTile([
      'href' => 'admin/settings/user-lifecycle',
      'label' => t('User lifecycle'),
      'icon' => 'bi bi-arrow-repeat',
      'iconTone' => 'red',
      'tooltip' => t('Inactivity deactivation and deletion policy'),
    ]);
    appTile([
      'href' => 'admin/settings/sso',
      'label' => t('Microsoft SSO'),
      'icon' => 'bi bi-microsoft',
      'iconTone' => 'cyan',
      'tooltip' => t('Shared Microsoft Entra ID credentials'),
    ]);
    appTile([
      'href' => 'admin/settings/api',
      'label' => t('API'),
      'icon' => 'bi bi-key',
      'iconTone' => 'emerald',
      'tooltip' => t('API token policy and CORS allowlist'),
    ]);
    appTile([
      'href' => 'admin/settings/audit',
      'label' => t('Audit log'),
      'icon' => 'bi bi-journal-text',
      'iconTone' => 'orange',
      'tooltip' => t('System audit log enable and retention'),
    ]);
    appTile([
      'href' => 'admin/settings/telemetry',
      'label' => t('Telemetry'),
      'icon' => 'bi bi-graph-up',
      'iconTone' => 'green',
      'tooltip' => t('Frontend telemetry collection and event allowlist'),
    ]);
    ?>
  </div>
</div>
