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

                    </div>
                </div>
            </div>
        </div>
        {!! Form::model($recommend, ['method' => 'PATCH','route' => ['hr-recommendation.update', $recommend->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.recommendation')}}
                            <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.employee')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::select('emp_id', $emp ,null, array('placeholder' => __('administrator.please_select'),'class' => 'form-control select2','autocomplete'=>'off','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.request_to')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::select('request_to', $emp ,null, array('placeholder' => __('administrator.please_select'),'class' => 'form-control select2','autocomplete'=>'off','required')) !!}
                        </div>
                    </div>
                    <div class="form-group col-sm-12 col-xs-12">
                        <div class="col-sm-3 col-xs-12 ">

                        </div>
                        <div class="col-sm-8 table-responsive table-responsive-ss">
                            <table class="table table-bordered" style="width: 100%">
                                <thead>
                                <tr style="text-align: center;background-color: lightcyan">
                                    <td colspan="4">Salary Increment</td>
                                    <td colspan="4">Performance Bonus</td>
                                </tr>
                                </thead>
                                <tbody>
                                <tr style="text-align: center">
                                    <td>{!! Form::radio('increment_comment','1', true) !!}</td>
                                    <td>Comment</td>
                                    <td>{!! Form::radio('increment_comment','0') !!}</td>
                                    <td>Not Comment</td>
                                    <td>{!! Form::radio('bonus_comment','1', true) !!}</td>
                                    <td>Comment</td>
                                    <td>{!! Form::radio('bonus_comment','0') !!}</td>
                                    <td>Not Comment</td>
                                </tr>
                                <tr>
                                    <td colspan="4">{!! Form::text('increment_date', date('m-d-Y',strtotime($recommend->increment_date)),array('placeholder' => __('administrator.date'),'class' => 'form-control date_picker')) !!}</td>
                                    <td colspan="4">{!! Form::text('bonus_date', date('m-d-Y',strtotime($recommend->bonus_date)),array('placeholder' => __('administrator.date'),'class' => 'form-control date_picker')) !!}</td>
                                </tr>
                                <tr>
                                    <td colspan="4">{!! Form::textarea('increment_description', null,array('placeholder' => __('administrator.description'),'class' => 'form-control')) !!}</td>
                                    <td colspan="4">{!! Form::textarea('bonus_description', null,array('placeholder' => __('administrator.description'),'class' => 'form-control')) !!}</td>
                                </tr>
                                </tbody>
                            </table>
                            <table class="table table-bordered" style="width: 100%">
                                <thead>
                                    <tr style="text-align: center;background-color: lightcyan">
                                        <td colspan="4">Promotion</td>
                                        <td colspan="4">New Opportunity</td>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr style="text-align: center">
                                        <td>{!! Form::radio('promote_comment','1', true) !!}</td>
                                        <td>Comment</td>
                                        <td>{!! Form::radio('promote_comment','0') !!}</td>
                                        <td>Not Comment</td>
                                        <td>{!! Form::radio('opportunity_comment','1', true) !!}</td>
                                        <td>Comment</td>
                                        <td>{!! Form::radio('opportunity_comment','0') !!}</td>
                                        <td>Not Comment</td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">{!! Form::textarea('promote_description', null,array('placeholder' => __('administrator.description'),'class' => 'form-control')) !!}</td>
                                        <td colspan="4">{!! Form::textarea('opportunity_description', null,array('placeholder' => __('administrator.description'),'class' => 'form-control')) !!}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </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




