<?php $__env->startSection('content'); ?>
    <?php Fun::lang()?>
    <div class="top-header">
        <ol class="breadcrumb">
            <li><a href="#"><?php echo e(__('administrator.Dashboard')); ?></a></li>
            <li><a href="<?php echo e(route('hr-development-plan.index')); ?>"><?php echo e(__('administrator.development_plan')); ?></a></li>
        </ol>
    </div>
    <div class="container">
        <div class="top-content">
            <div class="row">
                <div class="col-sm-12 col-xs-12">
                    <div class="title-add">
                        <div class="pull-left">
                            <h3><?php echo e(__('administrator.development_plan')); ?></h3>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <?php echo Form::model($dev, ['method' => 'PATCH','route' => ['hr-development-plan.update', $dev->id]]); ?>

        <div class="row">
            <div class="col-sm-12">
                <div class="master-form">
                    <div class="title-note">
                        <h3><span class="fa fa-exclamation-triangle"></span> <?php echo e(__('administrator.development_plan')); ?>

                            <i>(<?php echo e(__('administrator.fields_in_red_are_required')); ?>)</i></h3>
                    </div>

                    <div class="form-group col-sm-12 col-xs-12">
                        <div class="col-sm-3 col-xs-12 ">
                            <label class="required"  for="name"><?php echo e(__('administrator.employee')); ?></label>
                        </div>
                        <div class="col-sm-8">
                            <?php echo Form::select('emp_id', $emp ,null, array('placeholder' => __('administrator.please_select'),'class' => 'form-control select2','autocomplete'=>'off','required')); ?>

                        </div>
                    </div>
                    <div class="form-group col-sm-12 col-xs-12">
                        <div class="col-sm-3 col-xs-12 ">
                            <label class="required"  for="name"><?php echo e(__('administrator.request_to')); ?></label>
                        </div>
                        <div class="col-sm-8">
                            <?php echo Form::select('request_to', $emp ,null, array('placeholder' => __('administrator.please_select'),'class' => 'form-control select2','autocomplete'=>'off','required')); ?>

                        </div>
                    </div>
                    <div class="form-group col-sm-12 col-xs-12">
                        <div class="col-sm-3 col-xs-12 ">
                            <label class=""  for="name">Area an need of Department</label>
                        </div>
                        <div class="col-sm-8">
                            <?php echo Form::textarea('description_department' ,null, array('placeholder' => __('administrator.department'),'class' => 'form-control ','autocomplete'=>'off')); ?>

                        </div>
                    </div>
                    <div class="form-group col-sm-12 col-xs-12">
                        <div class="col-sm-3 col-xs-12 ">
                            <label class=""  for="name"><?php echo e(__('administrator.suggestion')); ?></label>
                        </div>
                        <div class="col-sm-8 table-responsive table-responsive-ss">
                            <table class="table table-bordered" width="100%;">
                                <thead>
                                <tr style="text-align: center;">
                                    <th>1. Training</th>
                                    <th>2. Hard Skill</th>
                                    <th>3. Soft Skill</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>
                                        <?php
                                            $training = \App\HrTraining::get();
                                            $hard_skill = \App\HrHardSkill::get();
                                            $soft_skill = \App\HrSoftSkill::get();
                                            $suggestion_training = $dev->suggestion_training;
                                            $suggestion_hard_skill = $dev->suggestion_hard_skill;
                                            $suggestion_soft_skill = $dev->suggestion_soft_skill;
                                        ?>
                                        <?php $__currentLoopData = $training; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <input class="" type="checkbox" value="1" <?php echo e(@$suggestion_training[$value->name]?'checked=true':''); ?> name="training[<?php echo e($value->name); ?>]" >
                                            <label><?php echo e($value->name); ?></label><br>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </td>
                                    <td>
                                        <?php $__currentLoopData = $hard_skill; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <input class="" type="checkbox" value="1" <?php echo e(@$suggestion_hard_skill[$value->name]?'checked=true':''); ?> name="hard_skill[<?php echo e($value->name); ?>]" >
                                            <label><?php echo e($value->name); ?></label><br>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </td>
                                    <td>
                                        <?php $__currentLoopData = $soft_skill; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <input class="" type="checkbox" value="1"  <?php echo e(@$suggestion_soft_skill[$value->name]?'checked=true':''); ?>  name="soft_skill[<?php echo e($value->name); ?>]" >
                                            <label><?php echo e($value->name); ?></label><br>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="form-group col-sm-12 col-xs-12">
                        <div class="col-sm-3 col-xs-12 ">
                            <label class=""  for="name"><?php echo e(__('administrator.description')); ?></label>
                        </div>
                        <div class="col-sm-8">
                            <?php echo Form::textarea('description' ,null, array('placeholder' => __('administrator.department'),'class' => 'form-control ','autocomplete'=>'off')); ?>

                        </div>
                    </div>


                    <div class="col-sm-11 col-xs-12">
                        <div class="form-group footer-save">
                            <button type="submit" class=" button_primary pull-right"><span
                                        class="fa fa-save"></span> <?php echo e(__('administrator.save')); ?></button>
                            <button type="button" onClick="history.go(-1)"
                                    class=" button_warning pull-right">
                                <span class=" fa fa-arrow-circle-left"></span> <?php echo e(__('administrator.back')); ?></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php echo Form::close(); ?>

    </div>
<?php $__env->stopSection(); ?>





<?php echo $__env->make('layouts.app-hr', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/hr/development-plan/edit.blade.php ENDPATH**/ ?>