@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="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>{{__('administrator.generate_attendance')}}</h3>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {!! Form::open(array('route' => 'hr-generate-attendance.store','method'=>'POST')) !!}
        <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.generate_attendance')}}
                            <i>({{__('administrator.fields_in_red_are_required')}})</i></h3>
                    </div>

                    <div class="col-xs-4 col-sm-4 col-md-4">
                        <div class="form-group">
                            <strong>{{__('administrator.branch')}}:</strong>
                            {!! Form::select('branch_id[]',$branch,null, array('class' => 'form-control select2' , 'multiple' , 'autocomplete' => 'off','' )) !!}
                        </div>
                    </div>
                    <div class="col-xs-4 col-sm-4 col-md-4">
                        <div class="form-group">
                            <strong>{{__('administrator.department')}}:</strong>
                            {!! Form::select('department_id[]',$department,null, array('class' => 'form-control select2', 'multiple', 'autocomplete' => 'off','' )) !!}
                        </div>
                    </div>
                    <div class="col-xs-4 col-sm-4 col-md-4">
                        <div class="form-group">
                            <strong>{{__('administrator.position')}}:</strong>
                            {!! Form::select('position_id[]',$position,null, array('class' => 'form-control select2', 'multiple', 'autocomplete' => 'off','' )) !!}
                        </div>
                    </div>
                    <div class="col-xs-12 col-sm-12 col-md-12">
                        <div class="form-group">
                            <strong>{{__('administrator.employee')}}:</strong>
                            {!! Form::select('emp_id[]',$emp,null, array('class' => 'form-control select2', 'multiple', 'autocomplete' => 'off','' )) !!}
                        </div>
                    </div>
                    <div class="col-xs-4 col-sm-4 col-md-4">
                        <div class="form-group">
                            <strong>{{__('administrator.month')}}:</strong>
                            {!! Form::text('month_year', null, array('placeholder' => __('administrator.month'),'class' => 'form-control month_year','required')) !!}
                        </div>
                    </div>
                    <div class="col-xs-4 col-sm-4 col-md-4">
                        <div class="form-group">
                            <strong>{{__('administrator.from_date')}}:</strong>
                            {!! Form::text('from_date',null, array('placeholder'=>__('administrator.from_date'),'class' => 'form-control  date_picker', 'autocomplete' => 'off','' )) !!}
                        </div>
                    </div>
                    <div class="col-xs-4 col-sm-4 col-md-4">
                        <div class="form-group">
                            <strong>{{__('administrator.to_date')}}:</strong>
                            {!! Form::text('to_date',null, array('placeholder'=>__('administrator.to_date'),'class' => 'form-control  date_picker', 'autocomplete' => 'off','' )) !!}                    </div>
                        </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> {{__('administrator.generate')}}
                            </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




