<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Backoffice</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
    <style>
        body {
            display: flex;
            min-height: 100vh;
        }

        #sidebar {
            width: 250px;
            background-color: #f8f9fa;
            border-right: 1px solid #dee2e6;
            padding-top: 20px;
            flex-shrink: 0;
        }

        #content {
            flex-grow: 1;
            padding: 20px;
        }

        .nav-link {
            padding: 8px 16px;
        }

        .nav-link.active {
            background-color: #0d6efd;
            color: white;
            border-radius: 5px;
        }

        .table-responsive {
            overflow-x: auto;
        }

    </style>
</head>
<body>

    <aside id="sidebar">
        <div class="d-flex flex-column">
            <a href="#" class="nav-link active">Dashboard</a>
            <a href="#" class="nav-link">Users</a>
            <a href="#" class="nav-link">Products</a>
            <a href="#" class="nav-link">Orders</a>
            <a href="#" class="nav-link">Settings</a>
        </div>
    </aside>

    <main id="content">
        <h1>Dashboard</h1>

        <div class="row">
            <div class="col-md-4">
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title">Total Users</h5>
                        <p class="card-text">150</p>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title">Total Products</h5>
                        <p class="card-text">500</p>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title">Total Orders</h5>
                        <p class="card-text">200</p>
                    </div>
                </div>
            </div>
        </div>

        <h2 class="mt-4">Recent Orders</h2>
        <div class="table-responsive">
            <table class="table table-striped table-bordered">
                <thead>
                    <tr>
                        <th>Order ID</th>
                        <th>User</th>
                        <th>Date</th>
                        <th>Total</th>
                        <th>Status</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>123</td>
                        <td>John Doe</td>
                        <td>2023-10-26</td>
                        <td>$100</td>
                        <td>Shipped</td>
                    </tr>
                    <tr>
                        <td>124</td>
                        <td>Jane Smith</td>
                        <td>2023-10-25</td>
                        <td>$50</td>
                        <td>Pending</td>
                    </tr>
                    <tr>
                        <td>125</td>
                        <td>David Lee</td>
                        <td>2023-10-24</td>
                        <td>$75</td>
                        <td>Delivered</td>
                    </tr>

                </tbody>
            </table>
        </div>

        <h2 class="mt-4">User Management</h2>
        <div class="table-responsive">
            <table class="table table-striped table-bordered">
                <thead>
                    <tr>
                        <th>User ID</th>
                        <th>Username</th>
                        <th>Email</th>
                        <th>Role</th>
                        <th>Actions</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>admin</td>
                        <td>admin@example.com</td>
                        <td>Administrator</td>
                        <td>
                            <button class="btn btn-sm btn-primary"><i class="bi bi-pencil"></i></button>
                            <button class="btn btn-sm btn-danger"><i class="bi bi-trash"></i></button>
                        </td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>user1</td>
                        <td>user1@example.com</td>
                        <td>User</td>
                        <td>
                            <button class="btn btn-sm btn-primary"><i class="bi bi-pencil"></i></button>
                            <button class="btn btn-sm btn-danger"><i class="bi bi-trash"></i></button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </main>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>