<?php
declare(strict_types=1);
ini_set('display_errors', '0');
if (!isset($featureTitle, $featureLink, $featureDescription)) {
    http_response_code(500);
    exit('Feature route configuration is missing.');
}
require_once __DIR__ . '/includes/console_shell.php';
require_login();
$acl = require_acl('can_view', $featureLink);
console_header($featureTitle, $featureLink);
?>
<section class="max-w-5xl mx-auto">
    <div class="bg-white border border-slate-200 rounded-2xl shadow-sm overflow-hidden">
        <div class="bg-gradient-to-r from-brand-700 to-brand-600 px-6 py-7 text-white">
            <p class="text-xs font-bold uppercase tracking-[0.2em] text-brand-100">HRMS Module Route</p>
            <h1 class="text-2xl font-extrabold mt-2"><?= h($featureTitle) ?></h1>
            <p class="text-sm text-brand-100 mt-2"><?= h($featureDescription) ?></p>
        </div>
        <div class="p-6">
            <div class="flex items-start gap-4 rounded-xl border border-amber-200 bg-amber-50 p-5">
                <div class="w-10 h-10 rounded-lg bg-amber-100 text-amber-700 flex items-center justify-center">
                    <i class="fa-solid fa-screwdriver-wrench"></i>
                </div>
                <div>
                    <h2 class="font-bold text-slate-900">Route activated</h2>
                    <p class="text-sm text-slate-600 mt-1">This menu URL, shared login and role permission are active. The operational workflow was not present in the previous console and is reserved here for module implementation.</p>
                    <p class="text-xs font-mono text-slate-500 mt-3"><?= h($featureLink) ?></p>
                </div>
            </div>
            <div class="mt-6 flex gap-3">
                <a href="/dashboard.php" class="inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-brand-600 text-white text-sm font-semibold hover:bg-brand-700">
                    <i class="fa-solid fa-arrow-left"></i> Dashboard
                </a>
            </div>
        </div>
    </div>
</section>
<?php console_footer(); ?>