<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 align-items-center">
            <div class="col-lg-5 col-md-5 col-12 px-0 px-md-4 px-lg-5">
                <?php $ad['active']=4; $this->load->view('user-sidebar',$ad); ?>
            </div>
            <div class="col-lg-7 col-md-7 col-12 px-md-5">
                <div class="orders-inner pe-md-5">
                    <form class="pe-md-4" method="post" action="<?php echo base_url("profile/updateAccontInformation"); ?>" id="saveUserProfileForm">
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="form-group mb-3">
                                    <input type="text" class="form-control" placeholder="NAME" name="name" value="<?php echo $profile['name']; ?>" required>
                                    <i class="fa fa-pencil-square-o"></i>
                                </div>
                            </div>
                            <div class="col-lg-12">
                                <div class="form-group mb-3">
                                    <input type="text" class="form-control" placeholder="CONTACT" name="mobile_no" value="<?php echo $profile['mobile_no']; ?>" required>
                                    <i class="fa fa-pencil-square-o"></i>
                                </div>
                            </div>
                            <div class="col-lg-12">
                                <div class="form-group mb-3">
                                    <input type="text" class="form-control" placeholder="EMAIL" name="email" value="<?php echo $profile['email']; ?>" required>
                                    <i class="fa fa-pencil-square-o"></i>
                                </div>
                            </div>
                            <div class="col-lg-12 mb-4">
                                <div class="form-group mb-3">
                                    <textarea class="form-control" placeholder="DELIVERY ADDRESS" rows="5" name="address"><?php echo $profile['address']; ?></textarea>
                                    <i class="fa fa-pencil-square-o"></i>
                                </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>