<?php echo form_open();?>
  <?php if ($detail): ?>
  <h4>
    <a class="pull-right" href="<?php echo site_url('admin/payments/paypal/transaction_details/'.$trx_id)?>" target="_blank"><i class="fa fa-external-link"></i></a>
    Data Pembayaran
  </h4>
  <div class="table-responsive">
    <table class="table table-striped">
      <tbody>
        <tr>
          <td>
            Nama
          </td>
          <td>
            <?php echo html_escape($detail['FIRSTNAME'].' '.$detail['LASTNAME']);?> 
          </td>
        </tr>
        <tr>
          <td>
            Email
          </td>
          <td>
            <?php echo $detail['EMAIL'];?>
          </td>
        </tr>
        <tr>
          <td>
            ID Paypal
          </td>
          <td>
            <?php echo $detail['PAYERID'];?>
          </td>
        </tr>
        <tr>
          <td>
            Status
          </td>
          <td>
            <?php echo ucfirst($detail['PAYERSTATUS']);?>
          </td>
        </tr>
        <tr>
          <td>
            Negara
          </td>
          <td>
            <?php echo $detail['COUNTRYCODE'];?>
          </td>
        </tr>
        <tr>
          <td>
            Jumlah Pembayaran
          </td>
          <td>
            <?php echo $detail['AMT'];?> <?php echo $detail['CURRENCYCODE'];?>
          </td>
        </tr>
        <tr>
          <td>
            Status Pembayaran
          </td>
          <td>
            <?php echo $detail['PAYMENTSTATUS'];?>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
  <?php endif;?>
  <div class="form-group">
    <h4>Whitelist</h4>
    <div class="checkbox">
      <label>
        <input type="checkbox" name="whitelist" value="1" <?php echo $whitelist ? 'checked="checked"' : '';?>/>
        Masukan email "<span class="text-info"><strong><?php echo $detail ? $detail['EMAIL'] : 'NULL';?></strong></span>" ke whitelist.
      </label>
    </div>
    <?php if ($detail):?>
    <input type="hidden" name="email" value="<?php echo $detail['EMAIL'];?>" />
    <?php endif;?>
  </div>
  <h4>
    Pemberitahuan
  </h4>
  <div class="checkbox">
    <label>
      <input type="checkbox" name="send_email" value="1"/>
      Kirimkan pemberitahuan melalui Email
    </label>
  </div>
  <div class="checkbox">
    <label>
      <input type="checkbox" name="send_sms" value="1"/>
      Kirimkan pemberitahuan melalui SMS
    </label>
  </div>
  <div class="text-right">
    <button class="btn btn-primary" type="submit" name="confirm" value="1">
      <i class="fa fa-check">
      </i>
      Konfirmasi
    </button>
    &nbsp;
    <a class="btn btn-default" data-dismiss="modal" href="<?php echo site_url('admin/riwayat-deposit')?>">
      <i class="fa fa-remove">
      </i>
      Batal
    </a>
  </div>
<?php echo form_close();?>