@extends('layouts.app-hr')
@section('content')
    <?php Fun::lang()?>
    <div class="top-header">
        <ol class="breadcrumb">
            <li><a href="#">{{__('administrator.Dashboard')}}</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.overtime_policy')}}</h3>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        {!! Form::model($overtime_policy, ['method' => 'PATCH','route' => ['overtime-policy.update', $overtime_policy->id],'id'=>'form-submit']) !!}
        <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.overtime_policy')}}
                            <i>({{__('administrator.fields_in_red_are_required')}})</i></h3>
                    </div>
                    <div class="col-sm-offset-3 col-sm-6">
                        <div class="form-group col-sm-12 col-xs-12">
                            <div class="col-sm-3 col-xs-12 ">
                                <label class="required"  for="name">{{__('administrator.overtime_policy')}} {{__('administrator.name')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('name', null, array('placeholder'=>'Name', 'class' => 'form-control','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">{{__('administrator.rate_normal_ot')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('normal_ot_rate', null, array('placeholder' => __('administrator.rate_normal_ot'),'class' => 'form-control number-only','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">{{__('administrator.rate_sunday_ot')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('sunsat_ot_rate', null, array('placeholder' => __('administrator.rate_sunday_ot'),'class' => 'form-control number-only','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">{{__('administrator.rate_holiday_ot')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('holiday_ot_rate', null, array('placeholder' => __('administrator.rate_holiday_ot'),'class' => 'form-control number-only','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">{{__('administrator.effect_date')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('effect_date', date('m-d-Y', strtotime($overtime_policy->effect_date)), array('placeholder' => __('administrator.effect_date'),'class' => 'form-control date_picker','required')) !!}
                            </div>
                        </div>



                        <div class="col-sm-11 col-xs-12">
                            <div class="form-group footer-save">
                                <button type="submit" onclick="remove_require()" 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>
        </div>
        {!! Form::close() !!}
    </div>
@endsection
@section('script')
    <script>
    </script>
@endsection




