<!DOCTYPE html>
<html>
<head>
     <?= $this->include('admin/inc/title') ?>
    <link rel="stylesheet"
          href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
</head>
<body>
 <?= $this->include('admin/inc/header') ?>
<div class="container mt-4">

    <div class="card">
        <div class="card-header bg-primary text-white">
            <h5 class="mb-0">My Profile</h5>
        </div>

        <div class="card-body">

            <table class="table table-bordered">
                <tr>
                    <th width="30%">Full Name</th>
                    <td><?= esc($user['name']) ?></td>
                </tr>
                <tr>
                    <th>Username</th>
                    <td><?= esc($user['username']) ?></td>
                </tr>
                <tr>
                    <th>Mobile Number</th>
                    <td><?= esc($user['mobile_number']) ?></td>
                </tr>
                <tr>
                    <th>Role</th>
                    <td>
                        <span class="badge badge-info">
                            <?= esc($user['role']) ?>
                        </span>
                    </td>
                </tr>
                <tr>
                    <th>Account Created On</th>
                    <td><?= date('d M Y, h:i A', strtotime($user['added_date_time'])) ?></td>
                </tr>
            </table>

            <a href="<?= base_url('home') ?>" class="btn btn-secondary">
                ← Back to Dashboard
            </a>

        </div>
    </div>

</div>
 <?= $this->include('admin/inc/footer') ?>
</body>
</html>
