<?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-overtime-request.index')); ?>"><?php echo e(__('administrator.r.overtime')); ?></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.overtime')); ?></h3>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <?php echo Form::model($overtime, ['method' => 'PATCH','route' => ['hr-overtime-request.update', $overtime->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.overtime')); ?>

                            <i>(<?php echo e(__('administrator.fields_in_red_are_required')); ?>)</i></h3>
                    </div>
                    <div class="form-group col-md-3 col-sm-6 col-xs-12">
                        <div class="">
                            <strong class="required"  for="name"><?php echo e(__('administrator.employee')); ?></strong>
                            <?php echo Form::select('emp_id',$employee ,null, array('placeholder' => __('administrator.please_select'),'class' => 'form-control select2','required')); ?>

                        </div>
                    </div>
                    <div class="form-group col-md-3 col-sm-6 col-xs-12">
                        <div class="">
                            <strong class="required"  for="name"><?php echo e(__('administrator.project')); ?></strong>
                            <?php echo Form::text('project', null, array('placeholder' => __('administrator.project'),'class' => 'form-control', 'autocomplete'=>'off','required')); ?>

                        </div>
                    </div>
                    <div class="form-group col-md-3 col-sm-6 col-xs-12">
                        <div class="">
                            <strong class="required"  for="name"><?php echo e(__('administrator.date')); ?></strong>
                            <?php echo Form::text('date', $overtime->date ? date('d-m-Y', strtotime($overtime->date)): null, array('placeholder' => __('administrator.date'),'class' => 'form-control date_picker', 'autocomplete'=>'off','required')); ?>

                        </div>
                    </div>
                    <div class="form-group col-md-3 col-sm-6 col-xs-12">
                        <div class="">
                            <strong class="" for="name"><?php echo e(__('administrator.time_in')); ?></strong>
                            <!-- time Picker -->
                            <div class="bootstrap-timepicker ">
                                <div class="form-group">
                                    <div class="input-group">
                                        <?php echo Form::text('start', null,array('class' => 'form-control timepicker')); ?>

                                        <div class="input-group-addon">
                                        <i class="fa fa-clock-o"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-md-3 col-sm-6 col-xs-12">
                        <div class="">
                            <strong class="" for="name"><?php echo e(__('administrator.time_out')); ?></strong>
                            <!-- time Picker -->
                            <div class="bootstrap-timepicker ">
                                <div class="form-group">
                                    <div class="input-group">
                                        <?php echo Form::text('end', null,array('class' => 'form-control timepicker')); ?>

                                        <div class="input-group-addon">
                                        <i class="fa fa-clock-o"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-md-3 col-sm-6 col-xs-12">
                        <div class="">
                            <strong class="" for="name"><?php echo e(__('administrator.hour')); ?></strong>
                            <?php echo Form::text('hours', null, array('placeholder' => __('administrator.hour'),'class' => 'form-control number-only', 'autocomplete'=>'off')); ?>

                        </div>
                    </div>
                    <div class="form-group col-md-3 col-sm-6 col-xs-12">
                        <div class="">
                            <strong class="required" for="name"><?php echo e(__('administrator.ot_type')); ?></strong>
                            <?php echo Form::select('ot_type',[
                                    ''=>__('administrator.please_select'),
                                    'ot_night_shift'=>__('administrator.ot_night_shift'),
                                    'ot_normal'=>__('administrator.ot_normal'),
                                    'ot_eight'=>__('administrator.ot_eight'),
                                    'ot_over_night'=>__('administrator.ot_over_night'),
                                    'ot_sunday'=>__('administrator.ot_sunday'),
                                    'ot_holiday'=>__('administrator.ot_holiday')]
                                     ,null, array('class' => 'form-control select2','required')); ?>

                        </div>
                    </div>
                    <div class="form-group col-md-3 col-sm-6 col-xs-12">
                        <div class="">
                            <strong class="required" for="name"><?php echo e(__('administrator.ot_rate')); ?></strong>
                            <?php echo Form::select('ot_rate',[
                                    ''=>__('administrator.please_select'),
                                    '1'=>'100%',
                                    '1.5'=>'150%',
                                    '2'=>'200%']
                                    ,null, array('class' => 'form-control select2','required')); ?>

                        </div>
                    </div>
                    <div class="form-group col-sm-12 col-xs-12">
                        <div class=" ">
                            <strong class=""  for="name"><?php echo e(__('administrator.reason')); ?></strong>
                            <?php echo Form::textarea('reason', null, array('placeholder' => __('administrator.reason'),'class' => 'form-control no-resize', 'autocomplete'=>'off','rows'=>'3')); ?>

                        </div>
                    </div>
                    <div class="form-group col-sm-12 col-xs-12">
                        <div class=" ">
                            <strong class=""  for="name"><?php echo e(__('administrator.note')); ?></strong>
                            <?php echo Form::textarea('note', null, array('placeholder' => __('administrator.note'),'class' => 'form-control no-resize', 'autocomplete'=>'off','rows'=>'3')); ?>

                        </div>
                    </div>

                    <div class="col-sm-12 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/overtime-request/edit.blade.php ENDPATH**/ ?>