<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
  <head>
    <title>Pengaturan Transfer Saldo</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><a href="<?php echo site_url('admin/pengaturan');?>">Pengaturan</a></li>
        <li class="active"><span>Transfer Saldo</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> Transfer Saldo</h3>
            </div>
            <div class="panel-body">
              <?php echo form_open();?>
                <div class="form-group">
                  <label>Siapa yang boleh melakukan transfer saldo?</label>
                  <div>
                    <div class="radio-inline"><label style="font-weight: normal;"><input type="radio" name="sender" value="1" <?php echo ($set->sender == 1 ? 'checked="checked"' : '');?>/> Semua member</label></div>
                    <div class="radio-inline"><label style="font-weight: normal;"><input type="radio" name="sender" value="2" <?php echo ($set->sender == 2 ? 'checked="checked"' : '');?>/> Hanya member terverifikasi</label></div>
                    <div class="radio-inline"><label style="font-weight: normal;"><input type="radio" name="sender" value="0" <?php echo ($set->sender == 0 ? 'checked="checked"' : '');?>/> Tidak semua</label></div>
                  </div>
                </div>
                <div class="form-group">
                  <label>Siapa yang boleh menerima transferan saldo?</label>
                  <div>
                    <div class="radio-inline"><label style="font-weight: normal;"><input type="radio" name="receiver" value="1" <?php echo ($set->receiver == 1 ? 'checked="checked"' : '');?>/> Semua member</label></div>
                    <div class="radio-inline"><label style="font-weight: normal;"><input type="radio" name="receiver" value="2" <?php echo ($set->receiver == 2 ? 'checked="checked"' : '');?>/> Hanya member terverifikasi</label></div>
                  </div>
                </div>
                <div class="form-group">
                  <label class="control-label">Berapa kali maksimal transfer saldo dapat dilakukan dalam sehari?</label>
                  <div class="input-group">
                    <input type="number" class="form-control" name="max_limit" value="<?php echo $set->max_limit;?>" required="required" placeholder="10"/>
                    <span class="input-group-addon">per hari</span>
                  </div>
                </div>
                <div class="form-group">
                  <label class="control-label">Berapa maksimal total saldo yang ditransfer dalam sehari?</label>
                  <div class="input-group">
                    <span class="input-group-addon">Rp</span>
                    <input type="number" class="form-control" name="max_amount" value="<?php echo $set->max_amount;?>" required="required" placeholder="1000000"/>
                    <span class="input-group-addon">per hari</span>
                  </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>