@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="#">{{__('administrator.position')}}</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.position')}}</h3>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        {!! Form::model($position, ['method' => 'PATCH','route' => ['hr-position.update', $position->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.position')}}
                            <i>({{__('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">{{__('administrator.department')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::select('department_id', $department, null, array('placeholder' => __('administrator.please_select'),'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.position_code')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::text('code', null, array('placeholder' => __('administrator.position_code'),'maxlength' => '8','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.position_khmer_name')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::text('khmer_name', null, array('placeholder' => __('administrator.position_khmer_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.position_english_name')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::text('english_name', null, array('placeholder' => __('administrator.position_english_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="" for="name">{{__('administrator.description')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::textarea('description', null, array('placeholder' => __('administrator.description'),'class' => 'form-control  no-resize','rows'=>'3')) !!}
                        </div>
                    </div>
                    <div class="form-group col-sm-12 col-xs-12">
                        <div class="col-sm-3 col-xs-12 ">
                            <label class="" for="name">{{__('administrator.specification')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::textarea('specification', null, array('placeholder' => __('administrator.specification'),'class' => 'form-control  no-resize','rows'=>'3')) !!}
                        </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


    

