<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
  <head>
    <title><?php echo html_escape($this->payment->bitcoin->nama);?></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/payments');?>">Metode Pembayaran</a></li>
        <li class="active"><span><?php echo html_escape($this->payment->bitcoin->nama);?></span></li>
      </ul>
      <div class="row">
        <div class="col-sm-4 col-md-3">
          <?php
          $params = array(array(
            'title' => html_escape($this->payment->bitcoin->nama),
            'links' => array(
                array('Overview', site_url('admin/payments/bitcoin'), 'fa fa-eye', true),
                array('Mutasi', site_url('admin/payments/bitcoin/mutasi'), 'fa fa-history'),
                array('Settings', site_url('admin/payments/bitcoin/settings'), 'fa fa-cog'),
            )
          ));
          echo sidebar_menu($params);
          ?>
        </div>
        <div class="col-sm-8 col-md-9">
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3><i class="fa fa-eye"></i> Overview</h3>
            </div>
            <div class="table-responsive">
              <table class="table">
                <tbody>
                  <tr><td style="width: 120px;">Api Token</td><td>: <?php echo html_escape($this->payment->bitcoin->data->api->token);?></td></tr>
                  <tr><td style="width: 120px;">Rate</td><td>: <?php echo html_escape($this->payment->bitcoin->rate);?></td></tr>
                  <tr><td style="width: 120px;">Saldo</td><td>: <?php echo format_uang2(@$this->payment->bitcoin->saldo,0);?></td></tr>
                  <tr><td style="width: 120px;">Mutasi</td><td>: <a href="<?php echo site_url('admin/payments/bitcoin/mutasi');?>"><?php echo $this->db->query("SELECT COUNT(*) AS total FROM mutasi WHERE bank = 'bitcoin'")->row()->total;?> transaksi</a></td></tr>
                  <tr><td style="width: 120px;">Status</td><td>: <?php echo $this->payment->bitcoin->status == 'on' ? 'Aktif' : 'Tidak aktif';?></td></tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php include_once(VIEWPATH.'includes/foot.php'); ?>
  </body>
</html>