<div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>

        <h4 class="modal-title"><strong>
                <i class="la la-edit"></i>  <?php echo app('translator')->get('core.editLeaveType'); ?></strong></h4>
    </div>
    <div class="modal-body">
        <div class="panel-body form">

            <!-- BEGIN FORM-->

            <?php echo Form::open(['method' => 'PUT', 'id' => 'leave_type_update_form', 'class'=>'form-horizontal']); ?>


            <div class="form-body">
                <div class="form-group">
                    <label class="col-md-4 control-label"><?php echo e(trans('core.typeOfLeave')); ?><span
                                class="required">
                                        * </span>
                    </label>

                    <div class="col-md-6">
                        <input type="text" class="form-control input-medium date-picker" id="leaveType"
                               name="leaveType"
                               value="<?php echo e($leavetype->leaveType); ?>"
                               placeholder="<?php echo e(trans('core.typeOfLeave')); ?>">
                        <span class="help-block"></span>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-4 control-label"><?php echo e(trans('core.noOfDays')); ?>

                        <span
                                class="required">
                                        * </span>
                        </span>
                    </label>

                    <div class="col-md-6">
                        <input type="text" class="form-control only-num input-medium date-picker"
                               name="num_of_leave" id="num_of_leave"
                               value="<?php echo e($leavetype->num_of_leave); ?>"
                               placeholder="<?php echo e(trans('core.noOfDays')); ?>"
                        >
                        <span class="help-block"></span>
                    </div>
                </div>
            </div>


            <div class="form-actions">
                <div class="row">
                    <div class="col-md-offset-3 col-md-9">
                        <button type="button" onclick="addUpdateLeaveType(<?php echo e($leavetype->id); ?>)"
                                class="btn btn-primary"> <?php if(isset($leavetype)): ?><i class="la la-edit"></i>  <?php echo app('translator')->get('core.btnUpdate'); ?> <?php else: ?>
                                <i class="la la-plus"></i>   <?php echo app('translator')->get('core.btnSubmit'); ?> <?php endif; ?></button>

                    </div>
                </div>
            </div>
        <?php echo Form::close(); ?>

        <!-- END FORM-->
        </div>
    </div>
    <!-- END EXAMPLE TABLE PORTLET-->
</div>


<?php /**PATH /home/dmwachinga/projects/hr/KodiHRM/resources/views/admin/leavetypes/edit.blade.php ENDPATH**/ ?>