<div class="row">
    <div class="col-sm-12 col-md-11 candidate-update-form">
        <div class="panel panel-bd">

            <div class="panel-heading">
                <div class="panel-title">
                    <h4>
                        <?php echo display('update')?>
                    </h4>
                </div>
            </div>

            <div class="panel-body">

                <?php echo  form_open_multipart('recruitment/Candidate_select/update_final_shortlist_form/'. $data->can_short_id) ?>


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

                <div class="form-group row">
                    <label for="can_id" class="col-sm-3 col-form-label"><?php echo display('candidate_name') ?> *</label>
                    <div class="col-sm-9">

                        <?php echo form_dropdown('can_id', $canlist, (!empty($data->can_id)?$data->can_id:null), ' class="form-control"') ?>
                    </div>
                </div>

                <div class="form-group row">
                    <label for="job_adv_id" class="col-sm-3 col-form-label"><?php echo display('job_adv_id') ?> *</label>
                    <div class="col-sm-9">
                        <?php echo form_dropdown('job_adv_id', $dropdown, (!empty($data->job_adv_id)?$data->job_adv_id:null), ' class="form-control"') ?>
                    </div>
                </div>

                <div class="form-group row">
                    <label for="date_of_shortlist" class="col-sm-3 col-form-label"><?php echo display('date_of_shortlist') ?> *</label>
                    <div class="col-sm-9">
                        <input type="text" name="date_of_shortlist" class="datepicker form-control" id="date_of_shortlist" value="<?php echo $data->date_of_shortlist?>">
                    </div>
                </div>
                <div class="form-group row">
                    <label for="interview_date" class="col-sm-3 col-form-label"><?php echo "Final Interview Date" ?></label>
                    <div class="col-sm-9">
                        <input type="datetime-local" name="interview_date" class="form-control" id="interview_date" value="<?php echo $data->interview_date?>">
                    </div>
                </div>

                <div class="form-group row">
                    <label for="shortlisted_by"
                           class="col-sm-3 col-form-label"><?php echo "Shortlisted By" ?></label>
                    <div class="col-sm-9">
                        <select name="shortlisted_by" class="form-control">
                            <option value="">Select One</option>
                            <?php foreach ($emplist as $emp) { ?>
                                <option value="<?php echo $emp->employee_id ?>" <?php if ($data->shortlisted_by == $emp->employee_id) {
                                    echo 'selected';
                                } ?>><?php echo $emp->first_name . ' ' . $emp->last_name ?></option>
                            <?php } ?>
                        </select>
                    </div>
                </div>

                <div class="form-group row">
                    <label for="manager"
                           class="col-sm-3 col-form-label"><?php echo "Manager" ?></label>
                    <div class="col-sm-9">
                        <select name="manager" class="form-control">
                            <option value="">Select One</option>
                            <?php foreach ($emplist as $emp) { print_r($emp->employee_id) ?>
                                <option value="<?php echo $emp->employee_id ?>" <?php if ($data->manager == $emp->employee_id) {
                                    echo 'selected';
                                } ?>><?php echo $emp->first_name . ' ' . $emp->last_name ?></option>
                            <?php } ?>
                        </select>
                    </div>
                </div>



                <div class="form-group form-group-margin text-right">

                    <button type="submit" class="btn btn-success w-md m-b-5"><?php echo display('update') ?></button>
                </div>

                <?php echo form_close() ?>


            </div>
        </div>
    </div>
</div>
   