@extends('layouts.app-hr')
@section('content')
    <?php Fun::lang()?>
    <div class="top-header">
        <ol class="breadcrumb">
            <li><a href="#">{{__('administrator.Dashboard')}}</a></li>
            <li><a href="{{route('hr-time-policy.index')}}">{{__('administrator.time_policy')}}</a></li>
        </ol>
    </div>
    <div class="page">
        <div class="top-content">
            <div class="row">
                <div class="col-sm-12 col-xs-12">
                    <div class="title-add">
                        <div class="pull-left">
                            <h3>{{__('administrator.time_policy')}}</h3>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        {!! Form::model($time_policy, ['method' => 'PATCH','route' => ['hr-time-policy.update', $time_policy->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> {{__('administrator.time_policy')}}
                            <i>({{__('administrator.fields_in_red_are_required')}})</i></h3>
                    </div>
                    <div class="form-group col-sm-4 col-xs-4">
                        <div class="">
                            <strong class="required"  for="name">{{__('administrator.name')}}</strong>
                            {!! Form::text('name', null, array('placeholder' => __('administrator.name'),'class' => 'form-control', 'autocomplete'=>'off','required')) !!}
                        </div>
                    </div>
                    <div class="form-group col-sm-4 col-xs-4">
                        <div class="">
                            <strong class="" for="name">{{__('administrator.time_in')}}</strong>
                            <!-- time Picker -->
                            <div class="bootstrap-timepicker ">
                                <div class="form-group">
                                    <div class="input-group">
                                        {!! Form::text('time_in', 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-sm-4 col-xs-4">
                        <div class="">
                            <strong class="" for="name">{{__('administrator.time_out')}}</strong>
                            <!-- time Picker -->
                            <div class="bootstrap-timepicker ">
                                <div class="form-group">
                                    <div class="input-group">
                                        {!! Form::text('time_out', 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-sm-4 col-xs-4">
                        <div class="">
                            <strong class="" for="name">{{__('administrator.ot_time_in')}}</strong>
                            <!-- time Picker -->
                            <div class="bootstrap-timepicker ">
                                <div class="form-group">
                                    <div class="input-group">
                                        {!! Form::text('ot_time_in', 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-sm-4 col-xs-4">
                        <div class="">
                            <strong class="" for="name">{{__('administrator.ot_time_out')}}</strong>
                            <!-- time Picker -->
                            <div class="bootstrap-timepicker ">
                                <div class="form-group">
                                    <div class="input-group">
                                        {!! Form::text('ot_time_out', 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-sm-4 col-xs-4">
                        <div class="">
                            <strong class=""  for="name">{{__('administrator.note')}}</strong>
                            {!! Form::text('note', null, array('placeholder' => __('administrator.note'),'class' => 'form-control', 'autocomplete'=>'off')) !!}
                        </div>
                    </div>


                    <div class="col-sm-11 col-xs-12">
                        <div class="form-group footer-save">
                            <button type="submit" class=" button_primary pull-right"><span
                                        class="fa fa-save"></span> {{__('administrator.save')}}</button>
                            <button type="button" onClick="history.go(-1)"
                                    class=" button_warning pull-right">
                                <span class=" fa fa-arrow-circle-left"></span> {{__('administrator.back')}}</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {!! Form::close() !!}
    </div>
@endsection




