<?php $__env->startSection('content'); ?>
    <?php Fun::lang()?>
    <?php
        $h = [];
        $mn = [];
        $s = [];
        //push array hour
        for($hours=1; $hours<=12; $hours++)
        {
            $h[sprintf('%02d', $hours)] = sprintf('%02d', $hours);
        }
        //push array minute
        for($m=0; $m<60; $m++)
        {
            $mn[ sprintf('%02d', $m)] = sprintf('%02d', $m);
        }
        //push array second
        for($se=0; $se<60; $se++)
        {
            $s[ sprintf('%02d', $se)] = sprintf('%02d', $se);
        }
    ?>
    <div class="top-header">
        <ol class="breadcrumb">
            <li><a href="#"><?php echo e(__('administrator.Dashboard')); ?></a></li>
            <li><a href="#"><?php echo e(__('administrator.attendance')); ?></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.attendance')); ?></h3>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php echo Form::model($att, ['method' => 'PATCH','route' => ['hr-attendance-fingerprint.update', $att->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.attendance')); ?>

                            <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-9">
                            <?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-sm-12 col-xs-12">
                        <div class="col-sm-3 col-xs-12 ">
                            <label class="required"  for="name"><?php echo e(__('administrator.check_in_out')); ?></label>
                        </div>
                        <div class="col-sm-9">
                            <?php echo Form::text('date', date('d-m-Y', strtotime($att->check_in_out)), array('placeholder' => __('administrator.date'),'class' => 'form-control date_picker','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.check_in_out')); ?></label>
                        </div>
                        <div class="col-sm-3">
                            <?php echo Form::select('check_hour',$h, $time_in_out[0][0], array('placeholder' => __('administrator.hour'),'class' => 'form-control select2')); ?>

                        </div>
                        <div class="col-sm-3">
                            <?php echo Form::select('check_minute',$mn, $time_in_out[0][1], array('placeholder' => __('administrator.minute'),'class' => 'form-control select2')); ?>

                        </div>
                        <div class="col-sm-3">
                            <?php echo Form::select('check_shift',$s, $time_in_out[0][2], array('placeholder' => __('administrator.shift'),'class' => 'form-control select2')); ?>

                        </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.note')); ?></label>
                        </div>
                        <div class="col-sm-9">
                            <?php echo Form::textarea('note', null, array('placeholder' => __('administrator.note'),'class' => 'form-control no-resize','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/attendance-finger-print/edit.blade.php ENDPATH**/ ?>