<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('resignation/Resignation/edit_resignation_sup', 'class="form-inner"') ?>

                <input type="hidden" name="res_id" value="<?php echo $data->res_id?>">

                <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 required name="res_message" class="form-control tinymce"
                                  placeholder="<?php echo "Type your reason" ?>" rows="7" readonly><?php echo $data->res_message?></textarea>
                    </div>
                </div>

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

                <input type="hidden" name="employee_id" value="<?php echo $data->employee_id ?>">

                <div class="form-group row">
                    <label for="res_sup_comment" class="col-xs-3 col-form-label"><?php echo "Comments" ?> *</label>
                    <div class="col-xs-9">
                        <textarea name="res_sup_comment" class="form-control tinymce"
                                  placeholder="<?php echo "Type your comments" ?>" rows="7"><?php echo $data->res_sup_comment?></textarea>
                    </div>
                </div>
                <div class="form-group row">
                    <label for="res_initiate_date" class="col-xs-3 col-form-label"><?php echo "Resignation Date" ?> </label>
                    <div class="col-xs-9">
                        <input name="res_initiate_date" value="<?php echo $data->res_initiate_date?>" type="date" class="form-control" id="res_initiate_date"
                               placeholder="<?php echo "Initiate Date" ?>" readonly>
                    </div>
                </div>
                <div class="form-group row">
                    <label for="notice_date" class="col-xs-3 col-form-label"><?php echo "Notice Time Period" ?> </label>
                    <div class="col-xs-9">
                        <input name="notice_date"  value="<?php echo $data->notice_date?>" type="date" class="datepicker form-control" id="notice_date"
                               placeholder="<?php echo "Notice Time Period" ?>">
                    </div>
                </div>


                <div class="form-group row">
                    <label for="approve_by_supervisor" 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 $data->approve_by_supervisor == 1 ? 'checked' : '' ?> type="radio" value="1" name="approve_by_supervisor">Approve
                        </button>
                        <button type="button" class="btn_choose_sent bg_btn_chose_2">
                            <input <?php echo $data->approve_by_supervisor != 1 ? 'checked' : '' ?> type="radio" value="0" name="approve_by_supervisor">Reject
                        </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>