<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Admin : Other Panels</title>
    <link rel="stylesheet" href="https://cdn.datatables.net/1.11.4/css/jquery.dataTables.min.css">
    <?php include("headerlink.php")?>
    <style>
    .password-toggle-icon {
        display: none;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .password-input-container {
        position: relative;
    }
    </style>
</head>

<body class="hold-transition sidebar-mini layout-fixed">
    <div class="wrapper">

        <div class="preloader flex-column justify-content-center align-items-center">
            <img class="animation__shake" src="dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60">
        </div>

        <?php include("navbar.php")?>


        <?php include("sidebar.php")?>

        <div class="content-wrapper">

            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1 class="m-0 fw-bold text-uppercase">Assets</h1>
                        </div>
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item"><a href="#">Home</a></li>
                                <li class="breadcrumb-item active">Inventory</li>
                                <li class="breadcrumb-item active">Other Panels</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>

            <section class="content">
                <div class="container-fluid">
                    <div class="row">

                        <div class="col-md-12">

                            <div class="card shadow ">
                                <div class="card-header" style="background: #343a40;">
                                    <h3 class="card-title fw-bold text-white text-uppercase">Add Other Panel</h3>
                                </div>

                                <form action="other-panles_code.php" method="POST">
                                    <div class="card-body">
                                        <div class="row">
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputtitle">Company Name</label>
                                                    <input type="text" class="form-control" id="exampleInputtitle"
                                                        placeholder="Website" name="company_name">
                                                </div>
                                            </div>
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputtitle">Company's Website</label>
                                                    <input type="text" class="form-control" id="exampleInputtitle"
                                                        placeholder="Username" name="company_website">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputtitle">Concern Person</label>
                                                    <input type="text" class="form-control" id="exampleInputtitle"
                                                        placeholder="Concern Person" name="concern_person">
                                                </div>
                                            </div>
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputtitle">Contact Number</label>
                                                    <input type="text" class="form-control" id="exampleInputName"
                                                        placeholder="Contact Number" name="contact_number"
                                                        oninput="this.value = this.value.replace(/[^0-9]/g, '');">
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputtitle">Email </label>
                                                    <input type="text" class="form-control" id="exampleInputtitle"
                                                        placeholder="Email" name="email">
                                                </div>
                                            </div>
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputtitle">Service </label>
                                                    <input type="text" class="form-control" id="exampleInputtitle"
                                                        placeholder="Service" name="service">
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputtitle">Rate</label>
                                                    <input type="text" class="form-control" id="exampleInputName"
                                                        placeholder="Rate" name="rate"
                                                        oninput="this.value = this.value.replace(/[^0-9]/g, '');">
                                                </div>
                                            </div>
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputtitle">Service URL</label>
                                                    <input type="text" class="form-control" id="exampleInputtitle"
                                                        placeholder="Service URL" name="service_url">
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputtitle">Username</label>
                                                    <input type="text" class="form-control" id="exampleInputtitle"
                                                        placeholder="Username" name="Username">
                                                </div>
                                            </div>

                                            <div class="col-6">
                                                <div class="form-group">
                                                    <label for="exampleInputPassword">Password</label>
                                                    <div class="password-input-container">
                                                        <input type="password" class="form-control"
                                                            id="exampleInputPassword" placeholder="Password"
                                                            name="password">
                                                        <i class="fa fa-eye-slash password-toggle-icon"
                                                            id="passwordToggle"></i>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>


                                        <div class="col-1" style="margin-top: 10px;">
                                            <button class="btn btn-dark mt-2">Submit</button>
                                        </div>

                                    </div>

                            </div>

                            </form>
                        </div>

                    </div>

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





    </div>
    <?php include("footer.php")?>


    </div>

    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.datatables.net/1.11.4/js/jquery.dataTables.min.js"></script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"></script>
    <script>
    const passwordInput = document.getElementById("exampleInputPassword");
    const passwordToggleIcon = document.getElementById("passwordToggle");

    passwordInput.addEventListener("input", function() {
        if (passwordInput.value.length > 0) {
            passwordToggleIcon.style.display = "inline";
        } else {
            passwordToggleIcon.style.display = "none";
        }
    });

    passwordToggleIcon.addEventListener("click", function() {
        if (passwordInput.type === "password") {
            passwordInput.type = "text";
            passwordToggleIcon.classList.remove("fa-eye-slash");
            passwordToggleIcon.classList.add("fa-eye");
        } else {
            passwordInput.type = "password";
            passwordToggleIcon.classList.remove("fa-eye");
            passwordToggleIcon.classList.add("fa-eye-slash");
        }
    });
    </script>

    <script>
    $(document).ready(function() {
        <?php if (isset($_GET['error'])) { ?>
        Swal.fire({
            title: 'Error',
            text: '<?php echo $_GET['error']; ?>',
            icon: 'error',
            confirmButtonText: 'OK',
            confirmButtonClass: 'btn btn-success btn-lg',
        });
        <?php } ?>
        <?php if (isset($_GET['success'])) { ?>
        Swal.fire({
            title: 'Success',
            text: '<?php echo $_GET['success']; ?>',
            icon: 'success',
            confirmButtonText: 'OK',
            confirmButtonClass: 'btn btn-success btn-lg',
        });
        <?php } ?>
    });
    </script>
    <script>
    var $j = jQuery.noConflict();
    $j(document).ready(function() {
        $j('#example2').DataTable();
    });
    </script>
    <?php include("footerlink.php")?>
</body>

</html>