
<!DOCTYPE html>
<html lang="en">
<?php require_once('../include/head.php'); ?>
<body class="dark-theme">
<?php require_once('../include/notify.php'); ?>

<script>
    var notify = {
        timeout: "5000",
    }
</script>
<!--Full Layout-->
<div class="panel-layout">
    <!--Header-->
   <?php require_once('../include/header.php'); ?>

    <!--/Header-->

    <!--Side Nav-->
   <?php require_once('../include/sidebar.php'); ?>

    <!--/Side Nav-->

    <div class="page-container">
        <div class="main-content">
            <div class="section-gap">
                <div class="container-fluid">
                                            
                                                                <!--Page Content-->
                    
    
    <div class="row">
    <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
        <div class="site-card">
            <div class="site-card-header">
                <h3 class="title">Profile Settings</h3>
            </div>
            <div class="site-card-body">
                <form action="../settings/profile-update" method="post" enctype="multipart/form-data">
                    <input type="hidden" name="_token" value="pzdBq7PIwEoy7TNI6XmtTTtRDVYQZYNkvhzWaI03">                    <div class="row">
                        <div  class="col-xl-3 d-none">
                            <div class="mb-3">
                                <div class="body-title">Avatar:</div>
                                <div class="wrap-custom-file">
                                    <input
                                        type="file"
                                        name="avatar"
                                        id="avatar"
                                        accept=".gif, .jpg, .png"
                                    />


                                    <label for="avatar" >
                                        <img
                                            class="upload-icon"
                                            src="/assets2/global/materials/upload.svg"
                                            alt=""
                                        />
                                        <span>Update Avatar</span>
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="progress-steps-form">
                        <div class="row">
                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1" class="form-label">First Name</label>
                                <div class="input-group">
                                    <input
                                        type="text"
                                        class="form-control"
                                        name="first_name"
                                        value="<?php echo $infos['fname'] ?>"
                                        placeholder="First Name"
                                    />
                                </div>
                            </div>
                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1" class="form-label">Last Name</label>
                                <div class="input-group">
                                    <input
                                        type="text"
                                        class="form-control"
                                        name="last_name"
                                        value="<?php echo $infos['lname'] ?>"
                                        placeholder="Last Name"
                                    />
                                </div>
                            </div>
                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1" class="form-label">Username</label>
                                <div class="input-group">
                                    <input
                                        type="text"
                                        class="form-control"
                                        name="username"
                                        value="<?php echo $infos['uname'] ?>"
                                        placeholder="Username"
                                    />
                                </div>
                            </div>
                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1" class="form-label">Gender</label>
                                <div class="input-group">
                                    <select name="gender" id="kycTypeSelect" class="nice-select site-nice-select"
                                            required>
								             <option  selected value="<?php echo $infos['gender'] ?>"><?php echo $infos['gender'] ?></option>			
                                                                                    <option  selected
                                                     value="male">male</option>
                                                                                    <option  value="female">female</option>
                                                                                    <option  value="other">other</option>
                                                                            </select>
                                </div>
                            </div>

                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1"
                                       class="form-label">Date of Birth</label>
                                <div class="input-group">
                                    <input
                                        type="date"
                                        name="date_of_birth"
                                        class="form-control"
                                        value="<?php  isset($infos['dob']) ?>"
                                        placeholder="Date of Birth"
                                    />
                                </div>
                            </div>

                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1"
                                       class="form-label">Email Address</label>
                                <div class="input-group">
                                    <input type="email" disabled class="form-control disabled"
                                           value="<?php echo $infos['email'] ?>" placeholder="Email Address"
                                    />
                                </div>
                            </div>
                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1" class="form-label">Phone</label>
                                <div class="input-group">
                                    <input
                                        type="text"
                                        class="form-control"
                                        name="phone"
                                        value="<?php echo ''; //echo $infos['phone'] ?>"
                                        placeholder="Phone"
                                    />
                                </div>
                            </div>
                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1" class="form-label">Country</label
                                >
                                <div class="input-group">
                                    <input
                                        type="text"
                                        class="form-control disabled"
                                        value="<?php echo $infos['country'] ?>"
                                        placeholder="Country"
                                        disabled
                                    />
                                </div>
                            </div>

                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1" class="form-label">City</label>
                                <div class="input-group">
                                    <input
                                        type="text"
                                        class="form-control"
                                        name="city"
                                        value="<?php echo $infos['city'] ?>"
                                        placeholder="City"
                                    />
                                </div>
                            </div>
                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1" class="form-label">Zip</label>
                                <div class="input-group">
                                    <input
                                        type="text"
                                        class="form-control"
                                        name="zip_code"
                                        value="<?php echo $infos['zip'] ?>"
s                                        placeholder="Zip"
                                    />
                                </div>
                            </div>
                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1" class="form-label">Address</label>
                                <div class="input-group">
                                    <input
                                        type="text"
                                        class="form-control"
                                        name="address"
                                        value="<?php echo $infos['address'] ?>"
                                        placeholder="Address"
                                    />
                                </div>
                            </div>
                            <div class="col-xl-6 col-md-12">
                                <label for="exampleFormControlInput1"
                                       class="form-label">Joining Date</label>
                                <div class="input-group">
                                    <input
                                        type="text"
                                        class="form-control disabled"
                                        value="<?php echo  date('M d Y',strtotime($infos['created_at'])); ?>"
                                        placeholder="Joining Date"
                                        disabled
                                    />
                                </div>
                            </div>

                            <div class="col-xl-6 col-md-12">
                                <button type="submit" class="site-btn blue-btn">Save Changes</button>
                            </div>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>

    
    <div class="row">

    
    <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
    <div class="site-card">
        <div class="site-card-header">
            <h3 class="title">2FA Security</h3>
        </div>
        <div class="site-card-body">

            
                <div class="progress-steps-form">
                    <p>Two Factor Authentication (2FA) Strengthens Access Security By Requiring Two Methods (also Referred To As Factors) To Verify Your Identity. Two Factor Authentication Protects Against Phishing, Social Engineering And Password Brute Force Attacks And Secures Your Logins From Attackers Exploiting Weak Or Stolen Credentials.</p>
                    <p>Scane the QR code with you Google Authenticator App</p>

                    


                    <img src="data:image/png;base64, ">

                    <p class="pt-2">
                                                    Enter Your Password
                                            </p>

                    <form action="../settings/action-2fa" method="POST">
                        <input type="hidden" name="_token" value="pzdBq7PIwEoy7TNI6XmtTTtRDVYQZYNkvhzWaI03">
                        <div class="input-group">
                            <input type="password" name="one_time_password" class="form-control">
                        </div>
                        <div class="buttons mt-4">
                                                            <button type="submit" class="site-btn blue-btn" value="disable"
                                        name="status">Disable 2FA<i
                                        class="anticon anticon-double-right"></i></button>
                                                    </div>

                    </form>

                </div>

                    </div>
    </div>
</div>

    <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
                    <div class="site-card">
                <div class="site-card-header">
                    <h3 class="title">KYC</h3>
                </div>
                <div class="site-card-body">

                                        <?php	if($infos['kyc'] ==2){ ?>
										<div class="site-badge success">KYC Verified</div> 
										<?php }elseif($infos['kyc']==1){ ?>
										
										<div class="site-badge bg-warning">KYC Verification Pending</div> 

										<?php }else{ ?>
										<div class="site-badge bg-danger">KYC Unverified</div> 										
										<?php } ?>
                        <p class="mt-3">ok all is ok</p>
                                    </div>
            </div>
        
        <div class="site-card">
            <div class="site-card-header">
                <h3 class="title">Change Password</h3>
            </div>
            <div class="site-card-body">
                <a href="../change-password" class="site-btn blue-btn">Change Password</a>
            </div>
        </div>
    </div>
</div>

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


    <!-- Automatic Popup -->
    
    <!-- /Automatic Popup End -->
</div>
<!--/Full Layout-->

<script src="/assets2/global/js/jquery.min.js"></script>
<script src="/assets2/global/js/jquery-migrate.js"></script>

<script src="/assets2/frontend/js/bootstrap.bundle.min.js"></script>
<script src="/assets2/frontend/js/scrollUp.min.js"></script>

<script src="/assets2/frontend/js/owl.carousel.min.js"></script>
<script src="/assets2/global/js/waypoints.min.js"></script>
<script src="/assets2/frontend/js/jquery.counterup.min.js"></script>
<script src="/assets2/frontend/js/jquery.nice-select.min.js"></script>
<script src="/assets2/frontend/js/lucide.min.js"></script>
<script src="/assets2/frontend/js/magnific-popup.min.js"></script>
<script src="/assets2/frontend/js/aos.js"></script>
<script src="/assets2/global/js/datatables.min.js" type="text/javascript" charset="utf8"></script>
<script src="/assets2/frontend/js/main.js?var=5"></script>
<script src="/assets2/frontend/js/cookie.js"></script>
<script src="/assets2/global/js/custom.js?var=5"></script>


    <script>
        (function ($) {
            'use strict';
            // To top
            $.scrollUp({
                scrollText: '<i class="fas fa-caret-up"></i>',
                easingType: 'linear',
                scrollSpeed: 500,
                animation: 'fade'
            });
        })(jQuery);
    </script>

<script type="text/javascript" src="/assets2/vendor/mckenziearts/laravel-notify/js/notify.js"></script>    <script>
        // Color Switcher
        $(".color-switcher").on('click', function () {
            "use strict"
            $("body").toggleClass("dark-theme");
            var url = '/theme-mode';
            $.get(url)
        });
    </script>





	<?php 
			require_once('../include/footer.php');
	?>

</body>
</html>

