@extends('adminlte::page')
@section('content')
    <?php Fun::lang()?>
    <div class="top-header">
        <ol class="breadcrumb">
            <li><a href="#">{{__('administrator.Dashboard')}}</a></li>
            <li><a href="{{route('hr-job-post.index')}}">{{__('administrator.job_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.job_position')}}</h3>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        {!! Form::open(array('route' => 'hr-job-post.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.job_position')}}
                            <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.code')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('job_code', null, array('placeholder' => __('administrator.code'),'class' => 'form-control input-sm','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.job_title')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('job_title', null, array('placeholder' => __('administrator.job_title'),'class' => 'form-control input-sm','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.company_name')}}</label>--}}
                            {{--</div>--}}
                            {{--<div class="col-sm-8">--}}
                                {{--{!! Form::text('company_name', null, array('placeholder' => __('administrator.company_name'),'class' => 'form-control input-sm','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.description')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::textarea('job_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="required" for="name">{{__('administrator.requirement')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::textarea('requirement',null, array('placeholder'=>__('administrator.requirement'),'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.benefit')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('benefit[]',$benefit,null, array('placeholder'=>__('administrator.please_select'),'class' => 'form-control input-sm select2', 'multiple'=>'multiple')) !!}
                            </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.department')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('department',$department,null, array('placeholder'=>__('administrator.please_select'),'class' => 'form-control input-sm select2')) !!}
                            </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.sex')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('sex',[''=>__('administrator.none'),'male'=>__('administrator.male'),'female'=>__('administrator.female')],null, array('class' => 'form-control input-sm select2')) !!}
                            </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.from_age')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::number('from_age',null, array('placeholder'=>__('administrator.from_age'),'class' => 'form-control number-only input-sm')) !!}
                            </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.to_age')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::number('to_age',null, array('placeholder'=>__('administrator.to_age'),'class' => 'form-control number-only input-sm')) !!}
                            </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.employment_type')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('employment_type',$emp_type,null, array('placeholder'=>__('administrator.please_select'),'class' => 'form-control select2')) !!}
                            </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.exp_level')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('exp_level',$exp_level,null, array('placeholder'=>__('administrator.please_select'),'class' => 'form-control select2')) !!}
                            </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.year_of_exp')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::number('exp_year',null, array('placeholder'=>__('administrator.year_of_exp'),'class' => 'form-control number-only input-sm')) !!}
                            </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.job_function')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('job_function',$job_func,null, array('placeholder'=>__('administrator.please_select'),'class' => 'form-control select2')) !!}
                            </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.education_level')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('education_level',$edu_level,null, array('placeholder'=>__('administrator.please_select'),'class' => 'form-control select2')) !!}
                            </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.currency')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('currency',['riel'=>__('administrator.riel'),'usd'=>__('administrator.usd')],null, array('placeholder'=>__('administrator.please_select'),'class' => 'form-control select2')) !!}
                            </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.salary_min')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::number('salary_min',null, array('placeholder'=>__('administrator.salary_min'),'class' => 'form-control number-only input-sm')) !!}
                            </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.salary_max')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::number('salary_max',null, array('placeholder'=>__('administrator.salary_max'),'class' => 'form-control number-only input-sm')) !!}
                            </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.hiring_amount')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::number('hiring_amt',null, array('placeholder'=>__('administrator.hiring_amount'),'class' => 'form-control number-only input-sm')) !!}
                            </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.location')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('location',$province,null, array('placeholder'=>__('administrator.please_select'),'class' => 'form-control select2')) !!}
                            </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.closing_date')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('closing_date',null, array('placeholder'=>__('administrator.closing_date'),'class' => 'form-control date_picker input-sm','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.picture')}}</label>--}}
                            {{--</div>--}}
                            {{--<div class="col-sm-8">--}}
                                {{--<div class="col-sm-12">--}}
                                    {{--<input type="file" name="avatar"--}}
                                           {{--onchange="document.getElementById('blah').src = window.URL.createObjectURL(this.files[0])">--}}
                                {{--</div>--}}
                                {{--<div class="col-sm-12">&nbsp;</div>--}}
                                {{--<div class="col-sm-12">--}}
                                    {{--<div class="add_img text-left">--}}
                                        {{--<img src="" style="" id="blah" width="30%">--}}
                                    {{--</div>--}}
                                {{--</div>--}}
                            {{--</div>--}}
                        {{--</div>--}}
                        <div class="col-sm-11 col-xs-12">
                            <div class="form-group footer-save">
                                <button type="submit" class="button_sm button_primary pull-right"><span
                                            class="fa fa-save"></span> {{__('administrator.save')}}</button>
                                <button type="button" onClick="javascript:history.go(-1)"
                                        class="button_sm 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


    

