<!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">Crypto Assets/Exchnage Settings</h1>
					</div>
					<div>
    </div>                    <div>
    </div>                    <div class="mb-5 row">
                        <div class="col-md-12">
                            <div class="card p-3 p-md-5 shadow-lg bg-light">
                                <div class="row">
                                    <div class="form-group col-12 d-inline">
                                        <h5 class="text-dark">Use this Feature</h5>
                                        <div class="selectgroup">
                                            <label class="selectgroup-item">
                                                <input type="radio" name="crypto" id="cryptoyes" value="true" class="selectgroup-input" checked="">
                                                <span class="selectgroup-button">On</span>
                                            </label>
                                            <label class="selectgroup-item">
                                                <input type="radio" name="crypto" id="cryptono" value="false" class="selectgroup-input">
                                                <span class="selectgroup-button">Off</span>
                                            </label>
                                        </div>
                                        <div>
                                            <small class="text-dark">Your users will not be able to see/use this service if turned off</small> 
                                        </div>
                                                                                <script>document.getElementById("cryptoyes").checked= true;</script>
                                                                            </div>
                                    <div class="col-md-6 offset-md-3">
                                        
                                        <form action="https://platinumsignalmarket.com/trader/admin/dashboard/exchangefee" method="post" class=" form-inline">
                                            <input type="hidden" name="_token" value="yK4ImZn4tFp3FCzhv1hy9ADjxOMulCa9eCDdVVZt">                                            <div class=" form-group">
                                                <h5 class="text-dark">Exchange Fee &nbsp;</h5>
                                                <input type="text" name="fee" value="2" class="text-dark form-control bg-light" id="">
                                            </div>
                                            <div class=" form-group">
                                                <button type="submit" class="btn btn-primary">Save</button>
                                            </div>
                                        </form>
                                    </div>
                                    <div class="mt-3 col-12">
                                        <div class=" table-responsive">
                                            <table class="table table-hover text-dark">
                                                <thead>
                                                    <tr>
                                                        <th scope="col">Asset Name</th>
                                                        <th scope="col">Asset Symbol</th>
                                                        <th scope="col">Status</th>
                                                        <th scope="col">Option</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr>
    <td>Bitcoin</td>
    <td>BTC</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/btc/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>
<tr>
    <td>Ethereum</td>
    <td>ETH</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/eth/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>
<tr>
    <td>Litecoin</td>
    <td>LTC</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/ltc/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>
<tr>
    <td>Chainlink</td>
    <td>LINK</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/link/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>
<tr>
    <td>Binance Coin</td>
    <td>BNB</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/bnb/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>
<tr>
    <td>Aave</td>
    <td>AAVE</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/aave/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>
<tr>
    <td>Tether</td>
    <td>USDT</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/usdt/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>
<tr>
    <td>Bitcoin Cash</td>
    <td>BCH</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/bch/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>
<tr>
    <td>Ripple</td>
    <td>XRP</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/xrp/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>
<tr>
    <td>Stellar</td>
    <td>XLM</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/xlm/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>
<tr>
    <td>Ada</td>
    <td>ADA</td>
    <td>
                <span class="badge badge-success">enabled </span>
            </td>
    <td>
                <a href="https://platinumsignalmarket.com/trader/admin/dashboard/setcryptostatus/ada/disabled" class="btn btn-danger btn-sm">Disable</a>
            </td>
</tr>                                                </tbody>
                                            </table>
                                        </div>
                                        <div>
                                            <small class="text-dark">Be sure that non of your users have balances greater than 0 in thier asset account before you disable the asset.</small> 
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
					</div>
				</div>
			</div>
            <script>
                

            $('#cryptoyes').on('click', function() {
                // let truevalue = $('#cryptoyes').val()
                let uurl = "https://platinumsignalmarket.com/trader/admin/dashboard/useexchange"  + '/' + 'true';
                $.ajax({
                    url: uurl,
                    type: 'GET',
                    
                    success: function(response) {
                        if (response.status === 200) {
                            $.notify({
                                // options
                                icon: 'flaticon-alarm-1',
                                title: 'Success',
                                message: response.success,
                            },{
                                // settings
                                type: 'success',
                                allow_dismiss: true,
                                newest_on_top: false,
                                placement: {
                                    from: "top",
                                    align: "right"
                                },
                                offset: 20,
                                spacing: 10,
                                z_index: 1031,
                                delay: 5000,
                                timer: 1000,
                                animate: {
                                    enter: 'animated fadeInDown',
                                    exit: 'animated fadeOutUp'
                                },
            
                            });
                        } else {
                            
                        }
                    },
                    error: function(error) {
                        console.log(error);
                    },
                });
            });

            $('#cryptono').on('click', function() {
                // let truevalue = $('#cryptoyes').val()
                let uurl = "https://platinumsignalmarket.com/trader/admin/dashboard/useexchange"  + '/' + 'false';
                $.ajax({
                    url: uurl,
                    type: 'GET',
                    
                    success: function(response) {
                        if (response.status === 200) {
                            $.notify({
                                // options
                                icon: 'flaticon-alarm-1',
                                title: 'Success',
                                message: response.success,
                            },{
                                // settings
                                type: 'success',
                                allow_dismiss: true,
                                newest_on_top: false,
                                placement: {
                                    from: "top",
                                    align: "right"
                                },
                                offset: 20,
                                spacing: 10,
                                z_index: 1031,
                                delay: 5000,
                                timer: 1000,
                                animate: {
                                    enter: 'animated fadeInDown',
                                    exit: 'animated fadeOutUp'
                                },
            
                            });
                        } else {
                            
                        }
                    },
                    error: function(error) {
                        console.log(error);
                    },
                });
            });
        </script>
    				<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>


