<!DOCTYPE html>
<html>

<head>
    <title>Edit User</title>
</head>

<body>
    <h1>Edit User</h1>
    <form method="post" action="/user/update/<?= $user['id'] ?>">
        <?= csrf_field(); ?>
        <label>Password:</label><input type="password" name="password" required><br>
        <label>First Name:</label><input type="text" name="firstname" value="<?= $user['firstname'] ?>" required><br>
        <label>Last Name:</label><input type="text" name="lastname" value="<?= $user['lastname'] ?>" required><br>
        <label>Cell Phone Number:</label><input type="text" name="cellphone" value="<?= $user['cellphone'] ?>"
            required><br>
        <label>Email:</label><input type="email" name="email" value="<?= $user['email'] ?>" required><br>
        <label>Address Street:</label><input type="text" name="address_street" value="<?= $user['address_street'] ?>"
            required><br>
        <label>City:</label><input type="text" name="city" value="<?= $user['city'] ?>" required><br>
        <label>State:</label><input type="text" name="state" value="<?= $user['state'] ?>" required><br>
        <label>Zip:</label><input type="text" name="zip" value="<?= $user['zip'] ?>" required><br>
        <label>Role:</label><input type="text" name="role" value="<?= $user['role'] ?>" required><br>
        <label>Accept School Policy:</label><input type="checkbox" name="accept_school_policy" value="1"
            <?= $user['accept_school_policy'] ? 'checked' : '' ?>><br>
        <input type="submit" value="Update">
    </form>
</body>

</html>