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

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

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

                            </div>
                        </div>
                        <div class="form-group col-sm-4 col-xs-4">
                            <div class="">
                                <strong class="required"  for="name"><?php echo e(__('administrator.loan_type')); ?></strong>
                                <?php echo Form::select('loan_type',[
                                            'personal' => 'Personal',
                                            'family'   => 'Family',
                                            'other'    => 'Other'
                                            ],$emp_loan->type_loan , array('class' => 'form-control select2','autocomplete'=> 'off','required')); ?>

                            </div>
                        </div>
                        <div class="form-group col-sm-4 col-xs-4">
                            <div class="">
                                <strong class="required"  for="name"><?php echo e(__('administrator.month')); ?></strong>
                                <?php echo Form::text('month',$month_year , array('class' => 'form-control month_year','autocomplete'=> 'off','required')); ?>

                            </div>
                        </div>
                        <div class="form-group col-sm-4 col-xs-4">
                            <div class="">
                                <strong class="required"  for="name"><?php echo e(__('administrator.amount')); ?></strong>
                                <?php echo Form::text('amount',null, array('class' => 'form-control number-only','autocomplete'=> 'off','required')); ?>

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

                            </div>
                        </div>
                        <div class="form-group col-sm-4 col-xs-4">
                            <div class="">
                                <strong class="required"  for="name"><?php echo e(__('administrator.interest')); ?></strong>
                                <?php echo Form::text('interest',null, array('class' => 'form-control number-only','autocomplete'=> 'off','required')); ?>

                            </div>
                        </div>

                        <div class="form-group col-sm-4 col-xs-4">
                            <div class="">
                                <strong class="required"  for="name"><?php echo e(__('administrator.duration')); ?></strong>
                                <?php echo Form::text('duration',null , array('class' => 'form-control number-only','autocomplete'=> 'off','required')); ?>

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

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

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

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

                            </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>
        </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/employee-loan/edit.blade.php ENDPATH**/ ?>