<?php
include '../db.php';
if (session_status() == PHP_SESSION_NONE) {
    session_start();
}

if (!isset($_SESSION['mpid']) || $_SESSION['mpid'] !== 1) {
    header("Location: http://localhost/LoanApprovalPredction/Admin.php");
    exit();
}

$name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);
date_default_timezone_set("Asia/Kathmandu");
$date = date("Y-m-d H:i:s");
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo htmlspecialchars($name); ?></title>
    <link rel="icon" href="../images/Icon.png">
    <script src="../CSS/tailwindcss.css"></script>
</head>
<body class="bg-green-50 min-h-screen">
    <header class="sticky top-0 z-50">
        <?php include '../includes/newnavbar.php'; ?>
    </header>
    <main class="p-6">
        <div class="max-w-4xl mx-auto bg-white shadow rounded-xl p-6">
            <h1 class="text-3xl font-bold text-gray-800 mb-6">About Community Development Committee</h1>
            <p class="text-gray-600 mb-4">
                The Community Development Committee is a dedicated group of individuals working towards the betterment of our community. We strive to address local issues, promote social initiatives, and foster community engagement. Through collaboration and active participation, we aim to create a thriving and inclusive environment for all residents.
            </p>

            <h2 class="text-2xl font-semibold text-gray-800 mt-8 mb-4">Our Mission</h2>
            <p class="text-gray-600 mb-4">
                Our mission is to enhance the quality of life in our community by implementing sustainable development practices, organizing community events, and advocating for social and economic growth. We believe in fostering partnerships with local businesses, organizations, and residents to create a strong sense of unity and empowerment.
            </p>

            <h2 class="text-2xl font-semibold text-gray-800 mt-8 mb-4">Our Values</h2>
            <ul class="list-disc list-inside text-gray-600 mb-4">
                <li>Community Engagement</li>
                <li>Inclusivity and Diversity</li>
                <li>Sustainability</li>
                <li>Collaboration</li>
                <li>Transparency</li>
                <li>Accountability</li>
            </ul>

            <p class="text-gray-600 text-sm mt-6">Current Date and Time: <?php echo htmlspecialchars($date); ?></p>
        </div>
    </main>
</body>
</html>