
<div class="error-main"></div>
<div class="form-group input-container">
    <label for="Name" class=" form-control-label">Username</label>
    <input type="text" name="username" id="username" placeholder="Username" class="form-control" value="<?php if(isset($data['username'])){echo $data['username'];}?>" />
    <div class="error-input"></div>
</div>
 <div class="form-group input-container">
    <label for="Name" class=" form-control-label">Password</label>
    <input type="password" name="password" id="password" placeholder="Password" class="form-control" />
    <div class="error-input"></div>
</div>
<div class="form-group input-container">
    <label for="Name" class=" form-control-label">Role</label>
    <select class="form-control" name="prvlg_group" id="prvlg_group">
        <?php
            if(!empty($rules))
            {
                foreach($rules AS $rule)
                {
                    ?>
                    <option value="<?php echo htmlspecialchars($rule['id']) ?>" <?php if(isset($data['prvlg_group']) && $data['prvlg_group'] == $rule['name']){echo 'selected';} ?>><?php echo htmlspecialchars($rule['name']) ?></option>
                    <?php
                }
            }
        ?>
    </select>
    <div class="error-input"></div>
</div>
<div class="form-group input-container">
    <label for="Name" class=" form-control-label">Name</label>
    <input type="text" name="name" id="name" placeholder="Name" class="form-control" value="<?php if(isset($data['name'])){echo $data['name'];}?>" />
    <div class="error-input"></div>
</div>
<div class="form-group input-container">
    <label for="Name" class=" form-control-label">Email</label>
    <input type="email" name="email" id="email" placeholder="Email" class="form-control" value="<?php if(isset($data['email'])){echo $data['email'];}?>" />
    <div class="error-input"></div>
</div>

 <div class="form-group input-container type_percentage" >
    <label for="Description" class=" form-control-label">Mobile</label>
    <input type="text" id="mobile" name="mobile" placeholder="Mobile" class="form-control" value="<?php if(isset($data['mobile'])){echo $data['mobile'];}?>" />
    <div class="error-input"></div>
</div>
 <div class="form-group input-container type_percentage" >
    <label for="Description" class=" form-control-label">Address</label>
    <textarea id="Description" name="address" placeholder="Address" class="form-control" value="<?php if(isset($data['address'])){echo $data['address'];}?>"></textarea>
    <div class="error-input"></div>
</div>
 


<div class="form-group">
     <button type="submit" class="track-btn pull-right btn-submit">Submit</button>

</div>
