<?php
require_once("../../app/config.php");
$title="SMS settings";
require_once('../include/user_header.php');
require_once('../include/user_navbar.php');
require_once('../include/user_sidebar.php');
?>
<div class="content-wrapper">

      <!-- Page header -->
      <div class="page-header page-header-light">
        <div class="page-header-content header-elements-md-inline">
          <div class="page-title d-flex">
            <h4><i class="icon-hammer-wrench mr-2"></i> <span class="font-weight-semibold">SMS settings</span></h4>
          </div>
        </div>

        <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
          <div class="d-flex">
            <div class="breadcrumb">
              <a href="./dashboard" class="breadcrumb-item"><i class="icon-home2 mr-2"></i>Dashboard</a>
            </div>
          </div>

          <div class="header-elements d-none">
            <div class="breadcrumb justify-content-center">
            </div>
          </div>
        </div>
      </div>
      <!-- /page header -->
      <div class="content"> 
<div class="row">
  <div class="col-md-12">
<div class="card">
          <div class="card-header header-elements-inline">
            <h6 class="card-title font-weight-semibold">Congifure website</h6>
                <div class="header-elements">
                  <div class="list-icons text-orange-600">
                  <a class="list-icons-item" data-action="collapse"></a>
   
                </div>
              </div>
          </div>

          <div class="card-body">
            <form action="<?php admin_url('sms');?>" method="post">  
            <div class="form-group row">
              <label class="col-form-label col-lg-2">Account SSID:</label>
              <div class="col-lg-10">
                <input type="text" name="account_sid" max-length="200" value="<?php echo $set['account_sid'];?>" class="form-control">
              </div>
            </div>                
            <div class="form-group row">
              <label class="col-form-label col-lg-2">Auth Token:</label>
              <div class="col-lg-10">
                <input type="text" name="auth_token" max-length="200" value="<?php echo $set['auth_token'];?>" class="form-control">
              </div>
            </div> 
                <div class="form-group row">
                  <label class="col-form-label col-lg-2">Mobile:</label>
                  <div class="col-lg-10">
                    <div class="input-group">
                      <span class="input-group-prepend">
                        <span class="input-group-text">+</span>
                      </span>
                    <input type="number" name="account_from" max-length="14" value="<?php echo $set['account_from'];?>" class="form-control">
                      </div>
                    </div>
                </div>            
                <div class="form-group row">
                  <label class="col-form-label col-lg-2">Status <span class="text-danger">*</span></label>
                  <div class="col-lg-10">    
                    <div class="form-check form-check-inline form-check-switchery">
                      <label class="form-check-label">
                <?php if($set['sms_status']=='1'){
                    echo'<input type="checkbox" name="sms_status" class="form-check-input-switchery" value="1" checked>';
                }else{
                    echo'<input type="checkbox" name="sms_status" class="form-check-input-switchery" value="1">';
                }?>Sms status       
                        </label>
                    </div>
                  </div>
                </div>             
              <div class="text-right">
                <button type="submit" class="btn bg-indigo">Submit<i class="icon-paperplane ml-2"></i></button>
              </div>
            </form>
          </div>
        </div>    
  </div>
</div>

      </div>  
    </div>
<?php require_once('../include/user_footer.php');?> 