@extends('layouts.adminLayout.admin_design') @section('content')
{{ Form::open(['url' => route('employees.store'), 'method'=>'POST', 'name' => 'createemployee', 'id' => 'createemployee', 'files'=>'true']) }} {{Form::hidden('formAction', 'POST',['id'=>'formAction'])}} @method('POST')

{{ $title }} {{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'clickbtncommon btn btn-primary btn-sm employeeaction', 'type' => 'submit']) }} {{ __('lbl.cancel') }}

{{ __('lbl.employees_details') }}

{{ Form::label(__('lbl.first_name')) }} {{ Form::text('first_name', '', ["class"=>"form-control mxlen_20","placeholder"=>__('lbl.first_name'),"id"=>"first_name","name"=>"first_name"]) }} @if ($errors->has('first_name')) @endif
{{ Form::label(__('lbl.last_name')) }} {{ Form::text('last_name', '', ["class"=>"form-control mxlen_20","placeholder"=>__('lbl.last_name'),"id"=>"last_name","name"=>"last_name"]) }} @if ($errors->has('last_name')) @endif
{{ Form::label(__('lbl.username')) }} {{ Form::text('username', '', ["class"=>"form-control mxlen_100","placeholder"=>__('lbl.username'),"id"=>"username","name"=>"username"]) }} @if ($errors->has('username')) @endif
{{ Form::label(__('lbl.email')) }} {{ Form::text('email', '', ["class"=>"form-control validEmail","placeholder"=>__('lbl.email'),"id"=>"email","name"=>"email"]) }} @if ($errors->has('email')) @endif
{{ Form::label(__('lbl.password')) }} {{ Form::password('password', ["class"=>"form-control mxlen_15","placeholder"=>__('lbl.password'),"id"=>"password","name"=>"password"]) }} @if ($errors->has('password')) @endif
{{ Form::label(__('lbl.phone_number')) }} {{ Form::text('phone_number', '', ["class"=>"form-control phoneUS mxlen_15","placeholder"=>__('lbl.phone_number'),"id"=>"phone_number","name"=>"phone_number"]) }}
{{ Form::label(__('lbl.start_date')) }} {{ Form::text('emp_start_date', '', ["autocomplete"=>"off","class"=>"form-control ","placeholder"=>__('lbl.start_date'),"id"=>"emp_start_date","name"=>"emp_start_date"]) }} @if ($errors->has('emp_start_date')) @endif
{{ Form::label(__('lbl.end_date')) }} {{ Form::text('emp_end_date', '', ["autocomplete"=>"off","class"=>"form-control ","placeholder"=>__('lbl.end_date'),"id"=>"emp_end_date","name"=>"emp_end_date"]) }} @if ($errors->has('emp_end_date')) @endif
{{ Form::label(__('lbl.milage_reimb')) }} {{ Form::text('milage_reimb', '0.00', ["class"=>"form-control numer_float_only mxlen_10","placeholder"=>__('lbl.milage_reimb')]) }} @if ($errors->has('milage_reimb')) @endif
{{ Form::label(__('lbl.pos_pin') ,'',['style'=>'width:100%; clear:both']) }}
{{ Form::text('pos_pin', '', ["class"=>"form-control numer_only mxlen_6","minlength"=>"4","mixlength"=>"6","placeholder"=>__('lbl.pos_pin'),"id"=>"pos_pin","name"=>"pos_pin"]) }}
@if ($errors->has('pos_pin')) @endif
{{ Form::label(__('lbl.department')) }} {{ Form::select('department_id', [''=>'Select Department']+$department, old('department_id'),["class"=>"form-control","id"=>"department_id","name"=>"department_id"]) }} @if ($errors->has('department_id')) @endif
{{ Form::label('exempt') }}
{{ Form::checkbox('exempt', '1', ["class"=>"form-control ","id"=>"exempt","name"=>"exempt"]) }}
{{ Form::hidden('is_admin',"1",['id'=>"is_admin"]) }}
{{ Form::label(__('lbl.access_establishments')) }} {{ Form::select('access_establishment[]', $establishments, $currentestablishmentId, ["multiple"=>"multiple", "class"=>"form-control select2", "data-tags"=>"true", "data-placeholder"=>'Select estalblishment', "id"=>"establishment_access"]) }}
{{ Form::label('Image') }} {{ Form::file('image', null) }}
@if ($errors->has('image')) @endif
{{ Form::label('Sort') }} {{ Form::text('sort', '', ["class"=>"form-control numer_only","placeholder"=>__('lbl.sort'),"id"=>"sort","name"=>"sort"]) }}
{{ Form::label('Notify when inventory is updated?') }}
{{ Form::checkbox('inventory_email_notification', '0') }}

{{ __('lbl.pos_prms') }}

{{ Form::label(__('lbl.role')) }} {{ Form::select('role', $role, '',["class"=>"form-control","id"=>"role","name"=>"role[]"]) }} @if ($errors->has('role')) @endif
{{ Form::label('wage') }} {{ Form::text('wage', '0.00', ["class"=>"form-control numer_float_only mxlen_8","placeholder"=>"Wage","id"=>"wage","name"=>"wage[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["name"=>"remove_item","style"=>"width:15%","class"=>"clickbtncommon btn-sm btn btn-primary remove_dataitem btn-sm ","id"=>""]) }}
{{ Form::button(' '. __('lbl.add_new'), ["name"=>"","id"=>"add_item","class"=>"clickbtncommon employeeaction btn-sm btn btn-primary"]) }}

{{ __('lbl.management_console_permissions') }}

{{ Form::label(__('lbl.webrole')) }} {{ Form::select('webrole', $webrole, '',["class"=>"form-control","id"=>"webrole","name"=>"webrole[]"]) }} @if ($errors->has('webrole')) @endif
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["name"=>"remove_item","style"=>"width:15%","class"=>"clickbtncommon btn-sm btn btn-primary remove_dataitem_web btn-sm "]) }}
{{ Form::button(' '. __('lbl.add_new'), ["name"=>"","id"=>"add_item_web","class"=>"clickbtncommon btn-sm btn btn-primary"]) }}
{{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'clickbtncommon btn btn-primary btn-sm', 'type' => 'submit']) }} {{ __('lbl.cancel') }}
{{ Form::close() }} {{ Form::hidden('employeepin', route('employeepin'),['id'=>'employeepin']) }}
@endsection @section('pagescript') {!! Helper::pagejs([ 'js/lib/select2/dist/js/select2.full.min.js', 'js/lib/moment/min/moment.min.js', 'js/lib/bootstrap-daterangepicker/daterangepicker.js', 'js/lib/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js', 'js/lib/plugins/timepicker/bootstrap-timepicker.min.js', 'js/backend/employees/add_edit.js' ]) !!} @stop