<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
  <head>
    <title><?php echo $this->payment->bank_bri->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->bank_bri->nama);?></span></li>
      </ul>
      <div class="row">
        <div class="col-sm-4 col-md-3">
          <?php
          $params = array(array(
            'title' => html_escape($this->payment->bank_bri->nama),
            'links' => array(
                array('Overview', site_url('admin/payments/bank_bri'), 'fa fa-eye', true),
                array('Mutasi', site_url('admin/payments/bank_bri/mutasi'), 'fa fa-history'),
                array('Settings', site_url('admin/payments/bank_bri/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 Server</td><td>: <?php echo html_escape($this->payment->bank_bri->data->api->server);?></td></tr>
                  <tr><td style="width: 120px;">API ID</td><td>: <?php echo html_escape($this->payment->bank_bri->data->api->id);?></td></tr>
                  <tr><td style="width: 120px;">Nomor Rekening</td><td>: <?php echo html_escape($this->payment->bank_bri->data->nomor_rekening);?></td></tr>
                  <tr><td style="width: 120px;">Nama Rekening</td><td>: <?php echo html_escape($this->payment->bank_bri->data->nama_rekening);?></td></tr>
                  <tr><td style="width: 120px;">Saldo</td><td>: <?php echo format_uang2(@$this->payment->bank_bri->saldo, @$this->payment->bank_bri->rate, $this->payment->bank_bri->template, $this->payment->bank_bri->round);?></td></tr>
                  <tr><td style="width: 120px;">Mutasi</td><td>: <a href="<?php echo site_url('admin/payments/bank_bri/mutasi');?>"><?php echo $this->db->query("SELECT COUNT(*) AS total FROM mutasi WHERE bank = 'bank_bri'")->row()->total;?> transaksi</a></td></tr>
                  <tr><td style="width: 120px;">Status</td><td>: <?php echo $this->payment->bank_bri->status == 'on' ? 'Aktif' : 'Tidak aktif';?></td></tr>
                </tbody>
              </table>
            </div>
            <div class="panel-footer">
              Untuk mengaktifkan pembayaran melalui Bank BRI silakan mendaftar di <a href="https://www.domosquare.com/manage/cart.php?gid=20" target="_blank">https://www.domosquare.com/manage/cart.php?gid=20</a> dan pilih layanan Cek Pembayaran Otomatis - BRI<?php echo ($ip_akses ? ', kemudian di kontrol panel masukan IP Akses: '.$ip_akses : '');?>.
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php include_once(VIEWPATH.'includes/foot.php'); ?>
  </body>
</html>