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

                    </div>
                </div>
            </div>
        </div>
        {!! Form::open(array('route' => 'hr-candidate.store','method'=>'POST','enctype'=>'multipart/form-data')) !!}
        <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.candidate')}}
                            <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.applied_position')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('job_post_id', $job,null, array('placeholder' => __('administrator.please_select'),'class' => 'form-control select2','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.firstname')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('firstname',null, array('placeholder'=>__('administrator.firstname'),'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.lastname')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('lastname',null, array('placeholder'=>__('administrator.lastname'),'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 for="name">{{__('administrator.photo')}}</label>
                            </div>
                            <div class="col-sm-8">
                                <div class="col-sm-12">
                                    <input type="file" name="photo"
                                           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>
                                <input type="hidden" name="hidden_image_name"
                                       value="">
                            </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.sex')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::select('gender',['Female'=>__('administrator.female'),'Male'=>__('administrator.male')],null, array('placeholder'=>__('administrator.please_select'),'class' => 'form-control select2','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.date_of_birth')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('date_of_birth',null, array('placeholder'=>__('administrator.date_of_birth'),'class' => 'form-control date_picker','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.contact')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('contact',null, array('placeholder'=>__('administrator.contact'),'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 for="name">{{__('administrator.email')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('email',null, array('placeholder'=>__('administrator.email'),'class' => 'form-control')) !!}
                            </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.address')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::textarea('address',null, array('placeholder'=>__('administrator.address'),'class' => 'form-control no-resize','rows'=>3,'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.prefered_industry')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('prefered_industry',null, array('placeholder'=>__('administrator.prefered_industry'),'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 for="name">{{__('administrator.total_year_exp')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('total_year_exp',null, array('placeholder'=>__('administrator.total_year_exp'),'class' => 'form-control')) !!}
                            </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.expected_salary')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::text('expected_salary',null, array('placeholder'=>__('administrator.expected_salary'),'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.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','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.cv')}}</label>
                            </div>
                            <div class="col-sm-8">
                                <input type="file" name="cv" 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.note')}}</label>
                            </div>
                            <div class="col-sm-8">
                                {!! Form::textarea('note',null, array('placeholder'=>__('administrator.note'),'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>
        </div>
        {!! Form::close() !!}
    </div>
@endsection




