<?php echo form_open()?>
  <div class="alert alert-warning">
    Server <?php echo html_escape($server->sv_nama);?> memiliki <?php echo $total_vouchers;?> vouchers, apakah kamu yakin ingin menghapus agen ini?
  </div>
  <?php if ($total_vouchers):?>
  <div class="form-group">
    <label>Tindakan untuk semua voucher</label>
    <select class="form-control" name="action">
      <option value="tidak_tersedia">Ubah status voucher ke tidak tersedia</option>
      <option value="hapus">Hapus semua voucher</option>
      <?php
      foreach ($servers as $ag):
      if ($ag->sv_id == $server->sv_id)
        continue;
      ?>
      <option value="move_to_<?php echo $ag->sv_id;?>">Pindahkan semua voucher ke server <?php echo html_escape($ag->sv_nama)?></option>
      <?php endforeach;?>
    </select>
  </div>
  <?php endif;?>
  <div>
    <button class="btn btn-primary" type="submit" name="submit" value="delete"><i class="fa fa-check"></i> Hapus</button>
    &nbsp;
    <a href="<?php echo site_url('admin/pengaturan/server');?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> Batal</a>
  </div>
<?php echo form_close()?>