<!DOCTYPE html>
<html lang="en">
<head>
<?php

include "header.php";

?>	
</head>
<body data-background-color="dark">
    <div id="app">
        
        <!--/PayPal-->
            
        <!--Start of Tawk.to Script-->
        <script type="text/javascript">
        {tawk to codess}
        </script>
        <!--End of Tawk.to Script-->
		<div class="wrapper">
			        <div class="main-header">
    <!-- Logo Header -->
<div class="logo-header" data-background-color="blue">
        <a href="/" class="logo" style="font-size: 27px; color:#fff;">
            P.S.M
        </a>
    <button class="ml-auto navbar-toggler sidenav-toggler" type="button" data-toggle="collapse" data-target="collapse" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon">
                <i class="icon-menu "></i>
            </span>
        </button>
        <button class="topbar-toggler more"><i class="icon-options-vertical "></i></button>
        <div class="nav-toggle">
            <button class="btn btn-toggle toggle-sidebar">
                <i class="icon-menu "></i>
            </button>
        </div>
        
    </div>
    <!-- End Logo Header -->

    <!-- Navbar Header -->
    <nav class="navbar navbar-header navbar-expand-lg" data-background-color="blue">
        
        <div class="container-fluid">
            <div class="collapse" id="search-nav">
                
                <script>
                    document.getElementById('searchform').addEventListener('subit' searchuser);
                   function searchuser(){
                       console.log('ddj');
                       let url = "https://platinumsignalmarket.com/trader/admin/dashboard/manageusers";
                       window.location.href = url;
                   }
               </script>
            </div>
            <ul class="navbar-nav topbar-nav ml-md-auto align-items-center">
                <li>
                    <form action="javascript:void(0)" method="post" id="styleform">
                        <div class="form-group">
                            <label class="style_switch">
                                <input name="style" id="style" type="checkbox" value="true" class="modes">
                                <span class="slider round"></span>
                            </label>
                        </div> 
                                                <input type="hidden" name="_token" value="yK4ImZn4tFp3FCzhv1hy9ADjxOMulCa9eCDdVVZt">
                    </form>
                    
                </li>
                                <li class="nav-item dropdown hidden-caret">
                    <a class="nav-link" data-toggle="dropdown" href="#" aria-expanded="false">
                        <i class="text-white fas fa-user"></i>
                    </a>
                   
                    <ul class="dropdown-menu dropdown-user animated fadeIn">
                        <div class="dropdown-user-scroll scrollbar-outer">
                            <li>
                                <a class="dropdown-item" href="https://platinumsignalmarket.com/trader/admin/dashboard/adminprofile">Account Settings</a>
                                <a class="dropdown-item" href="https://platinumsignalmarket.com/trader/admin/dashboard/adminchangepassword">Change Password</a>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" href="https://platinumsignalmarket.com/trader/adminlogin/logout"
                                onclick="event.preventDefault();
                                document.getElementById('logoutform').submit();">
                                Logout
                                </a>
                                <form id="logoutform" action="https://platinumsignalmarket.com/trader/adminlogin/logout" method="POST" style="display: none;">
                                    <input type="hidden" name="_token" value="yK4ImZn4tFp3FCzhv1hy9ADjxOMulCa9eCDdVVZt">
                                </form>
                            </li>
                        </div>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
    <!-- End Navbar -->
</div>


<script type="text/javascript">
    //create investment
        $("#styleform").on('change',function(){
        $.ajax({
            url: "https://platinumsignalmarket.com/trader/admin/dashboard/changestyle",
            type: 'POST',
            data:$("#styleform").serialize(),
            success: function (data) {
				location.reload(true);
            },
            error: function (data) {
                console.log('Something went wrong');
            },

        });
    });
    
</script>
        <!-- Stored in resources/views/child.blade.php -->

<!-- Sidebar -->
<?php

    include "sidebar.php";

?>

<!-- End Sidebar -->
        <div class="main-panel bg-light">
            <div class="content bg-light">
                <div class="page-inner">
                    <div class="mt-2 mb-4">
                    <h1 class="title1 text-dark">Managers List</h1>
                    </div>
                    <div>
    </div>            <div>
    </div>                   
                    <div class="mb-5 row">
                        <div class="col p-4 shadow card bg-light">
                            <div class="table-responsive" data-example-id="hoverable-table">
                                <table id="ShipTable" class="table table-hover text-dark"> 
                                    <thead> 
                                        <tr> 
                                            <th>USER ID</th>
                                            <th>FIRSTNAME</th>
                                            <th>LASTNAME</th>
                                            <th>EMAIL</th>
                                            <th>PHONE</th>
                                            <th>TYPE</th>
                                            <th>STATUS</th>
                                            <th>ACTION</th>
                                        </tr> 
                                    </thead> 
                                    <tbody> 
                                                                        <tr>
                                        <td>4</td>
                                        <td>Manager</td>
                                        <td>One</td>
                                        <td>admin@happ.com</td>
                                        <td>88383883</td>
                                        <td>Admin</td>
                                        <td>blocked</td>
                                        <td>
                                            <div class="dropdown">
                                                <a class="btn btn-secondary btn-sm dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                                Actions
                                                </a>
                                                <div class="dropdown-menu bg-light" aria-labelledby="dropdownMenuLink">

                                                                                                        <a class="m-1 btn btn-primary btn-sm" href="https://platinumsignalmarket.com/trader/admin/dashboard/unblock/4">Unblock</a> 
                                                                                                        <a href="#" data-toggle="modal" data-target="#resetpswdModal4"  class="m-1 btn btn-warning btn-sm">Reset Password</a>
                                                    
                                                    <a href="#" data-toggle="modal" data-target="#deleteModal4" class="m-1 btn btn-danger btn-sm">Delete</a>
                                                    <a href="#" data-toggle="modal" data-target="#edituser4" class="m-1 btn btn-secondary btn-sm">Edit</a>
                                                    <a href="#" data-toggle="modal" data-target="#sendmailModal4" class="m-1 btn btn-info btn-sm">Send Email</a>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>


                                    <!-- Reset user password Modal -->
										<div id="resetpswdModal4" class="modal fade" role="dialog">
                                            <div class="modal-dialog">
            
                                                <!-- Modal content-->
                                                <div class="modal-content">
                                                <div class="modal-header bg-light ">
                                                    
                                                    <h4 class="modal-title text-dark">Reset Password</strong></h4>
                                                    <button type="button" class="close text-dark" data-dismiss="modal">&times;</button>
                                                </div>
                                                <div class="modal-body bg-light p-3">
                                                    <p class="text-dark">Are you sure you want to reset password for Manager to <span class="text-primary font-weight-bolder">admin01236</span></p>
                                                    <a class="btn btn-danger" href="https://platinumsignalmarket.com/trader/admin/dashboard/resetadpwd/4">Reset Now</a>
                                                </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!-- /Reset user password Modal -->

                                        <!-- Delete user Modal -->
										<div id="deleteModal4" class="modal fade" role="dialog">
                                            <div class="modal-dialog">
            
                                                <!-- Modal content-->
                                                <div class="modal-content">
                                                <div class="modal-header bg-light">
                                                    
                                                    <h4 class="modal-title text-dark">Delete Manager</strong></h4>
                                                    <button type="button" class="close text-dark" data-dismiss="modal">&times;</button>
                                                </div>
                                                <div class="modal-body bg-light p-3">
                                                    <p class="text-dark">Are you sure you want to delete Manager</p>
                                                    <a class="btn btn-danger" href="https://platinumsignalmarket.com/trader/admin/dashboard/deleletadmin/4">Yes i'm sure</a>
                                                </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!-- /Delete user Modal -->
                                        
								<!-- Edit user Modal -->
                                    <div id="edituser4" class="modal fade" role="dialog">
                                        <div class="modal-dialog">
                                                <!-- Modal content-->
                                            <div class="modal-content">
                                                <div class="modal-header bg-light">
                                                    
                                                    <h4 class="modal-title text-dark">Edit user details.</strong></h4>
                                                    <button type="button" class="close text-dark" data-dismiss="modal">&times;</button>
                                                </div>
                                                <div class="modal-body bg-light">
                                                        <form style="padding:3px;" role="form" method="post" action="https://platinumsignalmarket.com/trader/admin/dashboard/editadmin">
                                                            <h5 class=" text-dark">Firstname</h5>
                                                            <input style="padding:5px;" class="form-control bg-light text-dark" value="Manager" type="text" name="fname" required><br/>
                                                            <h5 class=" text-dark">Lastname</h5>
                                                            <input style="padding:5px;" class="form-control bg-light text-dark" value="One" type="text" name="l_name" required><br/>
                                                            <h5 class=" text-dark">Email</h5>
                                                            <input style="padding:5px;" class="form-control bg-light text-dark" value="admin@happ.com" type="email" name="email" required><br/>
                                                            <h5 class=" text-dark">Phone Number</h5>
                                                            <input style="padding:5px;" class="form-control bg-light text-dark" value="88383883" type="text" name="phone" required>
                                                            <br>
                                                            <h5 class=" text-dark">Type</h5>
                                                            <select class="form-control bg-light text-dark" name="type">
                                                                <option>Admin</option>
                                                                <option>Super Admin</option>
                                                                <option>Admin</option>
                                                            </select><br>
                                                            <input type="hidden" name="_token" value="yK4ImZn4tFp3FCzhv1hy9ADjxOMulCa9eCDdVVZt">
                                                            <input type="hidden" name="user_id" value="4">
                                                            <input type="submit" class="btn btn-info" value="Update account">
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!-- /Edit user Modal -->
                                    <!-- send a single user email Modal-->
                                    <div id="sendmailModal4" class="modal fade" role="dialog">
                                        <div class="modal-dialog">
                                            <!-- Modal content-->
                                            <div class="modal-content">
                                                <div class="modal-header bg-light">
                                                    <h4 class="modal-title text-dark">Send Email Message</h4>
                                                    <button type="button" class="close text-dark" data-dismiss="modal">&times;</button>
                                                </div>
                                                
                                                <div class="modal-body bg-light">
                                                    <p class="text-dark">This message will be sent to Manager One </p>
                                                    <form role="form" method="post" action="https://platinumsignalmarket.com/trader/admin/dashboard/sendmail">
                                                        <input type="hidden" name="user_id" value="4">
                                                        <div class="form-group">
                                                            <input type="text" name="subject" class="form-control bg-light text-dark" placeholder="Enter Email Subject">
                                                        </div>
                                                        <div class="form-group">
                                                            <textarea class="form-control bg-light text-dark" name="message " row="3" placeholder="Type your message here" required></textarea>
                                                        </div>
                                                        <div class="form-group">
                                                            <input type="hidden" name="_token" value="yK4ImZn4tFp3FCzhv1hy9ADjxOMulCa9eCDdVVZt">
                                                            <input type="submit" class="btn btn-primary" value="Send"> 
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
    
                                                                        <tr>
                                        <td>1</td>
                                        <td>Super</td>
                                        <td>Admin</td>
                                        <td>super@happ.com</td>
                                        <td>34444443</td>
                                        <td>Super Admin</td>
                                        <td>active</td>
                                        <td>
                                            <div class="dropdown">
                                                <a class="btn btn-secondary btn-sm dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                                Actions
                                                </a>
                                                <div class="dropdown-menu bg-light" aria-labelledby="dropdownMenuLink">

                                                                                                        <a class="m-1 btn btn-danger btn-sm" href="https://platinumsignalmarket.com/trader/admin/dashboard/ublock/1">Block</a>
                                                                                                        <a href="#" data-toggle="modal" data-target="#resetpswdModal1"  class="m-1 btn btn-warning btn-sm">Reset Password</a>
                                                    
                                                    <a href="#" data-toggle="modal" data-target="#deleteModal1" class="m-1 btn btn-danger btn-sm">Delete</a>
                                                    <a href="#" data-toggle="modal" data-target="#edituser1" class="m-1 btn btn-secondary btn-sm">Edit</a>
                                                    <a href="#" data-toggle="modal" data-target="#sendmailModal1" class="m-1 btn btn-info btn-sm">Send Email</a>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>


                                    <!-- Reset user password Modal -->
										<div id="resetpswdModal1" class="modal fade" role="dialog">
                                            <div class="modal-dialog">
            
                                                <!-- Modal content-->
                                                <div class="modal-content">
                                                <div class="modal-header bg-light ">
                                                    
                                                    <h4 class="modal-title text-dark">Reset Password</strong></h4>
                                                    <button type="button" class="close text-dark" data-dismiss="modal">&times;</button>
                                                </div>
                                                <div class="modal-body bg-light p-3">
                                                    <p class="text-dark">Are you sure you want to reset password for Super to <span class="text-primary font-weight-bolder">admin01236</span></p>
                                                    <a class="btn btn-danger" href="https://platinumsignalmarket.com/trader/admin/dashboard/resetadpwd/1">Reset Now</a>
                                                </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!-- /Reset user password Modal -->

                                        <!-- Delete user Modal -->
										<div id="deleteModal1" class="modal fade" role="dialog">
                                            <div class="modal-dialog">
            
                                                <!-- Modal content-->
                                                <div class="modal-content">
                                                <div class="modal-header bg-light">
                                                    
                                                    <h4 class="modal-title text-dark">Delete Manager</strong></h4>
                                                    <button type="button" class="close text-dark" data-dismiss="modal">&times;</button>
                                                </div>
                                                <div class="modal-body bg-light p-3">
                                                    <p class="text-dark">Are you sure you want to delete Super</p>
                                                    <a class="btn btn-danger" href="https://platinumsignalmarket.com/trader/admin/dashboard/deleletadmin/1">Yes i'm sure</a>
                                                </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!-- /Delete user Modal -->
                                        
								<!-- Edit user Modal -->
                                    <div id="edituser1" class="modal fade" role="dialog">
                                        <div class="modal-dialog">
                                                <!-- Modal content-->
                                            <div class="modal-content">
                                                <div class="modal-header bg-light">
                                                    
                                                    <h4 class="modal-title text-dark">Edit user details.</strong></h4>
                                                    <button type="button" class="close text-dark" data-dismiss="modal">&times;</button>
                                                </div>
                                                <div class="modal-body bg-light">
                                                        <form style="padding:3px;" role="form" method="post" action="https://platinumsignalmarket.com/trader/admin/dashboard/editadmin">
                                                            <h5 class=" text-dark">Firstname</h5>
                                                            <input style="padding:5px;" class="form-control bg-light text-dark" value="Super" type="text" name="fname" required><br/>
                                                            <h5 class=" text-dark">Lastname</h5>
                                                            <input style="padding:5px;" class="form-control bg-light text-dark" value="Admin" type="text" name="l_name" required><br/>
                                                            <h5 class=" text-dark">Email</h5>
                                                            <input style="padding:5px;" class="form-control bg-light text-dark" value="super@happ.com" type="email" name="email" required><br/>
                                                            <h5 class=" text-dark">Phone Number</h5>
                                                            <input style="padding:5px;" class="form-control bg-light text-dark" value="34444443" type="text" name="phone" required>
                                                            <br>
                                                            <h5 class=" text-dark">Type</h5>
                                                            <select class="form-control bg-light text-dark" name="type">
                                                                <option>Super Admin</option>
                                                                <option>Super Admin</option>
                                                                <option>Admin</option>
                                                            </select><br>
                                                            <input type="hidden" name="_token" value="yK4ImZn4tFp3FCzhv1hy9ADjxOMulCa9eCDdVVZt">
                                                            <input type="hidden" name="user_id" value="1">
                                                            <input type="submit" class="btn btn-info" value="Update account">
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!-- /Edit user Modal -->
                                    <!-- send a single user email Modal-->
                                    <div id="sendmailModal1" class="modal fade" role="dialog">
                                        <div class="modal-dialog">
                                            <!-- Modal content-->
                                            <div class="modal-content">
                                                <div class="modal-header bg-light">
                                                    <h4 class="modal-title text-dark">Send Email Message</h4>
                                                    <button type="button" class="close text-dark" data-dismiss="modal">&times;</button>
                                                </div>
                                                
                                                <div class="modal-body bg-light">
                                                    <p class="text-dark">This message will be sent to Super Admin </p>
                                                    <form role="form" method="post" action="https://platinumsignalmarket.com/trader/admin/dashboard/sendmail">
                                                        <input type="hidden" name="user_id" value="1">
                                                        <div class="form-group">
                                                            <input type="text" name="subject" class="form-control bg-light text-dark" placeholder="Enter Email Subject">
                                                        </div>
                                                        <div class="form-group">
                                                            <textarea class="form-control bg-light text-dark" name="message " row="3" placeholder="Type your message here" required></textarea>
                                                        </div>
                                                        <div class="form-group">
                                                            <input type="hidden" name="_token" value="yK4ImZn4tFp3FCzhv1hy9ADjxOMulCa9eCDdVVZt">
                                                            <input type="submit" class="btn btn-primary" value="Send"> 
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
    
                                                                        </tbody> 
                                </table>
                            </div>
                        </div>
                    </div>
                </div>   
            </div>
    				<footer class="footer bg-dark text-light">
					<div class="container-fluid">
						<div class="text-center row copyright text-align-center">
							<p>All Rights Reserved &copy; P.S.M 2022</p>
						</div>
					</div>
				</footer>
			</div>
		</div>
	</div>

				<!--   Core JS Files   -->
                <?php

include "footer.php";

?>
</body>
</html>


