<?php
include('../app/views/dashboard/partisal/header.php');
?>
<div class="d-flex flex-column flex-root">
    <div class="page d-flex flex-row flex-column-fluid">
        <?php
        include('../app/views/dashboard/partisal/nav_bar.php');
        ?>
        <div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
            <div class="container-fluid">
                <div class="row" style="width: 100%;">
                    <div class="col-md-12 " style="margin-top: 1rem;">
                        
                        <div class="d-flex d-lg-none align-items-center ms-n2 me-2">
                            <!--begin::Aside mobile toggle-->
                            <div class="btn btn-icon btn-active-icon-primary" id="kt_aside_toggle">
                                <!--begin::Svg Icon | path: icons/duotune/abstract/abs015.svg-->
                                <span class="svg-icon svg-icon-1 mt-1">
                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
                                        <path d="M21 7H3C2.4 7 2 6.6 2 6V4C2 3.4 2.4 3 3 3H21C21.6 3 22 3.4 22 4V6C22 6.6 21.6 7 21 7Z" fill="black" />
                                        <path
                                            opacity="0.3"
                                            d="M21 14H3C2.4 14 2 13.6 2 13V11C2 10.4 2.4 10 3 10H21C21.6 10 22 10.4 22 11V13C22 13.6 21.6 14 21 14ZM22 20V18C22 17.4 21.6 17 21 17H3C2.4 17 2 17.4 2 18V20C2 20.6 2.4 21 3 21H21C21.6 21 22 20.6 22 20Z"
                                            fill="black"
                                            />
                                        </svg>
                                    </span>
                                    <!--end::Svg Icon-->
                                </div>
                                <!--end::Aside mobile toggle-->
                                <!--begin::Logo-->
                                <a href="<?=URLROOT?>/dashboard" class="d-flex align-items-center">
                                    <img alt="Logo" src="<?=URLROOT?>/assets/images/logo.png" class="h-40px" />
                                </a>
                                <!--end::Logo-->
                            </div>
                        </div>
                        <div class="col-md-12 " >
                            <div
                                class="page-title d-flex flex-column align-items-start justify-content-center flex-wrap me-lg-2 pb-5 pb-lg-0"
                                data-kt-swapper="true"
                                data-kt-swapper-mode="prepend"
                                data-kt-swapper-parent="{default: '#kt_content_container', lg: '#kt_header_container'}"
                                >
                                <!--begin::Heading-->
                                <h1 class="d-flex flex-column text-white fw-bolder my-0 fs-1" style="color: white !important;margin-top: 2rem !important;">Antibot</h1>
                                <!--end::Heading-->
                            </div>
                        </div>
                       
                        <div class="col-md-6" style="margin-top:2rem;">
                                <div class="card">
                                    <div class="card-header">
                                        <h2 style="padding: 20px;">ApI Setting</h2>
                                        
                                    </div>
                                  
                                  <div class="card-body">
                                    <?php
                                        if(isset($_SESSION['key_api']) && $_SESSION['key_api']){
                                            ?>
                                            <div class="alert alert-success text-dark">
                                            Setting has been changed successfully!
                                            </div>
                                            <?php
                                        }
                                        unset($_SESSION['key_api']);
                                    ?>
                                    
                                        
                                        <form action="<?=URLROOT?>/dashboard/saveKey" method="POST">
                                            <div class="alert alert-success text-dark" id="error_message1" style="display:none;"></div>
                                            <div class="alert alert-danger text-dark" id="error_message" style="display:none;"></div>
                                            <div class="form-group">
                                                
                                                <label class="text-white" style="color:white !important;margin-bottom: 5px;">AnitBot Key </label>
                                                <input class="form-control" type="text" name="anti_boot" value="<?=$data['setting']?>">

                                                <p style="margin-top:10px;">
                                            <a href="https://antibot.pw/login" target="_blank">Get Your Api kye</a>
                                        </p>

                                                
                                                
                                            </div>


                                            <div class="form-group my-3">
                                                <button type="submit" class="btn btn-primary" style="float: right;">Save Setting</button>
                                            </div>
                                        </form>

                                  </div>
                                    
                                </div>
                                <!--end::Datatable-->
                            </div>

                    </div>
                </div>


            </div>

            
        </div>
    </div>

      <?php
             include('../app/views/dashboard/partisal/footer_content.php');
                ?>
    <!--end::Root-->
    <?php
    include('../app/views/dashboard/partisal/footer.php');
    ?>

