<?php if ($user['us_telegram_username']):?>
<div class="alert alert-info">Kamu akan mengirim pesan ke pengguna Telegram <a target="telegram" href="http://t.me/<?php echo $user['us_telegram_username'];?>">@<?php echo $user['us_telegram_username'];?></a></div>
<?php endif;?>
<?php echo form_open();?>
  <div class="form-group">
    <label>Kepada</label>
    <div class="input-group">
      <span class="input-group-addon"><a href="<?php echo site_url('admin/users/profil/'.$user['us_id']);?>"><i class="fa fa-user"></i> <?php echo html_escape($user['us_name']);?></a></span>
      <input type="text" class="form-control" value="<?php echo $user['us_telegram_username'] ? '@'.$user['us_telegram_username'] : $user['us_telegram_id'];?>" disabled="disabled"/>
    </div>
  </div>
  <div class="form-group">
    <label>Pesan</label>
    <textarea class="form-control" name="text" rows="8"><?php echo set_value('text','');?></textarea>
  </div>
  <div class="checkbox">
    <label><input type="checkbox" name="disable_web_page_preview" value="1" /> Disabled web page preview</label>
  </div>
  <div>
    <button class="btn btn-primary" type="submit" name="submit" value="kirim"><i class="fa fa-paper-plane-o"></i> Kirim</button>
    &nbsp;
    <a href="<?php echo site_url('admin/modules/telegram-bot/pengguna/'.$sort.'/'.$page.'#user-'.$user['us_id']);?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> Batal</a>
  </div>
<?php echo form_close();?>