@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-travel-request.index')}}">{{__('administrator.travel_request')}}</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.travel_request')}}</h3>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        {!! Form::open(array('route' => 'hr-travel-request.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.job')}}
                            <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','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.travel_by')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::text('travel_by', null, array('placeholder' => __('administrator.travel_by'),'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.purpose')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::text('purpose', null, array('placeholder' => __('administrator.purpose'),'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.from')}} ({{__('administrator.location')}})</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::text('from', null, array('placeholder' => __('administrator.from'),'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.to')}} ({{__('administrator.location')}})</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::text('to', null, array('placeholder' => __('administrator.to'),'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.from_date')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::text('from_date', null, array('placeholder' => __('administrator.from_date'),'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.to_date')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::text('to_date', null, array('placeholder' => __('administrator.to_date'),'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.amount')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::number('amount', null, array('placeholder' => __('administrator.amount'),'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', [''=>__('administrator.please_select'),'riel'=>__('administrator.riel').' ( ៛ )​​​','usd'=>__('administrator.usd').' ( $ )'],null, array('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="" 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="form-group col-sm-12 col-xs-12">
                        <div class="col-sm-3 col-xs-12 ">
                            <label class="" for="name">{{__('administrator.document_ref')}}</label>
                        </div>
                        <div class="col-sm-8">
                            {!! Form::file('file1', null, array('placeholder' => __('administrator.document_ref'),'class' => 'form-control','')) !!}
                            {!! Form::file('file12', null, array('placeholder' => __('administrator.document_ref'),'class' => 'form-control','')) !!}
                        </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>
        {!! Form::close() !!}
    </div>
@endsection


    

