<%- include('../Includes/begin.ejs') %>
<link rel="stylesheet" href="../CSS/admin-dashboard.css">
<div class="container-fluid">
    <div id="wrapper">
        <%- include('../Includes/admin_nav.ejs') %>
        <section id="content-wrapper">
            <main role="main" class="pt-5 main">
                <div class="main-content">
                    <div class="header pb-4 pb-sm-8 pt-5 pt-lg-8 d-flex align-items-center"
                        style="height: 100px; background-size: cover; background-position: center top;">
                    </div>
                    <div class="container-fluid mt--7">
                        <div class="row">
                            <div class="col-xl-12 order-xl-1">
                                <div class="card bg-secondary shadow">
                                    <div class="card-header bg-white border-0">
                                        <div class="row align-items-center">
                                            <div class="col-8">
                                                <h3 class="mb-0" style="color: brown;">ADMIN SETTINGS</h3>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="card-body">
                                        <%- include('../Includes/messages') %>
                                        <form action="/admin/info_settings" method="POST">
                                            <h6 class="heading-small text-muted mb-4">Personal Information</h6>
                                            <div class="pl-lg-4">
                                                <div class="row">
                                                    <input hidden value="<%= user.email %>" name="old_email" />
                                                </div>
                                                <div class="row">
                                                    <div class="col-lg-6">
                                                        <div class="form-group">
                                                            <input type="email" id="email" name="email"
                                                                class="form-control form-control-alternative"
                                                                value="<%= user.email %>" placeholder="Email" required>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-lg-6">
                                                        <div class="form-group focused">
                                                            <input type="text" id="name" name="name"
                                                                class="form-control form-control-alternative"
                                                                value="<%= user.name %>" placeholder="Name" required>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <hr class="my-4">
                                            <h6 class="heading-small text-muted mb-4">Confirm Password</h6>
                                            <div class="pl-lg-4">
                                                <div class="row">
                                                    <div class="col-lg-12">
                                                        <div class="form-group">
                                                            <input type="password" name="password"
                                                                class="form-control form-control-alternative"
                                                                placeholder="Confirm Password" required>
                                                        </div>
                                                    </div>
                                                </div>
                                                <hr class="my-4">
                                                <button type="submit" class="btn btn-primary btn-block">UPDATE
                                                    INFORMATION</button>
                                        </form>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </main>
        </section>
    </div>
</div>

<%- include('../Includes/admin_end.ejs') %>