<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div class="table-responsive">
  <table class="table">
    <tbody>
      <tr><td style="width: 120px;">IB Username</td><td>: <?php echo html_escape($this->payment->{$payment->key}->data->api->username);?></td></tr>
      <tr><td style="width: 120px;">Nomor Rekening</td><td>: <?php echo html_escape($this->payment->{$payment->key}->data->nomor_rekening);?></td></tr>
      <tr><td style="width: 120px;">Nama Rekening</td><td>: <?php echo html_escape($this->payment->{$payment->key}->data->nama_rekening);?></td></tr>
      <tr><td style="width: 120px;">Saldo</td><td>: <?php echo format_uang2(@$this->payment->{$payment->key}->saldo, @$this->payment->{$payment->key}->rate, $this->payment->{$payment->key}->template, $this->payment->{$payment->key}->round);?></td></tr>
      <tr><td style="width: 120px;">Mutasi</td><td>: <a href="<?php echo site_url('admin/payments/'.$payment->key.'/mutasi');?>"><?php echo $this->db->query("SELECT COUNT(*) AS total FROM mutasi WHERE bank = '$payment->key'")->row()->total;?> transaksi</a></td></tr>
      <tr><td style="width: 120px;">Status</td><td>: <?php echo $this->payment->{$payment->key}->status == 'on' ? 'Aktif' : 'Tidak aktif';?></td></tr>
    </tbody>
  </table>
</div>