<?php if ($trx->de_status != 'pending'):?>
<div class="panel-body">
  <div class="alert alert-success">Pembayaran berhasil diselesaikan.</div>
</div>
<?php else:?>
<div class="panel-body">
  <div class="table-responsive">
    <table class="table table-striped">
      <tbody>
        <tr>
          <td>
            Jumlah
          </td>
          <td>
            <?php echo format_uang2($trx->de_amount, $trx->de_rate, $this->payment->webmoney->template, $this->payment->webmoney->round) . PHP_EOL;?>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
  <div>
    <ul style="padding-left: 15px;">
      <li>Pembayaran berlaku s/d <?php echo format_tanggal($trx->de_tanggal + (3600 * $deposit->time));?>.</li>
    </ul>
  </div>
</div>
<div class="panel-footer">
  <form method="POST" action="https://merchant.wmtransfer.com/lmi/payment.asp" accept-charset="windows-1251" target="_blank">
    <input type="hidden" name="LMI_PAYEE_PURSE" value="<?php echo $this->payment->webmoney->data->nomor_rekening;?>"/>
    <input type="hidden" name="LMI_PAYMENT_AMOUNT" value="<?php echo round($trx->de_amount / $trx->de_rate, 2);?>"/>
    <input type="hidden" name="LMI_PAYMENT_NO" value="<?php echo (2000000000 + $trx->de_id);?>"/>
    <input type="hidden" name="LMI_PAYMENT_DESC" value="<?php echo html_escape('Deposit '.$trx->de_amount.' ('.$trx->de_note.')');?>"/>
    <input type="hidden" name="LMI_SIM_MODE" value="0"/>
    <input type="hidden" name="LMI_RESULT_URL" value="<?php echo site_url('payment/webmoney/deposit/'.$trx->de_id);?>"/>
    <input type="hidden" name="LMI_SUCCESS_URL" value="<?php echo site_url('akun/deposit/view/'.$trx->de_id);?>"/>
    <input type="hidden" name="LMI_SUCCESS_METHOD" value="2"/>
    <input type="hidden" name="LMI_FAIL_URL" value="<?php echo site_url('akun/deposit/view/'.$trx->de_id);?>"/>
    <input type="hidden" name="LMI_FAIL_METHOD" value="2"/>
    <input type="hidden" name="LMI_FAIL_METHOD" value="2"/>
    <button type="submit" class="btn btn-primary btn-block"><i class="fa fa-money"></i> Bayar Sekarang</button>
  </form>
</div>
<?php endif;?>