<div class="row">
	<div class="col-md-6 col-md-offset-3">
		<div class="box box-primary">
			<div class="box-header with-border">
				<h3 class="box-title"> <?= !empty(lang('add_user'))?lang('add_user'):"Add user";?></h3>
				<div class="box-tools pull-right">
					<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
					<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
				</div>
			</div>
			<!-- /.box-header -->
			<div class="box-body" style="">
				<form action="<?php echo base_url('admin/dashboard/new_user') ?>" method="post">
					
					<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>">


				      <div class="form-group">
				      	<label for="username"><?= !empty(lang('username'))?lang('username'):"username";?></label>
				        <input type="text" name="username" id="username" class="form-control" placeholder="<?= !empty(lang('username'))?lang('username'):"username";?>" value="<?= set_value('username');?>">
				        <span class="error"><?php echo form_error('username'); ?></span>
				      </div>
				      <div class="form-group">
				      	<div class="mail_area">
				      		<label for="email"><?= !empty(lang('email'))?lang('email'):"Email";?></label>
				      		<label class="pointer"><input type="checkbox" value="1" name="is_mail"> <?= !empty(lang('send_mail'))?lang('send_mail'):"Send Mail";?></label>
				      	</div>
				        <input type="email" name="email" id="email" class="form-control" placeholder="<?= !empty(lang('email'))?lang('email'):"Email";?>" value="<?= set_value('email');?>">
				        <span class="error"><?php echo form_error('email'); ?></span>
				      </div>

				      <div class="form-group">
				      	<label for="country"><?= !empty(lang('package_name'))?lang('package_name'):"Package Name";?></label>
				        <select name="package" id="package" class="form-control select2">
				        	<option value=""><?= !empty(lang('select'))?lang('select'):"Select";?></option>
				        	<?php foreach ($features as $key => $row) { ?>
				        		<option value="<?= $row['id'] ?>"><?= $row['type_name']; ?> - $<?= $row['price'] ;?> / <?= $row['type'];?></option>
				        	<?php } ?>
				        </select>
				        <span class="error"><?php echo form_error('package'); ?></span>
				      </div>

				      <div class="form-group">
				      	<label class="pointer"><input type="checkbox" name="is_password" value="1" class="check_password"> &nbsp;<?= !empty(lang('add'))?lang('add'):"Add";?> <?= !empty(lang('password'))?lang('password'):"password";?></label>
				      </div>

				      <div class="form-group show_password" style="display: none;">
				      	<label for="password"><?= !empty(lang('password'))?lang('password'):"password";?></label>
				        <input type="password" name="password" id="password" class="form-control" placeholder="<?= !empty(lang('password'))?lang('password'):"password";?>" value="<?= set_value('password');?>">
				        <span class="error"><?php echo form_error('password'); ?></span>
				      </div>

				</div><!-- /.box-body -->
				<div class="box-footer" style="">
					<span data-toggle="tooltip" data-placement="top" title="if you not select add password, Password will create randomly and  send user by email"><i class="fa fa-question-circle fa-2x"></i> </span>
					<div class="pull-right">
		          		<button type="submit" name="register" class="btn btn-primary btn-block btn-flat"><?= !empty(lang('submit'))?lang('submit'):"submit";?></button>
		          </div>
				</div>
			</form>
		</div>
	</div>
</div>
