<link rel="stylesheet" href="<?php echo base_url(); ?>assets/ecommerce/scss/style.css" />
<div class="user-profile mt-5 mb-5">
    <div class="container">
        <div class="row justify-content-between">
            <div class="col-lg-12">
                <div class="alert alert-success alert-dismissible" role="alert" <?php if($this->session->flashdata('message')==''){ ?> style="display:none" <?php } ?> >
                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    <?php echo $this->session->flashdata('message'); ?>
                </div>
                <div class="alert alert-danger alert-dismissible" role="alert" <?php if($this->session->flashdata('emessage')==''){ ?> style="display:none" <?php } ?> >
                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    <?php echo $this->session->flashdata('emessage'); ?>
                </div>
            </div>
        </div>
        <div class="row row align-items-center">
            <div class="col-lg-5 col-md-5 col-12 px-lg-5 account-sidebar">
                <?php $ad['active']=5; $this->load->view('user-sidebar',$ad); ?>
            </div>
            <div class="col-lg-7 col-md-7 col-12 px-md-5">
                <div class="orders-inner mb-5 pe-md-5">
                    <form method="post" action="<?php echo base_url("profile/changePassword"); ?>" id="changePasswordForm" class="pe-md-4">
                        <input type="hidden" name="email" value="<?php echo $profile['email']; ?>">
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="form-group mb-3">
                                    <input type="password" class="form-control" placeholder="Old Password" name="password">
                                </div>
                            </div>
                            <div class="col-lg-12">
                                <div class="form-group mb-3">
                                    <input type="password" class="form-control" placeholder="New Password" name="new_password">
                                </div>
                            </div>
                            <div class="col-lg-12">
                                <div class="form-group mb-5">
                                    <input type="password" class="form-control" placeholder="Re-type New Password" name="confirm_password">
                                </div>
                            </div>
                            <div class="col-lg-12 text-center">
                                <button type="submit" class="btn btn-primary">Save Changes</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- orders1 end -->