

<?php $__env->startSection('content'); ?>
    <?php Fun::lang() ?>
    <?php
    $rand_id = rand(1, 1000) . time() . rand(1, 1000);

    ?>
    <div class="top-header">
        <ol class="breadcrumb">
            <li><a href="#"><?php echo e(__('administrator.dashboard')); ?></a></li>
            <li><a href="#"><?php echo e(__('administrator.take_leave_authorize')); ?></a></li>
        </ol>
    </div>
    <div id="page" class="page">
        <?php echo Form::model($emp_leave, ['method' => 'PATCH','route' => ['take-leave-authorize.update', $emp_leave->id]]); ?>

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

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

                    </div>
                </div>
                <div class="form-group col-sm-4 col-md-4 ">
                    <?php
                        $m = \App\Models\LeaveType::getUpperCaseFullName($leave_type);
                        //dd($m,$leave_type);
                    ?>
                    <div class="">
                        <strong class="required">Leave Type</strong>
                        <?php echo Form::select('leave_type', $m,null, array('placeholder' => __('administrator.please_select'),'class' => 'form-control select2','required')); ?>

                    </div>
                </div>
                <div class="form-group col-sm-4 col-md-4 ">
                    <div class="">
                        <strong class="required">Request To</strong>
                        <?php echo Form::select('request_to', $emp,null, array('placeholder' => __('administrator.please_select'),'class' => 'form-control select2','required')); ?>

                    </div>
                </div>

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

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

                    </div>
                </div>
                <div class="form-group col-sm-4 col-md-4">
                    <div class="">
                        <strong>Request date</strong>
                        <?php echo Form::text('request_date',date('d-m-Y',strtotime($emp_leave->request_date)), array('placeholder' => __('administrator.request_date'),'class' => 'form-control date_picker','autocomplete'=>'off')); ?>

                    </div>
                </div>
                <div class="form-group col-sm-4 col-md-4">
                    <div class="">
                        <strong class="">Reason</strong>
                        <?php echo Form::text('reason', null, array('placeholder' => __('administrator.reason'),'class' => 'form-control','autocomplete'=>'off')); ?>

                    </div>
                </div>

                <div class="form-group col-sm-12 col-xs-12">
                    <div class="form-group footer-save">
                        <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>
        <?php echo Form::close(); ?>

    </div>

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



<?php $__env->startSection('js'); ?>

<?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/take-leave-authorize/review.blade.php ENDPATH**/ ?>