<?= $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/email") ?>" method="post">
                <?= __csrf(); ?>
                <div class="fields">
                    <div class="fieldGroup">
                        <span>Old mail *</span>
                        <input type="text" name="oldemail" required autocomplete="off" minlength="7">
                    </div>
                    <div class="fieldGroup">
                        <span>New mail *</span>
                        <input type="text" name="newemail" required autocomplete="off" minlength="7">
                    </div>
                </div>
                    <button type="submit"> Save</button>
            </form>
        </div>
    </div>
</main>