<div class="nk-content">
   <div class="container-xl wide-lg">
        <hr>
        
            <h3 class='text-center'> App Settings</h3>
        <hr>
        <div class="row">
            <div class="col-lg-12">
                <?php
                    if(isset($_SESSION['t_error_c'])){
                        echo "<p class='alert alert-success'>".$_SESSION['t_error_c']."</p>";
                        unset($_SESSION['t_error_c'] );
                    }
                ?>
            </div>
            <div class='col-lg-12'>
                <br>
                <br>
                <br>
               <div class="card p-3 px-4 rounded">
                  <div class="card-body">
                     <form method='post' action="process/banip.php">
                        <label for="">Ban Ip</label><br>
                        <small>Enter a space  separated list of IPs you want to ban from accessing this site. E.g: 105.211.32.47  105.211.32.47 </small>
                          <br><br>
                          <?php 
                              $ip =  $user->getAll('ip');
                              foreach($ip as $d):
                              endforeach
                          ?>
                        <textarea name="ip" class='form-control' ><?php echo $d->ip ?></textarea>
                        <button class='btn btn-danger btn-sm mt-3' type="submit">Ban</button>
                     </form>
                  </div>
               </div>
            </div>
        </div>
    </div>
</div>


