@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-in-external-training.index')}}">{{__('administrator.in_external_training')}}</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.in_external_training')}}</h3>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        {!! Form::model($in_ex_training, ['method' => 'PATCH', 'route' => ['hr-in-external-training.update', $in_ex_training->training_course_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.in_external_training')}}
                            <i>({{__('administrator.fields_in_red_are_required')}})</i></h3>
                    </div>
                    <div class="col-sm-12">
                        <div class="form-group col-sm-12 col-xs-12">
                            <div class="col-sm-12">
                                <strong class="required"  for="name">{{__('administrator.employee')}}</strong>
                                {!! Form::select('emp[]',$emp, $select, array('class' => 'form-control select2', 'multiple','autocomplete'=> 'off','required')) !!}
                            </div>
                        </div>
                        <div class="form-group col-sm-12 col-xs-12">
                            <div class="col-sm-12">
                                <strong class="required"  for="name">{{__('administrator.training_course')}}</strong>
                                {!! Form::select('training_course_id', $training_course, null, array('placeholder' => __('administrator.please_select'), 'class' => 'form-control select2','autocomplete'=> 'off','required')) !!}
                            </div>
                        </div>
                        <div class="form-group col-sm-3 col-xs-3">
                            <div class="col-sm-12">
                                <strong class=""  for="name">{{__('administrator.internal_lecturer')}}</strong>
                                {!! Form::select('internal_lecturer_id', $emp, null, array('placeholder' => __('administrator.please_select'),'class' => 'form-control select2','autocomplete'=> 'off')) !!}
                            </div>
                        </div>
                        <div class="form-group col-sm-3 col-xs-3">
                            <div class="col-sm-12">
                                <strong class=""  for="name">{{__('administrator.external_lecturer')}}</strong>
                                {!! Form::select('external_lecturer_id', $external_lecturer, null, array('placeholder' => __('administrator.please_select'),'class' => 'form-control select2','autocomplete'=> 'off')) !!}
                            </div>
                        </div>

                        <div class="form-group col-sm-3 col-xs-3">
                            <div class="col-sm-12">
                                <strong class="required"  for="name">{{__('administrator.start_date')}}</strong>
                                {!! Form::text('start_date', date('d-m-Y', strtotime($in_ex_training->start_date)), array('class' => 'form-control date_picker','autocomplete'=> 'off','required')) !!}
                            </div>
                        </div>
                        <div class="form-group col-sm-3 col-xs-3">
                            <div class="col-sm-12">
                                <strong class="required"  for="name">{{__('administrator.end_date')}}</strong>
                                {!! Form::text('end_date', date('d-m-Y', strtotime($in_ex_training->end_date)), array('class' => 'form-control date_picker','autocomplete'=> 'off','required')) !!}
                            </div>
                        </div>

                        <div class="form-group col-sm-3 col-xs-3">
                            <div class="col-sm-12">
                                <strong class="required"  for="name">{{__('administrator.time_in')}}</strong>
                                <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-3 col-xs-3">
                            <div class="col-sm-12">
                                <strong class="required"  for="name">{{__('administrator.time_out')}}</strong>
                                <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-3 col-xs-3">
                            <div class="col-sm-12">
                                <strong class=""  for="name">{{__('administrator.training_cost')}}</strong>
                                {!! Form::text('training_cost',null, array('class' => 'form-control number-only','autocomplete'=> 'off')) !!}
                            </div>
                        </div>
                        <div class="form-group col-sm-3 col-xs-3">
                            <div class="col-sm-12">
                                <strong class=""  for="name">{{__('administrator.score')}}</strong>
                                {!! Form::text('score',null, array('class' => 'form-control number-only','autocomplete'=> 'off')) !!}
                            </div>
                        </div>
                        <div class="form-group col-sm-12 col-xs-12">
                            <div class="col-sm-12">
                                <strong class=""  for="name">{{__('administrator.location')}}</strong>
                                {!! Form::text('location',null, array('class' => 'form-control','autocomplete'=> 'off')) !!}
                            </div>
                        </div>
                        <div class="form-group col-sm-12 col-xs-12">
                            <div class="col-sm-12">
                                <strong class=""  for="name">{{__('administrator.description')}}</strong>
                                {!! Form::text('description',null, array('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>
        </div>
        {!! Form::close() !!}
    </div>
@endsection



