<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Dashboard - ICPS</title>
    <link rel="stylesheet" href="<?= base_url(); ?>assets/newstyle/assets/css/bootstrap.min.css" />
</head>
<body>
    <div class="container mt-5">
        <div class="row">
            <div class="col-md-12">
                <div class="card">
                    <div class="card-header">
                        <h3>Welcome to Dashboard</h3>
                        <div class="float-right">
                            <a href="<?= site_url('logout') ?>" class="btn btn-danger">Logout</a>
                        </div>
                    </div>
                    <div class="card-body">
                        <h4>Login Information:</h4>
                        <p><strong>User Type:</strong> <?= ucfirst($user_type) ?></p>
                        <p><strong>District:</strong> <?= ucfirst(str_replace('_', ' ', $district)) ?></p>
                        <p><strong>Login Time:</strong> <?= date('Y-m-d H:i:s') ?></p>
                        
                        <div class="alert alert-success">
                            <h5>Login Successful!</h5>
                            <p>You have successfully logged into the ICPS system.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>