<?= $this->layout('_layout', ['title' => $title]); ?>

<main class="main">
    <?= $this->insert('includes/aside_info') ?>
    <div class="content">
        <div class="h2-title h2-title-content flex-s-c">
            <span>My Account</span>
        </div>

        <?= $this->insert('user/_user'); ?>
        <br>

        <div class="p-2 bg-neutral-200 mt-16">
            <form action="<?= __redirect("auth/manage/passwd") ?>" method="post">
                <?= __csrf(); ?>
                <div class="fields">
                    <div class="fieldGroup">
                        <span>Old password *</span>
                        <input type="password" name="oldpasswd" required autocomplete="off">
                    </div>
                    <div class="fieldGroup">
                        <span>New password *</span>
                        <input type="password" name="newpasswd" required autocomplete="off">
                    </div>
                </div>

                <button type="submit"> Save</button>
            </form>
        </div>
    </div>
</main>