<?php  
$row_profile=$this->db->where('c_id',$this->session->userdata('user_id'))->get('customer')->result_array();
?>
<!-- Breadcrumb -->
        <section class="breadcrumb breadcrumb-list mb-0">
            <span class="primary-right-round"></span>
            <div class="container">
                <h1 class="text-white">User Profile</h1>
                <ul>
                    <li><a href="<?php echo base_url(); ?>">Home</a></li>
                    <li>User Profile</li>
                </ul>
            </div>
        </section>
        <!-- /Breadcrumb -->

        <!-- Dashboard Menu -->
        <div class="dashboard-section">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="dashboard-menu">
                            <ul>
                                <li>
                                    <a href="<?php echo base_url(); ?>booking/history/" >
                                        <img src="<?php echo base_url(); ?>assets/img/icons/booking-icon.svg" alt="Icon">
                                        <span>My Bookings</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="<?php echo base_url(); ?>profile/" class="active">
                                        <img src="<?php echo base_url(); ?>assets/img/icons/profile-icon.svg" alt="Icon">
                                        <span>Profile Setting</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /Dashboard Menu -->

        <!-- Page Content -->
        <div class="content court-bg">
            <div class="container">

                <div class="coach-court-list profile-court-list">
                    <ul class="nav">
                        <li><a class="active" href="<?php echo base_url(); ?>profile/">Profile</a></li>
                    </ul>
                </div>

                <div class="row">
                    <div class="col-sm-12">
                        <div class="profile-detail-group">
                            <div class="card ">
                                <div class="alert alert-success SuccMsg" style="display: none;">
                                  <strong>Successfully Updated Your Profile !</strong>
                                </div>
                                <form method="post" class="loginFormD prfileFormD" id="prfileFormD">
                                    <div class="row">
                                        <div class="col-lg-4 col-md-6">
                                            <div class="input-space">
                                                <label  class="form-label">Name</label>
                                                <input type="text" class="form-control" id="u_name" value="<?php echo $row_profile['0']['name']; ?>" name="u_name" placeholder="Full Name" required>
                                            </div>
                                        </div>
                                        <div class="col-lg-4 col-md-6">
                                            <div class="input-space">
                                                <label  class="form-label">Email</label>
                                                <input type="email" class="form-control" value="<?php echo $row_profile['0']['email']; ?>" id="u_email" name="u_email" placeholder="Email ID" required>
                                            </div>
                                        </div>
                                        <div class="col-lg-4 col-md-6">
                                            <div class="input-space">
                                                <label  class="form-label">Phone Number</label>
                                                <input type="text" class="form-control" id="u_mobile" value="<?php echo $row_profile['0']['mobile']; ?>" name="u_mobile" placeholder="Mobile Number">
                                            </div>
                                        </div>
                                        <div class="col-lg-12 col-md-12">
                                            <div class="input-space">
                                                <label for="comments" class="form-label">Address</label>
                                                <textarea class="form-control" id="u_address" name="u_address" rows="3" placeholder="Full Address" required><?php echo $row_profile['0']['address']; ?></textarea>
                                            </div>
                                        </div>
                                        <div class="save-changes text-end info-about">
                                        <button type="submit" class="btn btn-secondary save-profile">Save Change</button>
                                        </div>
                                        </div>
                                        </form>
                                        <form method="post" class="loginFormD prfileFormD" id="PassForm">
                                        <div class="row">
                                        <div class="address-form-head">
                                            <h4>Edit Password</h4>
                                        </div>
                                        <div class="alert alert-success SuccPMsg" style="display: none;">
                                            <strong>Successfully Updated Your Password !</strong>
                                        </div>
                                        <div class="alert alert-danger WorningPMsg" style="display: none;">
                                            <strong> Please Enter Correct Old Password!</strong>
                                        </div>
                                        <div class="col-md-12 col-xs-12">
                                            <div class="input-space">
                                               <input type="password" class="form-control" id="old_password" name="old_password" placeholder="Old Password" required>
                                            </div>
                                        </div>
                                        <div class="col-md-12 col-xs-12">
                                            <div class="input-space">
                                               <input type="password" class="form-control" id="u_password" name="u_password" placeholder="New Password" required>
                                            </div>
                                        </div>
                                        <div class="col-md-12 col-xs-12">
                                            <div class="input-space">
                                               <input type="password" class="form-control" id="u_cpassword" name="u_cpassword" placeholder="Confirm New Password" required><br>
                                            </div>
                                        </div>
                                    <div class="save-changes text-end">
                                        <button type="submit" class="btn btn-secondary save-profile">Save Change</button>
                                    </div>
                                    </div>
                                </form>
                            </div>
                            
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <!-- /Page Content -->

