<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
  <head>
    <title>Admin &gt; Aplikasi Android</title>
    <?php include_once(VIEWPATH.'includes/head.php'); ?>
  </head>
  <body>
    <?php include_once(VIEWPATH. 'admin/_navbar.php'); ?>
    <div class="container">
      <ul class="breadcrumb">
        <li><a href="<?php echo site_url();?>"><i class="fa fa-home"></i></a></li>
        <li><a href="<?php echo site_url('admin');?>">Admin Panel</a></li>
        <li class="active"><span>Aplikasi Android</span></li>
      </ul>
      <div class="row">
        <div class="col-sm-4 col-md-3">
          <?php include(dirname(__file__).'/_sidebar.php');?>
        </div>
        <div class="col-sm-8 col-md-9">
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3><i class="fa fa-cog"></i> Pengaturan</h3>
            </div>
            <div class="panel-body">
              <?php include(dirname(__file__).'/_tabs.php');?>
              <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="content">
                  <?php echo form_open();?>
                  <div class="form-group">
                    <label>Site Key</label>
                    <input type="text" class="form-control" name="key" value="<?php echo set_value('key', @$app['recaptcha']['key']);?>" maxlength="255"/>
                  </div>
                  <div class="form-group">
                    <label>Secret Key</label>
                    <input type="text" class="form-control" name="secret" value="<?php echo set_value('secret', @$app['recaptcha']['secret']);?>" maxlength="255"/>
                  </div>
                  <div class="form-group">
                    <button type="submit" name="submit" value="save" class="btn btn-primary">Simpan</button>
                  </div>
                  <?php echo form_close();?>
                  <div>
                    <p>Silakan membuat akun reCAPTCHA, berikut adalah langkah-langkahnya.</p>
                    <ol>
                      <li>Silakan masuk ke <a href="https://www.google.com/recaptcha/admin/create" target="_blank">https://www.google.com/recaptcha/admin/create</a></li>
                      <li>Label silakan isi dengan <strong><?php echo parse_url(site_url(), PHP_URL_HOST);?></strong> atau lainnya.</li>
                      <li>Pada pilihan reCAPTCHA type pilih <strong>reCAPTCHA v2</strong> kemudian pilih <strong>reCAPTCHA Android</strong>.</li>
                      <li>Pada kolom Packages silakan masukan nama paket aplikasi android kamu.</li>
                      <li>kemudian tandai Accept the reCAPTCHA Terms of Service dan SUBMIT.</li>
                      <li>Kemudian salin Site Key dan Secret Key.</li>
                    </ol>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php include_once(VIEWPATH.'includes/foot.php'); ?>
  </body>
</html>