<div class="warper container-fluid">   	
    <div class="page-header"><h1><?= $lang['Employment Offer Letter']?> <small><?= $lang['Update']?></small></h1></div>
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading"></div>
                <div class="panel-body">
                    <form method="post" class="form-horizontal" id="quotationForm" action="hr-employment.php?page_mode=<?= $page_mode ?>&page=<?= $page ?>&type=edit" novalidate="novalidate">
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $lang['Date to offer']?></label>
                            <div class="col-sm-7">
                                <input type="text" name="date_to_offer" class="form-control ui-search-input datetimepicker" readonly="readonly" required="required" value="<?= $offer_status['date_to_offer'] ?>" placeholder="<?= $lang['Date to offer']?>" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $lang['Starting Date']?></label>
                            <div class="col-sm-7">
                                <input type="text" name="starting_date" class="form-control ui-search-input datetimepicker" readonly="readonly" required="required" value="<?= $offer_status['starting_date'] ?>" placeholder="<?= $lang['Starting Date']?>" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $lang['salary']?></label>
                            <div class="col-sm-7">
                                <input type="text" name="salary" class="form-control ui-search-input" required="required" value="<?= $offer_status['salary'] ?>" placeholder="<?= $lang['salary']?>" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $lang['Allowance']?></label>
                            <div class="col-sm-7">
                                <input type="text" name="allowance" class="form-control ui-search-input" required="required" value="<?= $offer_status['allowance'] ?>" placeholder="<?= $lang['Allowance']?>" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $lang['Comission']?></label>
                            <div class="col-sm-7">
                                <input type="text" name="comission" class="form-control ui-search-input" required="required" value="<?= $offer_status['comission'] ?>" placeholder="<?= $lang['Comission']?>" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $lang['Date to return']?></label>
                            <div class="col-sm-7">
                                <input type="text" name="return_date" class="form-control ui-search-input datetimepicker" readonly="readonly" required="required" value="<?= $offer_status['return_date'] ?>" placeholder="<?= $lang['Date to return']?>" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?= $lang['Assign By']?></label>
                            <div class="col-sm-7">
                                <?php
                                $mysqli_query = "SELECT * FROM system_user
                                                 WHERE user_is_interview_by = 'yes' AND user_trash = '0' ORDER BY user_name" ;
                                $mysqli_user = $mysqli->query($mysqli_query) ;
                                if ($mysqli_user->num_rows > 0){
                                    echo '
                                    <select name="assign_by" class="form-control ui-search-input" required="required">
                                        <option value="">'.$lang['select'].'</option>' ;
                                        while ($row_user = $mysqli_user->fetch_array(MYSQLI_ASSOC)){
                                            echo '
                                            <option value="'.$row_user['user_id'].'" '.($row_user['user_id'] == $row_page['employment_assign_by'] ? 'selected' : '').'>'.dataFilter($row_user['user_fullname']).'</option>' ;	
                                        }
                                    echo '
                                    </select>' ;
                                }
                                ?>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">&nbsp;</label>
                            <div class="col-sm-7">
                                <label><input type="radio" value='OLNO' name="sent_offer_letter"/> Sent offer letter to candidate (without agreement) <?= ($offer_status['sent_ol_date'] != '' ? '<span style="color:red">(Offer Letter had sent before)</span>' : '') ?></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">&nbsp;</label>
                            <div class="col-sm-7">
                                <label><input type="radio" value="OLA" name="sent_offer_letter"/> Sent offer letter to candidate (with agreement) <?= ($offer_status['sent_ol_date'] != '' ? '<span style="color:red">(Offer Letter had sent before)</span>' : '') ?></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-7">
                                <input type="hidden" name="hide" value="1" />
                                <button type="submit" class="btn btn-purple" style="float:right"><?= $lang['submit']?></button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>