<div class="row">
    <div class="col-sm-12 col-md-12">
        <div class="panel panel-bd lobidrag">
            <div class="panel-heading">
                <div class="panel-title">
                    <h4><?php echo(!empty($title) ? $title : null) ?></h4>
                </div>
            </div>
            <div class="panel-body">

                <?php echo form_open_multipart('employeequery/Query/edit_query_hr', 'class="form-inner"') ?>

                <div class="form-group row">
                    <label for="title" class="col-xs-3 col-form-label"><?php echo "Title" ?> *</label>
                    <div class="col-xs-5">
                        <input type="text" name="title" id="title" class="form-control" value="<?php echo $query_data->title?>" readonly >
                    </div>
                </div>
                <div class="form-group row">
                    <label for="res_message" class="col-xs-3 col-form-label"><?php echo display('message') ?> *</label>
                    <div class="col-xs-9">
                        <textarea name="res_message" class="form-control tinymce"
                                  placeholder="<?php echo "Type your reason" ?>" rows="7" readonly><?php echo $query_data->your_query?></textarea>
                    </div>
                </div>

                <div class="form-group row">
                    <label for="query_attachment" class="col-xs-3 col-form-label"><?php echo "Attachment" ?> </label>
                    <div class="col-xs-9">
                        <a target="_blank" href="<?php echo $query_data->query_attachment?>">Click to View the Attachment</a>
                    </div>
                </div>

                <input type="hidden" name="query_id" value="<?php echo $query_data->id ?>">


                <div class="form-group row">
                    <label for="res_sup_comment" class="col-xs-3 col-form-label"><?php echo "Comments by Supervisor" ?></label>
                    <div class="col-xs-9">
                        <textarea name="sup_comments" class="form-control tinymce"
                                  placeholder="<?php echo "Type your comments" ?>" rows="7" readonly><?php echo $query_data->sup_comments?></textarea>
                    </div>
                </div>

                <div class="form-group row">
                    <label for="hr_comments" class="col-xs-3 col-form-label"><?php echo "Comments by HR" ?></label>
                    <div class="col-xs-9">
                        <textarea name="hr_comments" class="form-control tinymce"
                                  placeholder="<?php echo "Type your comments" ?>" rows="7"><?php echo $query_data->hr_comments?></textarea>
                    </div>
                </div>


                <div class="form-group row">
                    <label for="approve_by_hr" class="col-xs-3 col-form-label"><?php echo "Approval" ?> </label>
                    <div class="col-xs-9">
                        <button type="button" class="btn_choose_sent bg_btn_chose_1">
                            <input <?php echo $query_data->approve_by_hr == 1 ? 'checked' : '' ?> type="radio" value="1" name="approve_by_hr">Resolve
                        </button>
                        <button type="button" class="btn_choose_sent bg_btn_chose_2">
                            <input <?php echo $query_data->approve_by_hr == 0 ? 'checked' : '' ?> type="radio" value="0" name="approve_by_hr">Un resolve
                        </button>
                        <button type="button" class="btn_choose_sent bg_btn_chose_4">
                            <input <?php echo $query_data->approve_by_hr == 3 ? 'checked' : '' ?> type="radio" value="3" name="approve_by_hr">Under process
                        </button>
                    </div>
                </div>


                <div class="form-group form-group-margin text-right">
                    <button type="reset" class="btn btn-primary w-md m-b-5"><?php echo display('reset') ?></button>
                    <button type="submit" class="btn btn-success w-md m-b-5"><?php echo display('send') ?></button>
                </div>

                <?php echo form_close() ?>
            </div>
        </div>
    </div>
</div>