<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
  <head>
    <title>Pengaturan Reseller</title>
    <?php include_once(VIEWPATH. 'includes/head.php'); ?>
    <style type="text/css">
    .checkbox > label,.checkbox-inline > label,.radio > label,.radio-inline > label {
        font-weight: normal;
    }
    </style>
  </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><a href="<?php echo site_url('admin/pengaturan');?>">Pengaturan</a></li>
        <li class="active"><span>Reseller</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> Reseller</h3>
            </div>
            <div class="panel-body">
              <?php echo form_open();?>
                <div class="form-group">
                  <label for="min_saldo" class="control-label">Minimal sisa saldo</label>
                  <div class="input-group">
                  <span class="input-group-addon">Rp</span>
                  <input type="number" class="form-control" name="min_saldo" id="min_saldo" value="<?php echo set_value('min_saldo', $reseller_config->min_saldo);?>" required="required"/>
                  </div>
                  <p class="help-block">Minimal sisa saldo ketika member melakukan permintaan untuk menjadi reseller.</p>
                </div>
                <div class="form-group">
                  <label for="min_trx" class="control-label">Minimal jumlah transaksi</label>
                  <div class="input-group">
                  <input type="number" class="form-control" name="min_trx" id="min_trx" value="<?php echo set_value('min_trx', $reseller_config->min_trx);?>" required="required"/>
                  <span class="input-group-addon">transaksi per bulan</span>
                  </div>
                  <p class="help-block">Jika diisi dengan 0 maka tidak ada batas minimal transaksi perbulannya.</p>
                </div>
                <div class="form-group">
                  <label class="control-label">Pembayaran</label>
                  <div class="radio" style="margin-top: 0;"><label><input type="radio" name="payment" value="balance" <?php echo $reseller_config->payment == 'balance' ? 'checked="checked"' : '';?>/> Hanya dengan Saldo Akun</label></div>
                  <div class="radio"><label><input type="radio" name="payment" value="all" <?php echo $reseller_config->payment == 'all' ? 'checked="checked"' : '';?>/> Saldo Akun dan Payment Sistem</label></div>
                </div>
                <div>
                  <button type="submit" class="btn btn-primary" name="submit" value="save">Simpan</button>
                </div>
              <?php echo form_close();?>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php include_once(VIEWPATH.'includes/foot.php'); ?>
  </body>

</html>