Commit d4b31384 authored by David Mburu's avatar David Mburu

Storing employee info

parent 8c98d41a
...@@ -120,6 +120,10 @@ class BranchController extends Controller ...@@ -120,6 +120,10 @@ class BranchController extends Controller
*/ */
public function destroy($id) public function destroy($id)
{ {
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
>>>>>>> Storing employee info
if(DB::table('branches')->where('id',$id)->exists()){ if(DB::table('branches')->where('id',$id)->exists()){
DB::table('branches')->where('id', $id)->delete(); DB::table('branches')->where('id', $id)->delete();
return redirect('/branches')->with('success', 'Business Unit has been deleted Successfully'); return redirect('/branches')->with('success', 'Business Unit has been deleted Successfully');
......
...@@ -12,9 +12,13 @@ use Maatwebsite\Excel\HeadingRowImport; ...@@ -12,9 +12,13 @@ use Maatwebsite\Excel\HeadingRowImport;
use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Input;
use App\EmployeeTest; use App\EmployeeTest;
use App\Employees; use App\Employees;
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
use App\Dependants; use App\Dependants;
use App\Add; use App\Add;
use Session; use Session;
=======
use Auth;
>>>>>>> Storing employee info
class EmployeeController extends Controller class EmployeeController extends Controller
...@@ -31,7 +35,13 @@ class EmployeeController extends Controller ...@@ -31,7 +35,13 @@ class EmployeeController extends Controller
} }
public function index() public function index()
{ {
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
return View('Employees.index'); return View('Employees.index');
=======
$employees = DB::table('employees')->get();
return View('Employees.index',compact('employees'));
>>>>>>> Storing employee info
} }
/** /**
...@@ -44,6 +54,7 @@ class EmployeeController extends Controller ...@@ -44,6 +54,7 @@ class EmployeeController extends Controller
$employee=DB::table('employees')->get(); $employee=DB::table('employees')->get();
$businessunits = DB::table('branches')->get(); $businessunits = DB::table('branches')->get();
$departments = DB::table('departments')->get(); $departments = DB::table('departments')->get();
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
$employment_status=DB::table('employment_status')->get(); $employment_status=DB::table('employment_status')->get();
$jobtitles=DB::table('job_titles')->get(); $jobtitles=DB::table('job_titles')->get();
$managers=DB::table('managers')->get(); $managers=DB::table('managers')->get();
...@@ -54,6 +65,18 @@ class EmployeeController extends Controller ...@@ -54,6 +65,18 @@ class EmployeeController extends Controller
/** /**
* Store a newly created resource in storage. * Store a newly created resource in storage.
=======
$jobtitles=DB::table('job_titles')->get();
$managers=DB::table('managers')->get();
$roles=DB::table('roles')->get();
$employment_status=DB::table('employment_status')->get();
return view('Employees.registration', compact(['employee','departments','businessunits','jobtitles','managers','roles','employment_status']));
}
/**
* Store a newly modified resource in storage.
>>>>>>> Storing employee info
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
...@@ -67,6 +90,7 @@ class EmployeeController extends Controller ...@@ -67,6 +90,7 @@ class EmployeeController extends Controller
'gender'=>'required', 'gender'=>'required',
'department'=>'required', 'department'=>'required',
'employee_no'=>'required', 'employee_no'=>'required',
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
'personal_phoneno'=>'required', 'personal_phoneno'=>'required',
'krapin'=>'required', 'krapin'=>'required',
'nssf_no'=>'required', 'nssf_no'=>'required',
...@@ -80,27 +104,55 @@ class EmployeeController extends Controller ...@@ -80,27 +104,55 @@ class EmployeeController extends Controller
]); ]);
// Fetching the department and business unit codes // Fetching the department and business unit codes
$branch_code=DB::table('branches')->select('business_unit_code')->where('id',Input::get('businessunit'))->pluck('business_unit_code');#pulls the businessunitcode as a collection $branch_code=DB::table('branches')->select('business_unit_code')->where('id',Input::get('businessunit'))->pluck('business_unit_code');#pulls the businessunitcode as a collection
=======
'personal_phone_no'=>'required',
'kra_pin'=>'required',
'nssf_no'=>'required',
'nhif_no'=>'required',
'reporting_manager'=>'required',
'role'=>'required',
'employment_status'=>'required',
'date_of_joining'=>'required',
'years_of_experience'=>'required',
'email_address'=>'required|unique:employees'
]);
// Fetching the department and business unit codes
$branch_code=DB::table('branches')->select('business_unit_code')->where('id',Input::get('business_unit'))->pluck('business_unit_code');#pulls the businessunitcode as a collection
>>>>>>> Storing employee info
$branchcode=$branch_code[0];#references the index of the pulled collection $branchcode=$branch_code[0];#references the index of the pulled collection
$department_code=DB::table('departments')->select('department_code')->where('id',Input::get('department'))->pluck('department_code');#pulls the departmentcode as a collection $department_code=DB::table('departments')->select('department_code')->where('id',Input::get('department'))->pluck('department_code');#pulls the departmentcode as a collection
$departmentcode=$department_code[0];#references the index of the pulled collection $departmentcode=$department_code[0];#references the index of the pulled collection
$employeeNo=Input::get('employee_no'); $employeeNo=Input::get('employee_no');
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
// Inserting employeeid based on branch,department or a noneapplicable select option of employeecode // Inserting employeeid based on branch,department or a noneapplicable select option of employeecode
if ($request->employeecode == 1){ if ($request->employeecode == 1){
$employeeid = $branchcode.$employeeNo; $employeeid = $branchcode.$employeeNo;
}elseif($request->employeecode == 2){ }elseif($request->employeecode == 2){
=======
// Inserting employeeid based on branch,department or a noneapplicable select option of employee_code
if ($request->employee_code == 1){
$employeeid = $branchcode.$employeeNo;
}elseif($request->employee_code == 2){
>>>>>>> Storing employee info
$employeeid = $departmentcode.$employeeNo; $employeeid = $departmentcode.$employeeNo;
}else{ }else{
$employeeid=$employeeNo; $employeeid=$employeeNo;
} }
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
DB::table('employees') DB::table('employees')
=======
$employee_id=DB::table('employees')
>>>>>>> Storing employee info
->insertGetId([ ->insertGetId([
'prefix' => $request['prefix'], 'prefix' => $request['prefix'],
'first_name' => $request['first_name'], 'first_name' => $request['first_name'],
'last_name' => $request['last_name'], 'last_name' => $request['last_name'],
'middle_name' => $request['middle_name'], 'middle_name' => $request['middle_name'],
'gender' => $request['gender'], 'gender' => $request['gender'],
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
'business_unit' => $request['businessunit'], 'business_unit' => $request['businessunit'],
'department' => $request['department'], 'department' => $request['department'],
'employee_id' => $employeeid, 'employee_id' => $employeeid,
...@@ -109,11 +161,22 @@ class EmployeeController extends Controller ...@@ -109,11 +161,22 @@ class EmployeeController extends Controller
'work_phone' => $request['work_phoneno'], 'work_phone' => $request['work_phoneno'],
'extension' => $request['extension'], 'extension' => $request['extension'],
'kra_pin' => $request['krapin'], 'kra_pin' => $request['krapin'],
=======
'business_unit' => $request['business_unit'],
'department' => $request['department'],
'employee_id' => $employeeid,
'email_address' => $request['email_address'],
'personal_phone' => $request['personal_phone_no'],
'work_phone' => $request['work_phone_no'],
'extension' => $request['extension'],
'kra_pin' => $request['kra_pin'],
>>>>>>> Storing employee info
'nssf_number' => $request['nssf_no'], 'nssf_number' => $request['nssf_no'],
'nhif_number' => $request['nhif_no'], 'nhif_number' => $request['nhif_no'],
'ifmis_number' => $request['ifmis_no'], 'ifmis_number' => $request['ifmis_no'],
'duration' => $request['duration'], 'duration' => $request['duration'],
'role' => $request['role'], 'role' => $request['role'],
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
'reporting_manager' => $request['reportingManager'], 'reporting_manager' => $request['reportingManager'],
'job_title' => $request['jobtitle'], 'job_title' => $request['jobtitle'],
'employment_status' => $request['employmentstatus'], 'employment_status' => $request['employmentstatus'],
...@@ -128,6 +191,24 @@ class EmployeeController extends Controller ...@@ -128,6 +191,24 @@ class EmployeeController extends Controller
} }
=======
'reporting_manager' => $request['reporting_manager'],
'job_title' => $request['job_title'],
'employment_status' => $request['employment_status'],
'years_of_experience' => $request['years_of_experience'],
'date_of_joining' => $request['date_of_joining'],
'date_of_leaving' => $request['date_of_leaving'],
'disability_type'=>$request['disability_type'],
'disability_description'=>$request['disability_description'],
'exemption_certificate'=>$request['exemption_certificate'],
'created_by'=>Auth::user()->id,
'created_at' => DB::raw('NOW()'),
]);
return redirect()->route('employees.edit',$employee_id)->with('messages',['success','Employee successfully saved']);
}
>>>>>>> Storing employee info
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
...@@ -135,6 +216,7 @@ class EmployeeController extends Controller ...@@ -135,6 +216,7 @@ class EmployeeController extends Controller
* @param int $id * @param int $id
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
public function edit($id) public function edit($id)
{ {
$employees = DB::table('employees')->get(); $employees = DB::table('employees')->get();
...@@ -160,6 +242,29 @@ class EmployeeController extends Controller ...@@ -160,6 +242,29 @@ class EmployeeController extends Controller
$selectedDuration = DB::table('employees')->select('duration')->where('id',$id)->get(); $selectedDuration = DB::table('employees')->select('duration')->where('id',$id)->get();
return view('Employees.employeeEdit',compact('employees','fullname','employee','businessunits','departments','employment_status','jobtitles','manages','roles','selectedprefix','selectedgender','selectedbusinessunit','selectedDepartment','selectedgender','selectedManager','selectedRole','selectedJobtitle','selectedStatus','selectedDuration')); return view('Employees.employeeEdit',compact('employees','fullname','employee','businessunits','departments','employment_status','jobtitles','manages','roles','selectedprefix','selectedgender','selectedbusinessunit','selectedDepartment','selectedgender','selectedManager','selectedRole','selectedJobtitle','selectedStatus','selectedDuration'));
=======
public function edit($employee_id)
{
$employee = DB::table('employees')->where('id', $employee_id)->first();
$businessunits = DB::table('employees_personal')->get();
$departments = DB::table('departments')->get();
$jobtitles=DB::table('job_titles')->get();
$managers=DB::table('managers')->get();
$roles=DB::table('roles')->get();
$employment_status = DB::table('employment_status')->get();
$selected_prefix = DB::table('employees')->select('prefix')->where('id',$employee_id)->first();
$selected_businessunit = DB::table('employees')->select('business_unit')->where('id',$employee_id)->first();
$selected_department = DB::table('employees')->select('department')->where('id',$employee_id)->first();
$selected_gender = DB::table('employees')->select('gender')->where('id',$employee_id)->first();
$selected_manager = DB::table('employees')->select('reporting_manager')->where('id',$employee_id)->first();
$selected_role = DB::table('employees')->select('role')->where('id',$employee_id)->first();
$selected_jobtitle = DB::table('employees')->select('job_title')->where('id',$employee_id)->first();
$selected_status = DB::table('employees')->select('employment_status')->where('id',$employee_id)->first();
$selected_duration = DB::table('employees')->select('duration')->where('id',$employee_id)->first();
return view('Employees.edit_employee_info',compact('employees','employment_status','employee','businessunits','departments','jobtitles','manages','roles','selected_prefix','selected_gender','selected_businessunit','selected_department','selected_gender','selected_manager','selected_role','selected_jobtitle','selected_status','selected_duration','managers'));
>>>>>>> Storing employee info
} }
/** /**
...@@ -169,9 +274,65 @@ class EmployeeController extends Controller ...@@ -169,9 +274,65 @@ class EmployeeController extends Controller
* @param int $id * @param int $id
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
// //
=======
public function update(Request $request,$employee_id)
{
$request->validate([
'first_name'=>'required',
'last_name'=>'required',
'gender'=>'required',
'department'=>'required',
'employee_no'=>'required',
'personal_phone_no'=>'required',
'kra_pin'=>'required',
'nssf_no'=>'required',
'nhif_no'=>'required',
'reporting_manager'=>'required',
'role'=>'required',
'employment_status'=>'required',
'date_of_joining'=>'required',
'years_of_experience'=>'required',
'email_address'=>'required|unique:employees'
]);
DB::table('employees')
->insertGetId([
'prefix' => $request['prefix'],
'first_name' => $request['first_name'],
'last_name' => $request['last_name'],
'middle_name' => $request['middle_name'],
'gender' => $request['gender'],
'business_unit' => $request['business_unit'],
'department' => $request['department'],
'employee_id' => $employee_id,
'email_address' => $request['email_address'],
'personal_phone' => $request['personal_phone_no'],
'work_phone' => $request['work_phone_no'],
'extension' => $request['extension'],
'kra_pin' => $request['kra_pin'],
'nssf_number' => $request['nssf_no'],
'nhif_number' => $request['nhif_no'],
'ifmis_number' => $request['ifmis_no'],
'duration' => $request['duration'],
'role' => $request['role'],
'reporting_manager' => $request['reporting_manager'],
'job_title' => $request['job_title'],
'nationality' => $request['employment_status'],
'years_of_experience' => $request['years_of_experience'],
'date_of_joining' => $request['date_of_joining'],
'date_of_leaving' => $request['date_of_leaving'],
'disablity_type'=>$request['disability_type'],
'disability_description'=>$request['disability_description'],
'exemption_certificate'=>$request['exemption_certificate'],
'modified_by'=>Auth::user()->id,
'updated_at' => DB::raw('NOW()'),
]);
return view('Employees.edit_employee_info')->with('messages',['success','Employee info saved successfully']);
>>>>>>> Storing employee info
} }
/** /**
...@@ -203,7 +364,11 @@ class EmployeeController extends Controller ...@@ -203,7 +364,11 @@ class EmployeeController extends Controller
return redirect('/employees')->with('success','File has been successfully imported'); return redirect('/employees')->with('success','File has been successfully imported');
} }
else { else {
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
return redirect('/employees')->with('error','File is a '.$extension.' file.!! Please upload a valid xls/csv file..!!'); return redirect('/employees')->with('error','File is a '.$extension.' file.!! Please upload a valid xls/csv file..!!');
=======
return redirect('/employees')->with('danger','File is a '.$extension.' file.!! Please upload a valid xls/csv file..!!');
>>>>>>> Storing employee info
} }
} }
...@@ -223,6 +388,7 @@ class EmployeeController extends Controller ...@@ -223,6 +388,7 @@ class EmployeeController extends Controller
} }
} }
catch(\Exception $e){ catch(\Exception $e){
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
return redirect('/employees')->with('error','Something wrong happened'); return redirect('/employees')->with('error','Something wrong happened');
} }
...@@ -263,4 +429,271 @@ class EmployeeController extends Controller ...@@ -263,4 +429,271 @@ class EmployeeController extends Controller
return redirect('/status')->with('Success','Employment Status added successfully'); return redirect('/status')->with('Success','Employment Status added successfully');
} }
=======
return redirect('/employees')>with('messages',['danger','Something wrong happened']);
}
}
/**The following functions are for the personal,contact and salary pages
The first function for each page deals with the creation of the specified information and runs a check on the database
on whether information of the selected employee id exists
The second function saves the information
The third function deals with editing of information and also checks if there exists information on the specified
employee based on the employee id
The fourth function updates information into the database
**/
public function personal_info($employee_id)
{
if(DB::table('employees_personal')->where('employee_id',$employee_id)->exists())
{
return redirect()->route('edit_personal',$employee_id);
}else{
$employee = DB::table('employees')->where('id', $employee_id)->first();
return view('Employees.personal_info',compact(['employee']));
}
}
public function store_personal_info(Request $request,$employee_id)
{
$request->validate([
'marital_status'=>'required',
'blood_group'=>'required',
'nationality'=>'required',
'identity_document'=>'required',
]);
if($request->identity_document="national"){
$identity_no=$request->national_id;
}elseif($request->idenity_document="passport"){
$identity_no=$request->passport_no;
}elseif($request->identity_document="military"){
$identity_no=$request->military_id;
}
DB::table('employees_personal')
->insertGetId([
'employee_id'=>$employee_id,
'marital_status' => $request['marital_status'],
'nationality' => $request['nationality'],
'ethnicity' => $request['ethnicity'],
'identity_document' => $request['identity_document'],
'identity_no' => $identity_no,
'language' => $request['language'],
'blood_group' => $request['blood_group'],
'date_of_birth'=>$request['date_of_birth'],
'created_by'=>Auth::user()->id,
'created_at' => DB::raw('NOW()'),
]);
return redirect()->route('edit_personal',$employee_id)->with('messages',['success','Employee Personal Info saved successfully']);
}
public function edit_personal_info($employee_id)
{
if(DB::table('employees_personal')->where('employee_id',$employee_id)->exists())
{
$employee = DB::table('employees_personal')->where('employee_id',$employee_id)->first();
$selected_marital_status = DB::table('employees_personal')->select('marital_status')->where('employee_id',$employee_id)->first();
$selected_nationality = DB::table('employees_personal')->select('nationality')->where('employee_id',$employee_id)->first();
$selected_ethnicity = DB::table('employees_personal')->select('ethnicity')->where('employee_id',$employee_id)->first();
$selected_language = DB::table('employees_personal')->select('language')->where('employee_id',$employee_id)->first();
$selected_blood_group = DB::table('employees_personal')->select('blood_group')->where('employee_id',$employee_id)->first();
$selected_identity_document = DB::table('employees_personal')->select('identity_document')->where('employee_id',$employee_id)->first();
return view('Employees.edit_personal_info',compact(['edit_personal_id','employee','selected_marital_status','selected_nationality','selected_ethnicity','selected_language','selected_blood_group','selected_idenity_document']));
}else{
return redirect()->route('employees.edit',$employee_id)->with('messages',['danger','No personal information to edit on selected employee']);
}
}
public function update_personal_info(Request $request,$employee_id)
{
$employee = DB::table('employees_personal')->where('employee_id',$employee_id)->first();
$request->validate([
'marital_status'=>'required',
'blood_group'=>'required',
'nationality'=>'required',
'identity_document'=>'required',
]);
if($request->identity_document="national"){
$identity_no=$request->national_id;
}elseif($request->idenity_document="passport"){
$identity_no=$request->passport_no;
}elseif($request->identity_document="military"){
$identity_no=$request->military_id;
}
DB::table('employees_personal')
->insertGetId([
'employee_id'=>$employee_id,
'marital_status' => $request['marital_status'],
'nationality' => $request['nationality'],
'ethnicity' => $request['ethnicity'],
'identity_document' => $request['identity_document'],
'identity_no' => $identity_no,
'language' => $request['language'],
'blood_group' => $request['blood_group'],
'date_of_birth'=>$request['date_of_birth'],
'modified_by'=>Auth::user()->id,
'updated_at' => DB::raw('NOW()'),
]);
return redirect()->route('edit_personal',$employee_id)->with('messages',['success','Employee personal info updated successfully']);
}
public function salary($employee_id)
{
if(DB::table('employees_salary')->where('employee_id',$employee_id)->exists())
{
return redirect()->route('edit_salary',$employee_id);
}else{
$employee = DB::table('employees')->where('id', $employee_id)->first();
return view('Employees.salary',compact(['employee']));
}
}
public function store_salary(Request $request,$employee_id)
{
$request->validate([
'pay_frequency'=>'required',
'salary_amount'=>'required',
'bank_branch_name'=>'required',
'bank_account_no'=>'required',
]);
DB::table('employees_salary')
->insertGetId([
'employee_id'=>$employee_id,
'pay_frequency'=> $request['pay_frequency'],
'pay_unit' => $request['pay_unit'],
'salary_amount' => $request['salary_amount'],
'bank_branch_name' => $request['bank_branch_name'],
'bank_account_no' => $request['bank_account_no'],
'sacco_name' => $request['sacco_name'],
'sacco_account_no' => $request['sacco_account_no'],
'created_by'=>Auth::user()->id,
'created_at' => DB::raw('NOW()'),
]);
return redirect()->route('edit_salary',$employee_id)>with('messages',['success','Employee Salary information saved succefully']);
}
public function edit_salary($employee_id)
{
if(DB::table('employees_salary')->where('employee_id',$employee_id)->exists())
{
$employee=DB::table('employees_salary')->where('employee_id',$employee_id)->first();
$selected_pay_frequency=DB::table('employees_salary')->select('pay_frequency')->where('employee_id',$employee_id)->first();
$selected_pay_unit=DB::table('employees_salary')->select('pay_unit')->where('employee_id',$employee_id)->first();
return view('Employees.edit_salary',compact(['employee','selected_pay_frequency','selected_pay_unit']));
}else{
return redirect()->route('employees.edit',$employee_id)->with('messages',['danger','No salary information to edit on selected employee']);
}
}
public function update_salary(Request $request,$employee_id)
{
$request->validate([
'pay_frequency'=>'required',
'salary_amount'=>'required',
'bank_branch_name'=>'required',
'bank_account_no'=>'required',
]);
DB::table('employees_salary')
->insertGetId([
'employee_id'=>$employee_id,
'pay_frequency' => $request['pay_frequency'],
'pay_unit' => $request['pay_unit'],
'salary_amount' => $request['salary_amount'],
'bank_account_name' => $request['bank_account_name'],
'bank_account_no' => $request['bank_account_no'],
'sacco_name' => $request['sacco_name'],
'sacco_account_no' => $request['sacco_account_no'],
'modified_by'=>Auth::user()->id,
'updated_at' => DB::raw('NOW()'),
]);
return redirect()->route('edit_salary',$employee_id)>with('messages',['sucess','Employee Salary Information updated successfully']);
}
public function contact($employee_id)
{
if(DB::table('employees_contacts')->where('employee_id',$employee_id)->exists())
{
return redirect()->route('edit_contact',$employee_id);
}else{
$employee = DB::table('employees')->where('id', $employee_id)->first();
return view('Employees.contact',compact(['employee']));
}
}
public function store_contact(Request $request,$employee_id)
{
$request->validate([
'country'=>'required',
'county'=>'required',
'street_address'=>'required',
]);
DB::table('employees_contacts')
->insertGetId([
'employee_id'=>$employee_id,
'country' => $request['country'],
'county' => $request['county'],
'city' => $request['salary_amount'],
'street_address' => $request['street_address'],
'postal_code' => $request['postal_code'],
'current_country' => $request['current_country'],
'current_county' => $request['current_county'],
'current_constituency' => $request['current_constituency'],
'current_street_address' => $request['current_street_address'],
'created_by'=>Auth::user()->id,
'created_at' => DB::raw('NOW()'),
]);
return redirect()->route('edit_contact',$employee_id)>with('messages',['success','Employee contact information saved successfully']);
}
public function edit_contact($employee_id)
{
if(DB::table('employees_salary')->where('employee_id',$employee_id)->exists())
{
$employee=DB::table('employees_contacts')->where('employee_id',$employee_id)->first();
$selected_current_country=DB::table('employees_contacts')->select('current_country')->where('employee_id',$employee_id)->first();
$selected_current_county=DB::table('employees_contacts')->select('current_county')->where('employee_id',$employee_id)->first();
$selected_current_constituency=DB::table('employees_contacts')->select('current_constituency')->where('employee_id',$employee_id)->first();
return view('Employees.edit_contact',compact(['employee','selected_current_country','curret_county','current_constituency']));
}else{
return redirect()->route('employees.edit',$employee_id)->with('messages',['danger','No Contact information to edit on selected employee']);
}
}
public function update_contact(Request $request,$employee_id)
{
$request->validate([
'country'=>'required',
'county'=>'required',
'street_address'=>'required',
]);
DB::table('employees_contacts')
->insertGetId([
'employee_id'=>$employee_id,
'country' => $request['country'],
'county' => $request['county'],
'city' => $request['salary_amount'],
'street_address' => $request['street_address'],
'postal_code' => $request['postal_code'],
'current_country' => $request['current_country'],
'current_county' => $request['current_county'],
'current_constituency' => $request['current_constituency'],
'current_street_address' => $request['current_street_address'],
'modified_by'=>Auth::user()->id,
'updated_at' => DB::raw('NOW()'),
]);
return view('Employees.edit_contact')>with('messages',['success','Employee contact information updated successfully']);
}
>>>>>>> Storing employee info
} }
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use Illuminate\Http\Request; use Illuminate\Http\Request;
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
use DB;
>>>>>>> Storing employee info
class HomeController extends Controller class HomeController extends Controller
{ {
...@@ -23,6 +27,7 @@ class HomeController extends Controller ...@@ -23,6 +27,7 @@ class HomeController extends Controller
*/ */
public function index() public function index()
{ {
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
return view('home'); return view('home');
} }
...@@ -34,4 +39,19 @@ class HomeController extends Controller ...@@ -34,4 +39,19 @@ class HomeController extends Controller
{ {
return view('Payslip.index'); return view('Payslip.index');
} }
=======
$employees=DB::table('employees')->get();
return view('home',compact(['employees']));
}
public function admin()
{
$employees=DB::table('employees')->get();
return view('Employees.index',compact('employees'));
}
public function manager()
{
return view('Payslip.index');
}
>>>>>>> Storing employee info
} }
...@@ -18,6 +18,12 @@ class CreatePayFrequenciesTable extends Migration ...@@ -18,6 +18,12 @@ class CreatePayFrequenciesTable extends Migration
$table->string('pay_frequency',30); $table->string('pay_frequency',30);
$table->string('payfrequency_code',20); $table->string('payfrequency_code',20);
$table->text('description',250)->nullable(); $table->text('description',250)->nullable();
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
>>>>>>> Storing employee info
$table->timestamps(); $table->timestamps();
}); });
} }
......
...@@ -20,6 +20,12 @@ class CreateEmergencyContactsTable extends Migration ...@@ -20,6 +20,12 @@ class CreateEmergencyContactsTable extends Migration
$table->integer('phone_no'); $table->integer('phone_no');
$table->string('email')->unique(); $table->string('email')->unique();
$table->string('relation'); $table->string('relation');
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
>>>>>>> Storing employee info
$table->timestamps(); $table->timestamps();
}); });
} }
......
...@@ -19,6 +19,12 @@ class CreateDependantsTable extends Migration ...@@ -19,6 +19,12 @@ class CreateDependantsTable extends Migration
$table->string('name',50); $table->string('name',50);
$table->date('dateofBirth'); $table->date('dateofBirth');
$table->string('relation',15); $table->string('relation',15);
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
>>>>>>> Storing employee info
$table->timestamps(); $table->timestamps();
}); });
} }
......
...@@ -21,6 +21,12 @@ class CreateJobTitlesTable extends Migration ...@@ -21,6 +21,12 @@ class CreateJobTitlesTable extends Migration
$table->string('job_paygrade_code',10); $table->string('job_paygrade_code',10);
$table->string('description')->nullable(); $table->string('description')->nullable();
$table->integer('minimum_experience'); $table->integer('minimum_experience');
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
>>>>>>> Storing employee info
$table->timestamps(); $table->timestamps();
}); });
} }
......
...@@ -22,6 +22,12 @@ class CreateCertificatesTable extends Migration ...@@ -22,6 +22,12 @@ class CreateCertificatesTable extends Migration
$table->date('dateofIssuance'); $table->date('dateofIssuance');
$table->date('dateofExpiration')->nullable(); $table->date('dateofExpiration')->nullable();
$table->string('certificateDocument'); $table->string('certificateDocument');
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
>>>>>>> Storing employee info
$table->timestamps(); $table->timestamps();
}); });
} }
......
...@@ -19,6 +19,12 @@ class Managers extends Migration ...@@ -19,6 +19,12 @@ class Managers extends Migration
$table->string('department'); $table->string('department');
$table->string('job_title_code',10); $table->string('job_title_code',10);
$table->string('name'); $table->string('name');
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
>>>>>>> Storing employee info
$table->timestamps(); $table->timestamps();
}); });
} }
......
...@@ -17,6 +17,12 @@ class EmploymentStatus extends Migration ...@@ -17,6 +17,12 @@ class EmploymentStatus extends Migration
$table->increments('id'); $table->increments('id');
$table->string('employment_status_code',10); $table->string('employment_status_code',10);
$table->string('employment_status'); $table->string('employment_status');
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
>>>>>>> Storing employee info
$table->timestamps(); $table->timestamps();
}); });
} }
......
...@@ -19,6 +19,12 @@ class Roles extends Migration ...@@ -19,6 +19,12 @@ class Roles extends Migration
$table->string('employment_status_code',10); $table->string('employment_status_code',10);
$table->string('role'); $table->string('role');
$table->string('description')->nullable(); $table->string('description')->nullable();
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
>>>>>>> Storing employee info
$table->timestamps(); $table->timestamps();
}); });
} }
......
...@@ -30,9 +30,15 @@ class CreateEmployeesTable extends Migration ...@@ -30,9 +30,15 @@ class CreateEmployeesTable extends Migration
$table->date('date_of_joining'); $table->date('date_of_joining');
$table->date('date_of_leaving')->nullable(); $table->date('date_of_leaving')->nullable();
$table->integer('years_of_experience'); $table->integer('years_of_experience');
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
$table->integer('work_phone', 30)->nullable(); $table->integer('work_phone', 30)->nullable();
$table->integer('personal_phone', 30); $table->integer('personal_phone', 30);
$table->integer('extension', 30)->nullable(); $table->integer('extension', 30)->nullable();
=======
$table->integer('work_phone')->nullable();
$table->integer('personal_phone');
$table->integer('extension')->nullable();
>>>>>>> Storing employee info
$table->string('kra_pin', 30); $table->string('kra_pin', 30);
$table->string('nssf_number', 30); $table->string('nssf_number', 30);
$table->string('nhif_number', 30); $table->string('nhif_number', 30);
...@@ -42,6 +48,12 @@ class CreateEmployeesTable extends Migration ...@@ -42,6 +48,12 @@ class CreateEmployeesTable extends Migration
$table->string('profile_image')->nullable(); $table->string('profile_image')->nullable();
$table->string('password')->nullable(); $table->string('password')->nullable();
$table->boolean('isAdmin')->nullable(); $table->boolean('isAdmin')->nullable();
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
$table->string('disability_type')->nullable();
$table->string('disability_description')->nullable();
$table->string('exemption_certificate')->nullable();
>>>>>>> Storing employee info
$table->integer('created_by')->nullable(); $table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable(); $table->integer('modified_by')->nullable();
$table->integer('is_active')->default(1); $table->integer('is_active')->default(1);
......
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class EmployeePersonalInfoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('employees_personal', function (Blueprint $table) {
$table->increments('id');
$table->integer('employee_id');
$table->string('marital_status');
$table->string('nationality');
$table->string('ethnicity')->nullable();
$table->string('identity_document');
$table->integer('identity_no')->nullable();
$table->string('language');
$table->string('blood_group');
$table->date('date_of_birth');
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('employees_personal');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class EmployeeSalaryInfoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('employees_salary', function (Blueprint $table) {
$table->increments('id');
$table->integer('employee_id');
$table->string('pay_frequency');
$table->string('pay_unit')->nullable();
$table->integer('salary_amount');
$table->string('bank_branch_name');
$table->string('bank_account_no');
$table->string('sacco_name')->nullable();
$table->string('sacco_account_no')->nullable();
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('employee_salary');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class EmployeeContactInfoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('employees_contacts', function (Blueprint $table) {
$table->increments('id');
$table->integer('employee_id');
$table->string('country', 255);
$table->string('county', 50)->nullable();
$table->string('city')->nullable();
$table->string('street_address')->nullable();
$table->string('postal_code')->nullable();
$table->string('current_country');
$table->string('current_county')->nullable();
$table->string('current_street_address')->nullable();
$table->string('current_constituency')->nullable();
$table->integer('created_by')->nullable();
$table->integer('modified_by')->nullable();
$table->tinyInteger('is_active')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('employee_contacts');
}
}
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
......
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
@section('title', 'Employees') @section('title', 'Employees')
=======
@extends('Layout.employees_master')
@section('title', 'Employees')
>>>>>>> Storing employee info
@section('header-include') @section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/> <link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/> <link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style> <style>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
form { form {
=======
form {
>>>>>>> Storing employee info
border-radius: 5px; border-radius: 5px;
width:100%; width:100%;
background-color: #FFFFFF; background-color: #FFFFFF;
...@@ -40,6 +51,21 @@ ...@@ -40,6 +51,21 @@
display:inline-inline; display:inline-inline;
margin-right: 10px; margin-right: 10px;
} }
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
>>>>>>> Storing employee info
.panel-row { .panel-row {
padding: 0 18px; padding: 0 18px;
background-color: white; background-color: white;
...@@ -47,6 +73,7 @@ ...@@ -47,6 +73,7 @@
overflow: hidden; overflow: hidden;
transition: max-height 0.2s ease-out; transition: max-height 0.2s ease-out;
} }
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
</style> </style>
@endsection @endsection
...@@ -74,3 +101,122 @@ ...@@ -74,3 +101,122 @@
=======
ul {
list-style-type: none;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetic"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{route('employees.index')}}">Employees</a></li>
<li><a href="{{route('employees.edit',$employee->id)}}">Edit Employees</a></li>
<li class="active">Contact</li>
</ul>
@include('Layout.errors')
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item " ><a href="{{ route('employees.edit',$employee->id) }}">Employee Info</a></li>
<li class="list-group-item "><a href="{{route('personal',$employee->id)}}">Personal</a></li>
<li class="list-group-item "><a href="{{route('salary',$employee->id)}}">Salary</a></li>
<li class="list-group-item active"><a href="{{route('contact',$employee->id)}}">Contact</a></li>
</ul>
</div>
<div class=col-md-6 style="width:86.5%;">
<form method="post" action="{{ route('store_contact',$employee->id) }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<legend style="padding:5px 5px 5px 10px">Postal Address</legend>
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Country <span>*</span></p>
<input name="country" type="text" class="form-control" id="country" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required>
</div>
<div class=col-md-4 style="width:20%">
<p>State/County <span>*</span></p>
<input name="county" type="text" class="form-control" id="state" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required>
</div>
<div class=col-md-4 style="width:20%">
<p>City <span>*</span></p>
<input name="city" type="text" class="form-control" id="city" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required>
</div>
<div class=col-md-4 style="width:20%">
<p>Street Address <span>*</span></p>
<input name="street_address" type="text" class="form-control" id="streetaddress" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required>
</div>
<div class=col-md-4 style="width:20%">
<p>Postal Code</p>
<input name="postal_code" type="text" class="form-control" id="postalcode" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div><!-- End of Postal Address row -->
<div class=row style="padding:0px 5px 5px 10px">
<legend style="padding:25px 5px 5px 10px">Current Address</legend>
<div class=col-md-4 style="width:20%">
<p>Country <span>*</span></p>
<select name="current_country" id="CurrentaddressCountry" class="dropup selectpicker" data-dropup--auto="false" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="kenya">Kenya</option>
<option value="tanzania">Tanzania</option>
<option value="uganda">Uganda</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>State/County <span>*</span></p>
<select name="current_county" id="CurrentaddressCounty" class="dropup selectpicker" data-dropup--auto="false" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="nairobi">Nairobi</option>
<option value="nakuru">Nakuru</option>
<option value="mandera">Mandera</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Constituency <span>*</span></p>
<select name="current_constituency" id="CurrentaddressConstituency" class="dropup selectpicker" data-dropup--auto="false" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="langata">Langata</option>
<option value="kikuyu">Kikuyu</option>
<option value="kisii">Kisii</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Location </p>
<input name="current_street_address" type="text" class="form-control" id="postalStreetAddress" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div><!-- End of Current Address row -->
<div class=row style="padding:0px 5px 15px 10px">
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class="btn btn-info" name="contactinfo_form" style="padding: 5px 25px 5px 25px">Save</button>
</div>
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class=btn style="padding: 5px 25px 5px 25px">Cancel</button>
</div>
</div> <!-- End of button row -->
</form>
</div>
</div>
</section>
</section>
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
@endsection
>>>>>>> Storing employee info
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
@section('title', 'Employees') @section('title', 'Employees')
=======
@extends('Layout.employees_master')
@section('title', 'Employees')
>>>>>>> Storing employee info
@section('header-include') @section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/> <link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/> <link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style> <style>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
form { form {
=======
form {
>>>>>>> Storing employee info
border-radius: 5px; border-radius: 5px;
width:100%; width:100%;
background-color: #FFFFFF; background-color: #FFFFFF;
...@@ -40,6 +51,21 @@ ...@@ -40,6 +51,21 @@
display:inline-inline; display:inline-inline;
margin-right: 10px; margin-right: 10px;
} }
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
=======
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
>>>>>>> Storing employee info
.panel-row { .panel-row {
padding: 0 18px; padding: 0 18px;
background-color: white; background-color: white;
...@@ -47,6 +73,7 @@ ...@@ -47,6 +73,7 @@
overflow: hidden; overflow: hidden;
transition: max-height 0.2s ease-out; transition: max-height 0.2s ease-out;
} }
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
</style> </style>
@endsection @endsection
...@@ -74,3 +101,84 @@ ...@@ -74,3 +101,84 @@
=======
ul {
list-style-type: none;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetic"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{route('employees.index')}}">Employees</a></li>
<li><a href="{{route('employees.edit',$employee->id)}}">Edit Employees</a></li>
<li class="active">Dependants</li>
</ul>
@include('Layout.errors')
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item active" ><a href="{{ route('employees.edit',$employee->id) }}">Employee Info</a></li>
<li class="list-group-item "><a href="{{route('personal',$employee->id)}}">Personal</a></li>
<li class="list-group-item "><a href="{{route('salary',$employee->id)}}">Salary</a></li>
<li class="list-group-item "><a href="{{route('contact',$employee->id)}}">Contact</a></li>
</ul>
</div>
<div class=col-md-6 style="width:86.5%;">
<div class="table-responsive" style="padding:0px 5px 5px 10px">
<table class="table table-striped m-b-sm datagrid">
@if(count($dependants)>0)
<thead>
<tr>
<th>Name</th>
<th>Phone No.</th>
<th>Email</th>
<th>Relation</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach($dependants as $dependant)
<tr class="dependants{{$dependants->id}}">
<td>{{$dependant->name}}</td>
<td>{{$dependant->phone_no}}</td>
<td>{{$dependant->email}}</td>
<td>{{$dependant->relation}}</td>
<td>
<form action="{{ route('employees.store') }}" method="post" style=position:relative;float:right>
@csrf
@method('DELETE')
<a href="" ><span class="btn btn-default"><i class="fa fa-edit no-margin"></i></span></a>
<button data-toggle="tooltip" data-placement="top" title="Delete" type="submit" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this item?');"><i class="fa fa-trash no-margin"></i></button>
</form>
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="2" class="text-center">Nothing to display</td>
</tr>
@endif
</tbody>
</table>
</div>
</div>
</div>
</section>
</section>
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
@endsection
>>>>>>> Storing employee info
@extends('Layout.employees_master')
@section('title', 'Employees')
@section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style>
form {
border-radius: 5px;
width:100%;
background-color: #FFFFFF;
overflow: hidden;
}
p span {
color: #F00;
}
p {
margin: 0px;
font-weight: 500;
line-height: 2;
color:#333;
}
a {
text-decoration:inherit
}
.form-group {
overflow: hidden;
clear: both;
}
.form-control {
position:relative;
clear: both;
margin-top: 2px;
display:inline-inline;
margin-right: 10px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.panel-row {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
ul {
list-style-type: none;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetic"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{route('employees.index')}}">Employees</a></li>
<li><a href="{{route('employees.edit',$employee->employee_id)}}">Edit Employees</a></li>
<li><a href="{{route('contact',$employee->employee_id)}}">Contact</a></li>
<li class="active">Edit Contact</li>
</ul>
@include('Layout.errors')
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item " ><a href="{{ route('employees.edit',$employee->employee_id) }}">Employee Info</a></li>
<li class="list-group-item "><a href="{{route('personal',$employee->employee_id)}}">Personal</a></li>
<li class="list-group-item "><a href="{{route('salary',$employee->employee_id)}}">Salary</a></li>
<li class="list-group-item active"><a href="{{route('contact',$employee->employee_id)}}">Contact</a></li>
</ul>
</div>
<div class=col-md-6 style="width:86.5%;">
<form method="post" action="{{ route('update_contact',$employee->employee_id) }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<legend style="padding:5px 5px 5px 10px">Postal Address</legend>
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>country <span>*</span></p>
<input name="country" type="text" class="form-control" id="country" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->country}}">
</div>
<div class=col-md-4 style="width:20%">
<p>State/County <span>*</span></p>
<input name="county" type="text" class="form-control" id="county" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->county}}">
</div>
<div class=col-md-4 style="width:20%">
<p>City <span>*</span></p>
<input name="city" type="text" class="form-control" id="city" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->city}}">
</div>
<div class=col-md-4 style="width:20%">
<p>Street Address <span>*</span></p>
<input name="street_address" type="text" class="form-control" id="streetaddress" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->street_address}}">
</div>
<div class=col-md-4 style="width:20%">
<p>Postal Code</p>
<input name="postal_code" type="text" value="{{$employee->postal_code}}" class="form-control" id="postalcode" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div><!-- End of Postal Address row -->
<div class=row style="padding:0px 5px 5px 10px">
<legend style="padding:25px 5px 5px 10px">country Address</legend>
<div class=col-md-4 style="width:20%">
<p>Country <span>*</span></p>
<select name="current_country" id="current_country" class="dropup selectpicker" data-dropup--auto="false" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="kenya"@if($selected_current_country=$employee->current_country){{'selected'}}@endif>Kenya</option>
<option value="tanzania"@if($selected_current_country=$employee->current_country){{'selected'}}@endif>Tanzania</option>
<option value="uganda"@if($selected_current_country=$employee->current_country){{'selected'}}@endif>Uganda</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>State/County <span>*</span></p>
<select name="current_county" id="countryaddressCounty" class="dropup selectpicker" data-dropup--auto="false" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="1"@if($selected_current_county=$employee->current_county){{'selected'}}@endif>Nairobi</option>
<option value="2"@if($selected_current_county=$employee->current_county){{'selected'}}@endif>Nakuru</option>
<option value="3"@if($selected_current_county=$employee->current_county){{'selected'}}@endif>Mandera</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Constituency <span>*</span></p>
<select name="current_constituency" id="countryaddressConstituency" class="dropup selectpicker" data-dropup--auto="false" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="langata"@if($selected_current_constituency=$employee->current_constituency){{'selected'}}@endif>Langata</option>
<option value="kikuyu"@if($selected_current_constituency=$employee->current_constituency){{'selected'}}@endif>Kikuyu</option>
<option value="kisii" @if($selected_current_constituency=$employee->current_constituency){{'selected'}}@endif>Kisii</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Location </p>
<input name="current_street_address" type="text"value="{{$employee->current_street_address}}" class="form-control" id="postalStreetAddress" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div><!-- End of country Address row -->
<div class=row style="padding:0px 5px 15px 10px">
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class="btn btn-info" name="contactinfo_form" style="padding: 5px 25px 5px 25px">Save</button>
</div>
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class=btn style="padding: 5px 25px 5px 25px">Cancel</button>
</div>
</div> <!-- End of button row -->
</form>
</div>
</div>
</section>
</section>
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
@endsection
@extends('Layout.employees_master')
@section('title', 'Employees')
@section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style>
form {
border-radius: 5px;
width:100%;
background-color: #FFFFFF;
overflow: hidden;
}
p span {
color: #F00;
}
p {
margin: 0px;
font-weight: 500;
line-height: 2;
color:#333;
}
a {
text-decoration:inherit
}
.form-group {
overflow: hidden;
clear: both;
}
.form-control {
position:relative;
clear: both;
margin-top: 2px;
display:inline-inline;
margin-right: 10px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.panel-row {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
ul {
list-style-type: none;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetic"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{route('employees.index')}}">Employees</a></li>
<li class="active">Edit Employees</li>
</ul>
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item active" ><a href="{{ route('employees.edit',$employee->id) }}">Employee Info</a></li>
<li class="list-group-item "><a href="{{route('personal',$employee->id)}}">Personal</a></li>
<li class="list-group-item "><a href="{{route('salary',$employee->id)}}">Salary</a></li>
<li class="list-group-item "><a href="{{route('contact',$employee->id)}}">Contact</a></li>
</ul>
</div>
<div class=col-md-6 style="width:86.5%;">
<div class="panel-body pull-in">
<div class="col-sm-3">
<div class="text-center">
<!-- employee picture -->
<img src="http://ssl.gstatic.com/accounts/ui/avatar_2x.png" class="avatar img-circle img-thumbnail" alt="avatar" width="150" height="100">
<h6>Upload a different photo...</h6>
<input type="file" class="text-center center-block file-upload">
</div>
<br>
</div>
<!-- End of col-3-->
<div class="col-sm-8">
<ul class="list-group">
<li class="list-group-item"> <p><i class="fa fa-user"></i> Employee name:{{$employee->prefix.':'.$employee->first_name.' '.$employee->last_name}}</p> </li>
<li class="list-group-item"><p><i class="fa fa-id-card"></i> Employee id: {{$employee-> employee_id}}</p> </li>
<li class="list-group-item"><p><i class="fa fa-envelope"></i> Employee Email: {{$employee-> email_address}}</p></li>
<li class="list-group-item"><p><i class="fa fa-phone"></i> Employee Contact no:{{$employee-> personal_phone}}</p> </li>
</ul>
</div>
<form method="post" action="{{ route('employees.update', $employee->id) }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<fieldset>
<legend>Employee Info</legend>
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Prefix</p>
<select name="prefix" id="prefix" class="form-control selectpicker" data-live-search="true" data-size="2" title="Select prefix" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="Mr" @if($selected_prefix = $employee->prefix) {{'selected'}} @endif> Mr.</option>
<option value="Ms" @if($selected_prefix = $employee->prefix) {{'selected'}} @endif> Ms.</option>
<option value="Eng" @if($selected_prefix = $employee->prefix) {{'selected'}} @endif> Eng.</option>
<option value="Dr" @if($selected_prefix = $employee->prefix) {{'selected'}} @endif> Dr.</option>
<option value="Prof" @if($selected_prefix = $employee->prefix) {{'selected'}} @endif> Prof.</option>
</select>
</div>
<div class=col-md-4 id="Firstname" style="width:20%; display: inline;">
<p>First Name <span>*</span></p>
<input name="first_name" type="text" class="form-control" id="first_name" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->first_name }}">
</div>
<div class=col-md-4 id="Lastname" style="width:20%; display: inline;">
<p>Last Name <span>*</span></p>
<input name="last_name" type="text" class="form-control" id="last_name" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->last_name }}">
</div>
<div class=col-md-4 id="Middlename" style="width:20%; display: inline;">
<p>Middle Name </p>
<input name="middle_name" type="text" class="form-control" id="middle_name" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->middle_name }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Gender <span>*</span></p>
<label class="radio-inline">
<input type="radio" id="smt-fld-1-2" value="male" name="gender" required @if($selected_gender = $employee->gender) {{'selected'}} @endif >Male</label>
<label class="radio-inline">
<input type="radio" id="smt-fld-1-3" value="female" name="gender" required @if($selected_gender = $employee->gender) {{'selected'}} @endif>Female</label>
<label class="radio-inline">
<input type="radio" id="smt-fld-1-3" value="other" name="gender" required @if($selected_gender = $employee->gender) {{'selected'}} @endif>Other</label>
</div>
</div><!-- End of first row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Business Unit</p>
<select name="business_unit" id="businessunit" class="form-control selectpicker" data-live-search="true" title="Select Business Unit" style="width:15em;" data-size="5" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="0">All Business Units</option>
@foreach($businessunits as $businessunit)
<option value="{{$businessunit->id}}" @if($selected_business_unit = $businessunit->id) {{'selected'}} @endif>{{$businessunit->business_unit}}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span data-toggle="modal" data-target="#createCertificate">Add Branch</span>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Department <span>*</span></p>
<select name="department" id="department" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Department" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="0">All Departments</option>
@foreach($departments as $department)
<option value="{{$department->id}}" @if($selected_department = $department->id) {{'selected'}} @endif>{{$department->department_name }}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Department</span>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Employee Code<span>*</span></p>
<select name="employee_code" id="employeecode" class="form-control selectpicker" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="1" @if($selecteemployeecode = $employee->gender) {{'selected'}} @endif>Branch Code</option>
<option value="2" @if($selecteemployeecode = $employee->gender) {{'selected'}} @endif>Department Code</option>
<option value="3" @if($selecteemployeecode = $employee->gender) {{'selected'}} @endif>None</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Employee ID <span>*</span></p>
<input name="employee_id" type="text" class="form-control" id="employee_no" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->employee_id }}">
</div>
<div class=col-md-4 style="width:20%">
<p>E-mail <span>*</span></p>
<input name="email" type="email" class="form-control" id="email" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->email_address }}">
</div>
</div> <!-- End of second row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Personal PhoneNo. <span>*</span></p>
<input name="personal_phone_no" type="text" class="form-control" id="personal_phoneno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->personal_phone }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Work PhoneNo. </p>
<input name="work_phone_no" type="text" class="form-control" id="work_phoneno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->work_phone }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Extension</p>
<input name="extension" type="text" class="form-control" id="extension" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->extension }}">
</div>
<div class=col-md-4 style="width:20%">
<p>KRA PIN <span>*</span></p>
<input name="kra_pin" type="text" class="form-control" id="krapin" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->kra_pin }}">
</div>
<div class=col-md-4 style="width:20%">
<p>NHIF No. <span>*</span></p>
<input name="nhif_no" type="text" class="form-control" id="nhif_no" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->nhif_number }}">
</div>
</div><!-- End of third row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>NSSF No. <span>*</span></p>
<input name="nssf_no" type="text" class="form-control" id="nssf_no" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->nssf_number }}">
</div>
<div class=col-md-4 style="width:20%">
<p>IFMIS No</p>
<input name="ifmis_no" type="text" class="form-control" id="ifmis_no" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->ifmis_number }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Reporting Manager <span>*</span></p>
<select name="reporting_manager" id="reportingManager" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Reporting Manager" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
@foreach($managers as $manager)
<option value="{{$manager->id}}" @if($selected_manager = $manager->id) {{'selected'}} @endif>{{$manager->name }}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Reporting Manager</span>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Role <span>*</span></p>
<select name="role" id="role" title="Select Role" class="form-control selectpicker" data-live-search="true" data-size="5" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
@foreach($roles as $role)
<option value="{{$role->id}}" @if($selected_role = $role->id) {{'selected'}} @endif>{{$role->role }}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Role</span>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Job Title </p>
<select name="job_title" id="jobtitle" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Job Title" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
@foreach($jobtitles as $jobtitle)
<option value="{{$jobtitle->id}}" @if($selected_job_title = $jobtitle->id) {{'selected'}} @endif>{{$jobtitle->job_title }}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Job Title</span>
</div>
</div>
</div><!-- End of fourth row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Employment Status <span>*</span></p>
<select name="employment_status" id="employmentstatus" class="form-control selectpicker" data-live-search="true" data-size="5" onchange="durationfieldVisibility(this);" title="Select employment status." style="width:15em;">
@foreach($employment_status as $status)
<option value="{{$status->employment_status}}" @if($selected_status = $status->employment_status) {{'selected'}} @endif>{{$status->employment_status }}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Employment Status</span>
</div>
</div>
<div class=col-md-4 id="duration" style="display: none;width:20%">
<p>Duration <span>*</span></p>
<select name="duration" id="duration" class="dropup selectpicker" data-live-search="true" data-size="5" title="Select Duration" style="width:15em;" >
<option value="1 month" @if($selected_duration=$employee->duration) {{'selected'}} @endif>1 Month</option>
<option value="3 months" @if($selected_duration=$employee->duration) {{'selected'}} @endif>3 Months</option>
<option value="6 months" @if($selected_duration=$employee->duration) {{'selected'}} @endif>6 Months</option>
<option value="1 year" @if($selected_duration=$employee->duration) {{'selected'}} @endif>1 Year</option>
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Duration</span>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Years of Experience <span>*</span></p>
<input name="years_of_experience" type="text" class="form-control" id="yearsofexperience" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->years_of_experience }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Date of Joining <span>*</span></p>
<input name="date_of_joining" type="date" class="form-control" id="dateofjoining" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->date_of_joining }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Date of Leaving </p>
<input name="date_of_leaving" type="date" class="form-control" id="dateofleaving" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->date_of_leaving }}">
</div>
</div><!-- End of fifth row -->
</fieldset>
<div class= container-row style="padding:0px 5px 5px 10px;">
<div class="row">
<div class=col-md-4 style="width:20%;padding-top:25px;">
<b> Is Employee Disabled?</b> <input type="checkbox" id="disabilitycheckbox" />
</div>
</div>
<div class="disability row" id=disabilityformrow style="padding:0px 5px 5px 10px;display:none;">
</fieldset>
<legend style="padding:30px 0px 0px 10px;">Disability</legend>
<div class="disabilityinfo row" style="padding:0px 5px 5px 10px;height:125px">
<div class=col-md-4 style="width:20%;">
<p>Disability Type </p>
<select name="disability_type" id="disabilityType" class="dropdown selectpicker" data-dropup--auto="false" title="Select Disability" data-size="2" data-live-search="true" >
<option value="Blindness and Visual Impairment" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Blindness and Visual Impairment</option>
<option value="Hearing Impairments" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Hearing Impairments</option>
<option value="Mental illness or Emotional disturbances" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Mental illness or Emotional disturbances</option>
<option value="Learning disabilities" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Learning disabilities</option>
<option value="Mobility or Orthopedic disability" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Mobility or Orthopedic disability</option>
<option value="Speech or language impairments" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Speech or language impairments</option>
<option value="Health Impairments" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Health Impairments</option>
<option value="Other" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Other</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Description </p>
<textarea name="disability_description" id=disabilityDescription class="form-control inputstl" rows="3"
value="{{$employee->disability_description }}"></textarea>
</div>
<div class=col-md-4 style="width:20%">
<p>Exemption Certificate </p>
<input type="file" name="exemption_certificate" class="form-control" style="width:15em;"value="{{$employee->exemption_certificate}}" >
</div>
</div><!-- End of DisabilityInfo row -->
</div><!-- End of Disability row -->
</fieldset>
<div class="form-group">
<button class="btn btn-info btn-submit">Submit</button>
<a class="btn btn-default" href="{{ route('employees.index') }}">Cancel</a>
</div>
</form>
</div><!-- End of container-row -->
</div> <!-- End of employeeinfo tabcontainer -->
</div>
</div>
</section>
</section>
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
<script>
//Javascript for rendering disability form if checkbox is checked
$('#disabilitycheckbox').change(function(){
if($(this).is(":checked"))
$('#disabilityformrow').fadeIn('slow');
else
$('#disabilityformrow').fadeOut('slow');
});
$(document).on('ready', function(){
});
</script>
@endsection
\ No newline at end of file
@extends('Layout.employees_master')
@section('title', 'Employees')
@section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style>
form {
border-radius: 5px;
width:100%;
background-color: #FFFFFF;
overflow: hidden;
}
p span {
color: #F00;
}
p {
margin: 0px;
font-weight: 500;
line-height: 2;
color:#333;
}
a {
text-decoration:inherit
}
.form-group {
overflow: hidden;
clear: both;
}
.form-control {
position:relative;
clear: both;
margin-top: 2px;
display:inline-inline;
margin-right: 10px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.panel-row {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
ul {
list-style-type: none;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetic"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{route('employees.index')}}">Employees</a></li>
<li><a href="{{route('employees.edit',$employee->employee_id)}}">Edit Employees</a></li>
<li><a href="{{route('personal',$employee->employee_id)}}">Personal Info</a></li>
<li class="active">Edit Personal Info</li>
</ul>
@include('Layout.errors')
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item " ><a href="{{ route('employees.edit',$employee->employee_id) }}">Employee Info</a></li>
<li class="list-group-item active"><a href="{{route('personal',$employee->employee_id)}}">Personal</a></li>
<li class="list-group-item "><a href="{{route('salary',$employee->employee_id)}}">Salary</a></li>
<li class="list-group-item "><a href="{{route('contact',$employee->employee_id)}}">Contact</a></li>
</ul>
</div>
<div class=col-md-6 style="width:86.5%;">
<form method="post" action="{{ route('update_personal',$employee->employee_id) }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Marital Status<span>*</span></p>
<select class="selectpicker" id="marital_status" name="marital_status" data-live-search="true" title="Select marital status" data-size="3" >
<option value="single" @if($selected_marital_status = $employee->marital_status) {{'selected'}} @endif>Single</option>
<option value="married" @if($selected_marital_status = $employee->marital_status) {{'selected'}} @endif>Married</option>
<option value="separated" @if($selected_marital_status = $employee->marital_status) {{'selected'}} @endif>Separated</option>
<option value="divorced" @if($selected_marital_status = $employee->marital_status) {{'selected'}} @endif>Divorced</option>
<option value="widow_widower" @if($selected_marital_status = $employee->marital_status) {{'selected'}} @endif>Widow/Widower</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Nationality <span>*</span></p>
<select name="nationality" class="form-control selectpicker" data-live-search="true" data-size="3" title="Select nationality" onchange="ethnicVisibility(this);" id="nationality" class="form-control" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="kenyan" @if($selected_nationality = $employee->nationality) {{'selected'}} @endif>Kenyan</option>
<option value="ugandan" @if($selected_nationality = $employee->nationality) {{'selected'}} @endif>Ugandan</option>
<option value="tanzanian" @if($selected_nationality = $employee->nationality) {{'selected'}} @endif>Tanzanian</option>
<option value="american" @if($selected_nationality = $employee->nationality) {{'selected'}} @endif>American</option>
<option value="german" @if($selected_nationality = $employee->nationality) {{'selected'}} @endif>German</option>
<option value="dutch" @if($selected_nationality = $employee->nationality) {{'selected'}} @endif>Dutch</option>
<option value="russian" @if($selected_nationality = $employee->nationality) {{'selected'}} @endif>Russian</option>
<option value="spanish" @if($selected_nationality = $employee->nationality) {{'selected'}} @endif>Spanish</option>
</select>
</div>
<div class=col-md-4 id="ethnicfield" style="width:20%; display: none;">
<p>Ethnic Code <span>*</span></p>
<select name="ethnicity" id="ethnicity" class="form-control selectpicker" data-live-search="true" data-size="3" multiple data-max-options="2" title="Select ethnicity" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="Abaluhya" @if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Abaluhya</option>
<option value="Abagusii"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Abagusii</option>
<option value="Abakuria"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Abakuria</option>
<option value="Aembu"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Aembu</option>
<option value="Agikuyu"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Agikuyu</option>
<option value="Akamba"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Akamba</option>
<option value="Ambeere"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Ambeere</option>
<option value="Ameru"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Ameru</option>
<option value="Bajuni"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Bajuni</option>
<option value="Boni"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Boni</option>
<option value="Borana Oromo"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Borana Oromo</option>
<option value="Bukusu" @if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Bukusu</option>
<option value="Chonyi"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Chonyi</option>
<option value="Digo"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Digo</option>
<option value="Dorobo" @if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Dorobo</option>
<option value="El Molo"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>El Molo</option>
<option value="Gabra"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Gabra</option>
<option value="Giriama"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Giriama</option>
<option value="Idakho"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Idakho</option>
<option value="Ilchamus"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Ilchamus</option>
<option value="Indian"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Indian</option>
<option value="Isukha"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Isukha</option>
<option value="Jibana"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Jibana</option>
<option value="Kalenjin"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Kalenjin</option>
<option value="kipsigis"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>kipsigis</option>
<option value="Kuria"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Kuria</option>
<option value="Luo"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Luo</option>
<option value="Maasai"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Maasai</option>
<option value="Maragoli"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Maragoli</option>
<option value="Mijikenda"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Mijikenda</option>
<option value="Okiek"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Okiek</option>
<option value="Orma"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Orma</option>
<option value="Pokot"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Pokot</option>
<option value="Rendille"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Rendille</option>
<option value="Sakuye"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Sakuye</option>
<option value="Samburu"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Samburu</option>
<option value="Suba"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Suba</option>
<option value="Swahili"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Swahili</option>
<option value="Teso"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Teso</option>
<option value="Turkana"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Turkana</option>
<option value="Yaaku"@if($selected_ethnicity = $employee->ethnicity) {{'selected'}} @endif>Yaaku</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Date of Birth <span>*</span></p>
<input name="date_of_birth" type="date" class="form-control" id="dob" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->date_of_birth}}">
</div>
<div class=col-md-4 style="width:20%">
<p>Identity Documents<span>*</span> </p>
<select class="form-control selectpicker" name="identity_document" data-live-search="true" title="Select Identity Document" onchange="inputfieldVisibility(this);" id="identitydocument" style="background-color:white;">
<option value="national"@if($selected_identity_document = $employee->identity_document) {{'selected'}} @endif>National ID</option>
<option value="passport"@if($selected_identity_document = $employee->identity_document) {{'selected'}} @endif>Passport No</option>
<option value="military" @if($selected_identity_document = $employee->identity_document) {{'selected'}} @endif>Military ID</option>
</select>
</div>
</div><!-- End of first row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 id="nationaldocument" style="width:20%;">
<p>Identity No.</p>
<input name="national_id" type="text"value="{{$employee->identity_no}}" class="form-control" id="extension" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 style="width:20%">
<p>Language</p>
<select class="dropup selectpicker" name="language" data-dropup--auto="false" multiple data-max-options="5" data-size="3" data-live-search="true" title="Select a language">
<option value="english" @if($selected_language = $employee->language) {{'selected'}} @endif>English</option>
<option value="swahili" @if($selected_language = $employee->language) {{'selected'}} @endif>Swahili</option>
<option value="deutsch" @if($selected_language = $employee->language) {{'selected'}} @endif>Deutch</option>
<option value="french" @if($selected_language = $employee->language) {{'selected'}} @endif>French</option>
<option value="spanish" @if($selected_language = $employee->language) {{'selected'}} @endif>Spanish</option>
<option value="chinese" @if($selected_language = $employee->language) {{'selected'}} @endif>Chinese</option>
<option value="japanese" @if($selected_language = $employee->language) {{'selected'}} @endif>Japanese</option>
<option value="russian" @if($selected_language = $employee->language) {{'selected'}} @endif>Russian</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Blood Group <span>*</span></p>
<select class="dropup form-control selectpicker" name="blood_group" data-dropup--auto="false" title="Select blood group" data-size="3" data-live-search="true">
<option value="A+" @if($selected_blood_group = $employee->blood_group) {{'selected'}} @endif>A +</option>
<option value="A-" @if($selected_blood_group = $employee->blood_group) {{'selected'}} @endif>A -</option>
<option value="AB+" @if($selected_blood_group = $employee->blood_group) {{'selected'}} @endif>AB +</option>
<option value="AB-" @if($selected_blood_group = $employee->blood_group) {{'selected'}} @endif>AB -</option>
<option value="B+" @if($selected_blood_group = $employee->blood_group) {{'selected'}} @endif>B +</option>
<option value="B-" @if($selected_blood_group = $employee->blood_group) {{'selected'}} @endif>B -</option>
<option value="O+" @if($selected_blood_group = $employee->blood_group) {{'selected'}} @endif>O +</option>
<option value="O-" @if($selected_blood_group = $employee->blood_group) {{'selected'}} @endif>O -</option>
</select>
</div>
</div> <!-- End of second row -->
<div class=row style="padding:0px 5px 15px 10px">
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class="btn btn-info"name="personalinfo_form" style="padding: 5px 25px 5px 25px">Save</button>
</div>
<div class=col-md-4 style="width:20%; padding-top:15px">
<a href="{{route('personal',$employee->employee_id)}}"><button class=btn style="padding: 5px 25px 5px 25px">Cancel</button></a>
</div>
</div> <!-- End of button row -->
</form>
</div>
</div>
</section>
</section>
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
<script>
$("input").click(function(){
$(this).next().show();
$(this).next().hide();
});
// Javascript for rendering tablinks
$('#tabLinks').on('click', '.list-group a', function (e) {
clickEvent = true;
$('.list-group li').removeClass('active');
$(this).parent().addClass('active');
localStorage.setItem('tab', $(e.currentTarget).attr('href'));
});
$(function() {
var slide = localStorage.getItem('tab');
console.log(slide);
if (slide) {
$("a[href='" + slide + "']").click().tab('show');
}
});
function tabswitch(item) {
var divs = document.getElementsByClassName("tabcontainer");
for (var i = 0; i < divs.length; i++) {
divs[i].style.display = 'none';
}
var myDiv = item.href;
var target = myDiv.split("#");
document.getElementById(target[1]).style.display = "inline";
}
// Javascript for rendering input fields on set conditions
function inputfieldVisibility(that) {
if(that.value == "national") {
document.getElementById("nationaldocument").style.display = "inline";
document.getElementById("passportdocument").style.display = "none";
document.getElementById("militarydocument").style.display = "none";
}else if(that.value == "passport") {
document.getElementById("passportdocument").style.display = "inline";
document.getElementById("militarydocument").style.display = "none";
document.getElementById("nationaldocument").style.display = "none";
}else if(that.value == "military") {
document.getElementById("militarydocument").style.display = "inline";
document.getElementById("nationaldocument").style.display = "none";
document.getElementById("passportdocument").style.display = "none";
}else {
document.getElementById("nationaldocument").style.display = "none";
document.getElementById("passportdocument").style.display = "none";
document.getElementById("militarydocument").style.display = "none";
}
}
function ethnicVisibility(that) {
if (that.value == "kenyan") {
document.getElementById("ethnicfield").style.display = "inline";
}else{
document.getElementById("ethnicfield").style.display = "none";
}
}
function durationfieldVisibility(that) {
if (that.value == "casual"|| that.value == "probation" || that.value =="contract"|| that.value == "temporary") {
document.getElementById("duration").style.display = "block";
} else {
document.getElementById("duration").style.display = "none";
}
}
function relationfieldVisibility(that) {
if (that.value == "other") {
document.getElementById("other_relation").style.display = "block";
} else {
document.getElementById("other_relation").style.display = "none";
}
}
$(document).on('ready', function(){
});
</script>
@endsection
@extends('Layout.employees_master')
@section('title', 'Employees')
@section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style>
form {
border-radius: 5px;
width:100%;
background-color: #FFFFFF;
overflow: hidden;
}
p span {
color: #F00;
}
p {
margin: 0px;
font-weight: 500;
line-height: 2;
color:#333;
}
a {
text-decoration:inherit
}
.form-group {
overflow: hidden;
clear: both;
}
.form-control {
position:relative;
clear: both;
margin-top: 2px;
display:inline-inline;
margin-right: 10px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.panel-row {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
ul {
list-style-type: none;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetic"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{route('employees.index')}}">Employees</a></li>
<li><a href="{{route('employees.edit',$employee->employee_id)}}">Edit Employees</a></li>
<li><a href="{{route('salary',$employee->employee_id)}}">Salary</a></li>
<li class="active">Edit Salary</li>
</ul>
@include('Layout.errors')
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item " ><a href="{{ route('employees.edit',$employee->employee_id) }}">Employee Info</a></li>
<li class="list-group-item "><a href="{{route('personal',$employee->employee_id)}}">Personal</a></li>
<li class="list-group-item active"><a href="{{route('salary',$employee->employee_id)}}">Salary</a></li>
<li class="list-group-item "><a href="{{route('contact',$employee->employee_id)}}">Contact</a></li>
</ul>
</div>
<div class=col-md-6 style="width:86.5%;">
<form method="post" action="{{ route('update_salary',$employee->employee_id) }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Pay Frequency<span>*</span></p>
<select name="pay_frequency" id="payfrequency" class="form-control selectpicker" data-live-search="true" data-size="2" title="Select Pay Frequency" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="monthly" @if($selected_pay_frequency=$employee->pay_frequency) {{'selected'}} @endif>Monthly</option>
<option value="weekly" @if($selected_pay_frequency=$employee->pay_frequency) {{'selected'}} @endif>Weekly</option>
<option value="daily" @if($selected_pay_frequency=$employee->pay_frequency) {{'selected'}} @endif>Daily</option>
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<a href="" data-toggle="modal" data-target="#createPayfrequency"><span>Add Pay Frequency</span></a>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Salary Amount<span>*</span> </p>
<div class="input-group-btn">
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
<span class="dropdown-label">USD</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-select pull-right">
<li class="active">
<a href="#"><input type="radio" value="USD" name="pay_unit" @if($selected_pay_unit=$employee->pay_unit){{'checked'}}@endif>USD</a>
</li>
<li>
<a href="#"><input type="radio" value="GBP" name="pay_unit" @if($selected_pay_unit=$employee->pay_unit){{'checked'}}@endif>GBP</a>
</li>
</ul>
<input type="number" name="salary_amount" id="appendedInput" class="input-sm form-control" value="{{$employee->salary_amount}}">
</div>
</div>
<div class=col-md-4 id="Middlename" style="width:20%;">
<p>Bank Branch Name </p>
<input name="bank_branch_name" type="text" value="{{$employee->bank_branch_name}}" class="form-control" id="bankBranch" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 id="Middlename" style="width:20%;">
<p>Account No. </p>
<input name="bank_account_no" type="text" value="{{$employee->bank_account_no}}" class="form-control" id="bank_account_no" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div><!-- End of first row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 id="sacco_name" style="width:20%;">
<p>Sacco Name </p>
<input name="sacco_name" type="text" value="{{$employee->sacco_name}}"class="form-control" id="sacco_name" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 id="sacco_account_no" style="width:20%;">
<p>Sacco Account No. </p>
<input name="sacco_account_no" type="text" value="{{$employee->sacco_account_no}}" class="form-control" id="sacco_account_no" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div> <!-- End of second row -->
<div class=row style="padding:0px 5px 15px 10px">
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class="btn btn-info" style="padding: 5px 25px 5px 25px">Save</button>
</div>
<div class=col-md-4 style="width:20%; padding-top:15px">
<a href="{{route('contact',$employee->id)}}"><button class=btn style="padding: 5px 25px 5px 25px">Cancel</button></a>
</div>
</div> <!-- End of button row -->
</form>
</div>
</div>
</section>
</section>
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
<script>
$("input").click(function(){
$(this).next().show();
$(this).next().hide();
});
$(document).on('ready', function(){
});
</script>
@endsection
@extends('Layout.employees_master')
@section('title', 'Employees')
@section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style>
form {
border-radius: 5px;
width:100%;
background-color: #FFFFFF;
overflow: hidden;
}
p span {
color: #F00;
}
p {
margin: 0px;
font-weight: 500;
line-height: 2;
color:#333;
}
a {
text-decoration:inherit
}
.form-group {
overflow: hidden;
clear: both;
}
.form-control {
position:relative;
clear: both;
margin-top: 2px;
display:inline-inline;
margin-right: 10px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.panel-row {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
ul {
list-style-type: none;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetic"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{route('employees.index')}}">Employees</a></li>
<li><a href="{{route('employees.edit',$employee->id)}}">Edit Employees</a></li>
<li class="active">Emergency Contacts</li>
</ul>
@include('Layout.errors')
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item active" ><a href="{{ route('employees.edit',$employee->id) }}">Employee Info</a></li>
<li class="list-group-item "><a href="{{route('personal',$employee->id)}}">Personal</a></li>
<li class="list-group-item "><a href="{{route('salary',$employee->id)}}}">Salary</a></li>
<li class="list-group-item "><a href="{{route('contact',$employee->id)}}}">Contact</a></li>
</ul>
</div>
<div class=col-md-6 style="width:86.5%;">
<div class="table-responsive" style="padding:0px 5px 5px 10px">
<table class="table table-striped m-b-sm datagrid">
@if(count($emergency)>0)
<thead>
<tr>
<th>Name</th>
<th>Phone No.</th>
<th>Email</th>
<th>Relation</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach($emergency as $contact)
<tr class="emergency_contact{{$emergency->id}}">
<td>{{$contact->name}}</td>
<td>{{$contact->phone_no}}</td>
<td>{{$contact->email}}</td>
<td>{{$contact->relation}}</td>
<td>
<form action="{{ route('employees.store') }}" method="post" style=position:relative;float:right>
@csrf
@method('DELETE')
<a href="" ><span class="btn btn-default"><i class="fa fa-edit no-margin"></i></span></a>
<button data-toggle="tooltip" data-placement="top" title="Delete" type="submit" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this item?');"><i class="fa fa-trash no-margin"></i></button>
</form>
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="2" class="text-center">Nothing to display</td>
</tr>
@endif
</tbody>
</table>
</div>
</div>
</div>
</section>
</section>
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
<script>
$("input").click(function(){
$(this).next().show();
$(this).next().hide();
});
// Javascript for rendering tablinks
$('#tabLinks').on('click', '.list-group a', function (e) {
clickEvent = true;
$('.list-group li').removeClass('active');
$(this).parent().addClass('active');
localStorage.setItem('tab', $(e.currentTarget).attr('href'));
});
$(function() {
var slide = localStorage.getItem('tab');
console.log(slide);
if (slide) {
$("a[href='" + slide + "']").click().tab('show');
}
});
function tabswitch(item) {
var divs = document.getElementsByClassName("tabcontainer");
for (var i = 0; i < divs.length; i++) {
divs[i].style.display = 'none';
}
var myDiv = item.href;
var target = myDiv.split("#");
document.getElementById(target[1]).style.display = "inline";
}
// Javascript for rendering input fields on set conditions
function inputfieldVisibility(that) {
if(that.value == "national") {
document.getElementById("nationaldocument").style.display = "inline";
document.getElementById("passportdocument").style.display = "none";
document.getElementById("militarydocument").style.display = "none";
}else if(that.value == "passport") {
document.getElementById("passportdocument").style.display = "inline";
document.getElementById("militarydocument").style.display = "none";
document.getElementById("nationaldocument").style.display = "none";
}else if(that.value == "military") {
document.getElementById("militarydocument").style.display = "inline";
document.getElementById("nationaldocument").style.display = "none";
document.getElementById("passportdocument").style.display = "none";
}else {
document.getElementById("nationaldocument").style.display = "none";
document.getElementById("passportdocument").style.display = "none";
document.getElementById("militarydocument").style.display = "none";
}
}
function ethnicVisibility(that) {
if (that.value == "kenyan") {
document.getElementById("ethnicfield").style.display = "inline";
}else{
document.getElementById("ethnicfield").style.display = "none";
}
}
function durationfieldVisibility(that) {
if (that.value == "casual"|| that.value == "probation" || that.value =="contract"|| that.value == "temporary") {
document.getElementById("duration").style.display = "block";
} else {
document.getElementById("duration").style.display = "none";
}
}
function relationfieldVisibility(that) {
if (that.value == "other") {
document.getElementById("other_relation").style.display = "block";
} else {
document.getElementById("other_relation").style.display = "none";
}
}
$(document).on('ready', function(){
});
</script>
@endsection
@extends('Layout.employees_master')
@section('title', 'Employees')
@section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style>
form {
border-radius: 5px;
width:100%;
background-color: #FFFFFF;
overflow: hidden;
}
p span {
color: #F00;
}
p {
margin: 0px;
font-weight: 500;
line-height: 2;
color:#333;
}
a {
text-decoration:inherit
}
.form-group {
overflow: hidden;
clear: both;
}
.form-control {
position:relative;
clear: both;
margin-top: 2px;
display:inline-inline;
margin-right: 10px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.panel-row {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetics"><i class="fa fa-home"></i> Home</a></li>
<li><a href="/employees">Employees</a></li>
<li class="active">Add Employee</li>
</ul>
@include('Layout.errors')
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item active" >
<a href="{{ route('employees.edit') }}">Employee Info</a></li>
<li class="list-group-item "><a href="{{route('personal')}}">Personal</a></li>
<li class="list-group-item "><a href="{{route('salary')}}}">Salary</a></li>
<li class="list-group-item "><a href="{{route('contact')}}}">Contact</a></li>
</ul>
</div>
<!-- PersonalInfo Div -->
<div class="col-md-6 tabcontainer personal" id=personal style="display:none;width:86.5%">
<div class="panel-body pull-in">
<div class="col-sm-3">
<div class="text-center">
<!-- employee picture -->
<img src="http://ssl.gstatic.com/accounts/ui/avatar_2x.png" class="avatar img-circle img-thumbnail" alt="avatar" width="150" height="100">
<h6>Upload a different photo...</h6>
<input type="file" class="text-center center-block file-upload">
</div>
<br>
</div>
<!-- End of col-3-->
<div class="col-sm-8">
<ul class="list-group">
<li class="list-group-item"> <i class="fa fa-user"></i> Employee name: <strong> ken</strong>. </li>
<li class="list-group-item"><i class="fa fa-id-card"></i> Employee id: <strong> ken</strong>. </li>
<li class="list-group-item"><i class="fa fa-envelope"></i> Employee Email: <strong> ken</strong>. </li>
<li class="list-group-item"><i class="fa fa-phone"></i> Employee Contact no: <strong> ken</strong>. </li>
</ul>
</div>
</div>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Personal Info
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<form method="post" action="{{ route('employees.create') }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Marital Status<span>*</span></p>
<select class="selectpicker" id="marital_status" name="marital_status" data-live-search="true" title="Select marital status" data-size="3" >
<option data-tokens="single" value="single">Single</option>
<option data-tokens="married" value="married">Married</option>
<option data-tokens="separated" value="separated">Separated</option>
<option data-tokens="divorced" value="divorced">Divorced</option>
<option data-tokens="widow_widower" value="widow_widower">Widow/Widower</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Nationality <span>*</span></p>
<select name="nationality" class="form-control selectpicker" data-live-search="true" data-size="3" title="Select nationality" onchange="ethnicVisibility(this);" id="nationality" class="form-control" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="kenyan">Kenyan</option>
<option value="ugandan">Ugandan</option>
<option value="">Tanzanian</option>
<option value="">American</option>
<option value="">German</option>
<option value="">Dutch</option>
<option value="">Tanzanian</option>
<option value="">Tanzanian</option>
</select>
</div>
<div class=col-md-4 id="ethnicfield" style="width:20%; display: none;">
<p>Ethnic Code <span>*</span></p>
<select name="ethnicity" id="ethnicity" class="form-control selectpicker" data-live-search="true" data-size="3" multiple data-max-options="2" title="Select ethnicity" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="Abaluhya">Abaluhya</option>
<option value="Abagusii">Abagusii</option>
<option value="Abakuria">Abakuria</option>
<option value="Aembu">Aembu</option>
<option value="Agikuyu">Agikuyu</option>
<option value="Akamba">Akamba</option>
<option value="Ambeere">Ambeere</option>
<option value="Ameru">Ameru</option>
<option value="Bajuni">Bajuni</option>
<option value="Boni">Boni</option>
<option value="Borana Oromo">Borana Oromo</option>
<option value="Bukusu">Bukusu</option>
<option value="Chonyi">Chonyi</option>
<option value="Digo">Digo</option>
<option value="Dorobo">Dorobo</option>
<option value="El Molo">El Molo</option>
<option value="Gabra">Gabra</option>
<option value="Giriama">Giriama</option>
<option value="Idakho">Idakho</option>
<option value="Ilchamus">Ilchamus</option>
<option value="Indian">Indian</option>
<option value="Isukha">Isukha</option>
<option value="Jibana">Jibana</option>
<option value="Kalenjin">Kalenjin</option>
<option value="kipsigis">kipsigis</option>
<option value="Kuria">Kuria</option>
<option value="Luo">Luo</option>
<option value="Maasai">Maasai</option>
<option value="Maragoli">Maragoli</option>
<option value="Mijikenda">Mijikenda</option>
<option value="Okiek">Okiek</option>
<option value="Orma">Orma</option>
<option value="Pokot">Pokot</option>
<option value="Rendille">Rendille</option>
<option value="Sakuye">Sakuye</option>
<option value="Samburu">Samburu</option>
<option value="Suba">Suba</option>
<option value="Swahili">Swahili</option>
<option value="Teso">Teso</option>
<option value="Turkana">Turkana</option>
<option value="Yaaku">Yaaku</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Date of Birth <span>*</span></p>
<input name="date_of_birth" type="date" class="form-control" id="dob" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required>
</div>
<div class=col-md-4 style="width:20%">
<p>Identity Documents<span>*</span> </p>
<select class="form-control selectpicker" name="identity_document" data-live-search="true" title="Select Identity Document" onchange="inputfieldVisibility(this);" id="identitydocument" style="background-color:white;">
<option value="national">National ID</option>
<option value="passport">Passport No</option>
<option value="military">Military ID</option>
</select>
</div>
</div><!-- End of first row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 id="nationaldocument" style="width:20%; display: none;">
<p>National ID No.</p>
<input name="national_id" type="text" class="form-control" id="extension" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 id="passportdocument" style="width:20%; display: none;">
<p>Passport No.</p>
<input name="passport_no" type="text" class="form-control" id="extension" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 id="militarydocument" style="width:20%; display: none;">
<p>Military ID No.</p>
<input name="military_id" type="text" class="form-control" id="extension" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 style="width:20%">
<p>Language</p>
<select class="dropup selectpicker" name="language" data-dropup--auto="false" multiple data-max-options="5" data-size="3" data-live-search="true" title="Select a language">
<option value="english">English</option>
<option value="swahili">Swahili</option>
<option value="deutsch">Deutch</option>
<option value="french">French</option>
<option value="spanish">Spanish</option>
<option value="chinese">Chinese</option>
<option value="japanese">Japanese</option>
<option value="russian">Russian</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Blood Group <span>*</span></p>
<select class="dropup form-control selectpicker" name="blood_group" data-dropup--auto="false" title="Select blood group" data-size="3" data-live-search="true">
<option value="A+">A +</option>
<option value="A-">A -</option>
<option value="AB+">AB +</option>
<option value="AB-">AB -</option>
<option value="B+">B +</option>
<option value="B-">B -</option>
<option value="O+">O +</option>
<option value="O-">O -</option>
</select>
</div>
</div> <!-- End of second row -->
<div class=row style="padding:0px 5px 15px 10px">
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class="btn btn-info"name="personalinfo_form" style="padding: 5px 25px 5px 25px">Save</button>
</div>
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class=btn style="padding: 5px 25px 5px 25px">Cancel</button>
</div>
</div> <!-- End of button row -->
</form>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Contact info
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
<form method="post" action="{{ route('employees.create') }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<legend style="padding:5px 5px 5px 10px">Postal Address</legend>
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Country <span>*</span></p>
<input name="country" type="text" class="form-control" id="country" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required>
</div>
<div class=col-md-4 style="width:20%">
<p>State/County <span>*</span></p>
<input name="state" type="text" class="form-control" id="state" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required>
</div>
<div class=col-md-4 style="width:20%">
<p>City <span>*</span></p>
<input name="city" type="text" class="form-control" id="city" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required>
</div>
<div class=col-md-4 style="width:20%">
<p>Street Address <span>*</span></p>
<input name="streetaddress" type="text" class="form-control" id="streetaddress" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required>
</div>
<div class=col-md-4 style="width:20%">
<p>Postal Code</p>
<input name="postalcode" type="text" class="form-control" id="postalcode" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div><!-- End of Postal Address row -->
<div class=row style="padding:0px 5px 5px 10px">
<legend style="padding:25px 5px 5px 10px">Current Address</legend>
<div class=col-md-4 style="width:20%">
<p>Country <span>*</span></p>
<select name="CurrentaddressCountry" id="CurrentaddressCountry" class="dropup selectpicker" data-dropup--auto="false" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="1">Kenya</option>
<option value="2">Tanzania</option>
<option value="3">Uganda</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>State/County <span>*</span></p>
<select name="CurrentaddressCounty" id="CurrentaddressCounty" class="dropup selectpicker" data-dropup--auto="false" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="1">Nairobi</option>
<option value="2">Nakuru</option>
<option value="3">Mandera</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Constituency <span>*</span></p>
<select name="CurrentaddressConstituency" id="CurrentaddressConstituency" class="dropup selectpicker" data-dropup--auto="false" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="1">Langata</option>
<option value="2">Kikuyu</option>
<option value="3">Kisii</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Location </p>
<input name="postalStreetAddress" type="text" class="form-control" id="postalStreetAddress" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div><!-- End of Current Address row -->
<div class=row style="padding:0px 5px 15px 10px">
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class="btn btn-info" name="contactinfo_form" style="padding: 5px 25px 5px 25px">Save</button>
</div>
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class=btn style="padding: 5px 25px 5px 25px">Cancel</button>
</div>
</div> <!-- End of button row -->
</form>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingThree">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
Emergency Contacts
</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
<div class="panel-body">
<div class="pull-right" style="margin:5px 20px 5px 10px;">
<a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#createEmergencyContact"><i class="fa fa-plus"></i>Add Emergency Contact</a>
</div>
<div class=row style="padding:0px 5px 5px 10px">
<div class="table-responsive" style="padding:0px 5px 5px 10px">
<table class="table table-striped m-b-sm datagrid">
@if(count($emergency)>0)
<thead>
<tr>
<th>Name</th>
<th>Phone No.</th>
<th>Email</th>
<th>Relation</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach($emergency as $contact)
<tr class="emergency_contact{{$emergency->id}}">
<td>{{$contact->name}}</td>
<td>{{$contact->phone_no}}</td>
<td>{{$contact->email}}</td>
<td>{{$contact->relation}}</td>
<td>
<form action="{{ route('employees.store') }}" method="post" style=position:relative;float:right>
@csrf
@method('DELETE')
<a href="" ><span class="btn btn-default"><i class="fa fa-edit no-margin"></i></span></a>
<button data-toggle="tooltip" data-placement="top" title="Delete" type="submit" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this item?');"><i class="fa fa-trash no-margin"></i></button>
</form>
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="2" class="text-center">Nothing to display</td>
</tr>
@endif
</tbody>
</table>
</div>
</div><!-- End of Emergency Contact row -->
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingFour">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
Dependants
</a>
</h4>
</div>
<div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
<div class="panel-body">
<div class="pull-right" style="margin:5px 20px 5px 10px;">
<a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#createEmergencyContact"><i class="fa fa-plus"></i>Add Emergency Contact</a>
</div>
<div class=row style="padding:0px 5px 5px 10px">
<div class="table-responsive" style="padding:0px 5px 5px 10px">
<table class="table table-striped m-b-sm datagrid">
@if(count($emergency)>0)
<thead>
@foreach($emergency as $contact)
<tr>
<th>Name</th>
<th>Phone No.</th>
<th>Email</th>
<th>Relation</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr class="emergency_contact{{$emergency->id}}">
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<form action="{{ route('employees.store') }}" method="post" style=position:relative;float:right>
@csrf
@method('DELETE')
<a href="" ><span class="btn btn-default"><i class="fa fa-edit no-margin"></i></span></a>
<button data-toggle="tooltip" data-placement="top" title="Delete" type="submit" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this item?');"><i class="fa fa-trash no-margin"></i></button>
</form>
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="2" class="text-center">Nothing to display</td>
</tr>
@endif
</tbody>
</table>
</div>
</div><!-- End of fifth row -->
</div>
</div>
</div>
</div>
</div>
<!-- End of Accordion -->
<div class="col-md-6 tabcontainer salary" id=salary style="display:none;width:86.5%">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
Salary Info
</h4>
</div>
<div class="panel-body">
<form method="post" action="{{ route('employees.create') }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Pay Frequency<span>*</span></p>
<select name="payfrequency" id="payfrequency" class="form-control selectpicker" data-live-search="true" data-size="2" title="Select Pay Frequency" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="1">Monthly</option>
<option value="2">Weekly</option>
<option value="3">Daily</option>
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<a href="" data-toggle="modal" data-target="#createPayfrequency"><span>Add Pay Frequency</span></a>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Salary Amount<span>*</span> </p>
<div class="input-group-btn">
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
<span class="dropdown-label">USD</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-select pull-right">
<li class="active">
<a href="#"><input type="radio" value="USD" name="pay_unit" checked="">USD</a>
</li>
<li>
<a href="#"><input type="radio" value="GBP" name="pay_unit">GBP</a>
</li>
</ul>
<input type="number" id="appendedInput" class="input-sm form-control">
</div>
</div>
<div class=col-md-4 id="Middlename" style="width:20%;">
<p>Bank Branch Name </p>
<input name="bankBranch" type="text" class="form-control" id="bankBranch" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 id="Middlename" style="width:20%;">
<p>Account No. </p>
<input name="bankAcc" type="text" class="form-control" id="bankAcc" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div><!-- End of first row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 id="saccoName" style="width:20%;">
<p>Sacco Name </p>
<input name="saccoName" type="text" class="form-control" id="saccoName" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 id="saccoAccountno" style="width:20%;">
<p>Sacco Account No. </p>
<input name="saccoAccountno" type="text" class="form-control" id="saccoAccountno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div> <!-- End of second row -->
<div class=row style="padding:0px 5px 15px 10px">
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class="btn btn-info" style="padding: 5px 25px 5px 25px">Save</button>
</div>
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class=btn style="padding: 5px 25px 5px 25px">Cancel</button>
</div>
</div> <!-- End of button row -->
</form>
</div>
</div>
</div> <!---End of salary tabcontainer -->
<div class="col-md-6 tabcontainer training" id=training style="display:none;width:86.5%">
<div class=row style="padding:0px 5px 5px 10px">
<legend style="padding:25px 5px 5px 10px">Training and Certification</legend>
<div class="pull-right" style="margin:5px 20px 5px 10px;">
<a href="" class="btn btn-info btn-sm" data-toggle="modal" data-target="#createCertificate"><i class="fa fa-plus"></i>Add Certification</a>
</div>
</div>
<div class=row style="padding:0px 5px 5px 10px">
<div class="table-responsive" style="padding:0px 5px 5px 10px">
<table class="table table-striped m-b-sm datagrid">
@if(count($emergency)>0)
<thead>
<tr>
<th>Course Name</th>
<th>Course Level</th>
<th>Name of Institution</th>
<th>Cerification Name</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach($emergency as $contact)
<tr class="emergency_contact{{$emergency->id}}">
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<form action="" method="post" style=position:relative;float:right>
@csrf
@method('DELETE')
<a href=""><span class="btn btn-default btn-sm"><i class="fa fa-eye no-margin"></i></span></a>
<a href="" ><span class="btn btn-default"><i class="fa fa-edit no-margin"></i></span></a>
<button data-toggle="tooltip" data-placement="top" title="Delete" type="submit" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this item?');"><i class="fa fa-trash no-margin"></i></button>
</form>
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="2" class="text-center">Nothing to display</td>
</tr>
@endif
</tbody>
</table>
</div>
</div><!-- End of fifth row -->
</div><!--- End of training and Certification -->
</div> <!-- End of container -->
</section>
</section>
<!---Modals used on the page-->
<!-- Training and Certification Modal -->
@include('Modals/trainingCertification')
<!-- Emergency Contacts Modal -->
@include('Modals/emergencyContacts')
<!-- Dependants Modal -->
@include('Modals/dependants')
<!--PayFrequency Modal -->
@include('Modals/payFrequency')
<!-- Bootstrap -->
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
<script>
$("input").click(function(){
$(this).next().show();
$(this).next().hide();
});
// Javascript for rendering tablinks
$('#tabLinks').on('click', '.list-group a', function (e) {
clickEvent = true;
$('.list-group li').removeClass('active');
$(this).parent().addClass('active');
localStorage.setItem('tab', $(e.currentTarget).attr('href'));
});
$(function() {
var slide = localStorage.getItem('tab');
console.log(slide);
if (slide) {
$("a[href='" + slide + "']").click().tab('show');
}
});
function tabswitch(item) {
var divs = document.getElementsByClassName("tabcontainer");
for (var i = 0; i < divs.length; i++) {
divs[i].style.display = 'none';
}
var myDiv = item.href;
var target = myDiv.split("#");
document.getElementById(target[1]).style.display = "inline";
}
// Javascript for rendering input fields on set conditions
function inputfieldVisibility(that) {
if(that.value == "national") {
document.getElementById("nationaldocument").style.display = "inline";
document.getElementById("passportdocument").style.display = "none";
document.getElementById("militarydocument").style.display = "none";
}else if(that.value == "passport") {
document.getElementById("passportdocument").style.display = "inline";
document.getElementById("militarydocument").style.display = "none";
document.getElementById("nationaldocument").style.display = "none";
}else if(that.value == "military") {
document.getElementById("militarydocument").style.display = "inline";
document.getElementById("nationaldocument").style.display = "none";
document.getElementById("passportdocument").style.display = "none";
}else {
document.getElementById("nationaldocument").style.display = "none";
document.getElementById("passportdocument").style.display = "none";
document.getElementById("militarydocument").style.display = "none";
}
}
function ethnicVisibility(that) {
if (that.value == "kenyan") {
document.getElementById("ethnicfield").style.display = "inline";
}else{
document.getElementById("ethnicfield").style.display = "none";
}
}
function durationfieldVisibility(that) {
if (that.value == "casual"|| that.value == "probation" || that.value =="contract"|| that.value == "temporary") {
document.getElementById("duration").style.display = "block";
} else {
document.getElementById("duration").style.display = "none";
}
}
function relationfieldVisibility(that) {
if (that.value == "other") {
document.getElementById("other_relation").style.display = "block";
} else {
document.getElementById("other_relation").style.display = "none";
}
}
$(document).on('ready', function(){
});
</script>
@endsection
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
@section('header-include') @section('header-include')
...@@ -46,7 +50,12 @@ ...@@ -46,7 +50,12 @@
</div> </div>
<div class=row style="padding:0px 5px 5px 10px"> <div class=row style="padding:0px 5px 5px 10px">
<div class="table-responsive" style="padding:0px 5px 5px 10px"> <div class="table-responsive" style="padding:0px 5px 5px 10px">
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<table class="table table-striped m-b-sm datagrid"> <table class="table table-striped m-b-sm datagrid">
=======
<table class="table table-striped m-b-sm datagrid">
@if(count($employees) > 0)
>>>>>>> Storing employee info
<thead> <thead>
<tr> <tr>
<th>Action</th> <th>Action</th>
...@@ -56,6 +65,7 @@ ...@@ -56,6 +65,7 @@
<th>Phone No.</th> <th>Phone No.</th>
</tr> </tr>
</thead> </thead>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<tbody> <tbody>
<tr> <tr>
<td> <td>
...@@ -72,6 +82,27 @@ ...@@ -72,6 +82,27 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
=======
@foreach($employees as $employee)
<tbody>
<td>
<a href="{{ route('employees.edit',$employee->id)}}" ><span class="btn btn-default open-modal"><i class="fa fa-edit no-margin"></i></span></a>
</td>
<td>{{ $employee->employee_id }}</td>
<td>{{ $employee->first_name}}</td>
<td>{{ $employee->last_name}}</td>
<td>{{ $employee->email_address}}</td>
<td>{{ $employee->personal_phone}}</td>
</tr>
@endforeach
@else
<tr>
<td colspan="2" class="text-center">Nothing to display</td>
</tr>
@endif
</tbody>
</table>
>>>>>>> Storing employee info
</div> </div>
</div> </div>
</div> </div>
......
@extends('Layout.employees_master')
@section('title', 'Employees')
@section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style>
form {
border-radius: 5px;
width:100%;
background-color: #FFFFFF;
overflow: hidden;
}
p span {
color: #F00;
}
p {
margin: 0px;
font-weight: 500;
line-height: 2;
color:#333;
}
a {
text-decoration:inherit
}
.form-group {
overflow: hidden;
clear: both;
}
.form-control {
position:relative;
clear: both;
margin-top: 2px;
display:inline-inline;
margin-right: 10px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.panel-row {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
ul {
list-style-type: none;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetic"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{route('employees.index')}}">Employees</a></li>
<li><a href="{{ route('employees.edit',$employee->id) }}">Edit Employees</a></li>
<li class="active">Personal</li>
</ul>
@include('Layout.errors')
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item " ><a href="{{ route('employees.edit',$employee->id) }}">Employee Info</a></li>
<li class="list-group-item active"><a href="{{route('personal',$employee->id)}}">Personal</a></li>
<li class="list-group-item "><a href="{{route('salary',$employee->id)}}">Salary</a></li>
<li class="list-group-item "><a href="{{route('contact',$employee->id)}}">Contact</a></li>
</ul>
</div>
<div class=col-md-6 style="width:86.5%;">
<form method="post" action="{{ route('store_personal',$employee->id) }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Marital Status<span>*</span></p>
<select class="selectpicker" id="marital_status" name="marital_status" data-live-search="true" title="Select marital status" data-size="3" >
<option data-tokens="single" value="single">Single</option>
<option data-tokens="married" value="married">Married</option>
<option data-tokens="separated" value="separated">Separated</option>
<option data-tokens="divorced" value="divorced">Divorced</option>
<option data-tokens="widow_widower" value="widow_widower">Widow/Widower</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Nationality <span>*</span></p>
<select name="nationality" class="form-control selectpicker" data-live-search="true" data-size="3" title="Select nationality" onchange="ethnicVisibility(this);" id="nationality" class="form-control" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="kenyan">Kenyan</option>
<option value="ugandan">Ugandan</option>
<option value="tanzanian">Tanzanian</option>
<option value="american">American</option>
<option value="german">German</option>
<option value="dutch">Dutch</option>
<option value="russian">Russian</option>
<option value="spanish">Spanish</option>
</select>
</div>
<div class=col-md-4 id="ethnicfield" style="width:20%; display: none;">
<p>Ethnic Code <span>*</span></p>
<select name="ethnicity" id="ethnicity" class="form-control selectpicker" data-live-search="true" data-size="3" multiple data-max-options="2" title="Select ethnicity" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="Abaluhya">Abaluhya</option>
<option value="Abagusii">Abagusii</option>
<option value="Abakuria">Abakuria</option>
<option value="Aembu">Aembu</option>
<option value="Agikuyu">Agikuyu</option>
<option value="Akamba">Akamba</option>
<option value="Ambeere">Ambeere</option>
<option value="Ameru">Ameru</option>
<option value="Bajuni">Bajuni</option>
<option value="Boni">Boni</option>
<option value="Borana Oromo">Borana Oromo</option>
<option value="Bukusu">Bukusu</option>
<option value="Chonyi">Chonyi</option>
<option value="Digo">Digo</option>
<option value="Dorobo">Dorobo</option>
<option value="El Molo">El Molo</option>
<option value="Gabra">Gabra</option>
<option value="Giriama">Giriama</option>
<option value="Idakho">Idakho</option>
<option value="Ilchamus">Ilchamus</option>
<option value="Indian">Indian</option>
<option value="Isukha">Isukha</option>
<option value="Jibana">Jibana</option>
<option value="Kalenjin">Kalenjin</option>
<option value="kipsigis">kipsigis</option>
<option value="Kuria">Kuria</option>
<option value="Luo">Luo</option>
<option value="Maasai">Maasai</option>
<option value="Maragoli">Maragoli</option>
<option value="Mijikenda">Mijikenda</option>
<option value="Okiek">Okiek</option>
<option value="Orma">Orma</option>
<option value="Pokot">Pokot</option>
<option value="Rendille">Rendille</option>
<option value="Sakuye">Sakuye</option>
<option value="Samburu">Samburu</option>
<option value="Suba">Suba</option>
<option value="Swahili">Swahili</option>
<option value="Teso">Teso</option>
<option value="Turkana">Turkana</option>
<option value="Yaaku">Yaaku</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Date of Birth <span>*</span></p>
<input name="date_of_birth" type="date" class="form-control" id="dob" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required>
</div>
<div class=col-md-4 style="width:20%">
<p>Identity Documents<span>*</span> </p>
<select class="form-control selectpicker" name="identity_document" data-live-search="true" title="Select Identity Document" onchange="inputfieldVisibility(this);" id="identitydocument" style="background-color:white;">
<option value="national">National ID</option>
<option value="passport">Passport No</option>
<option value="military">Military ID</option>
</select>
</div>
</div><!-- End of first row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 id="nationaldocument" style="width:20%; display: none;">
<p>National ID No.</p>
<input name="national_id" type="text" class="form-control" id="extension" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 id="passportdocument" style="width:20%; display: none;">
<p>Passport No.</p>
<input name="passport_no" type="text" class="form-control" id="extension" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 id="militarydocument" style="width:20%; display: none;">
<p>Military ID No.</p>
<input name="military_id" type="text" class="form-control" id="extension" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 style="width:20%">
<p>Language</p>
<select class="dropup selectpicker" name="language" data-dropup--auto="false" multiple data-max-options="5" data-size="3" data-live-search="true" title="Select a language">
<option value="english">English</option>
<option value="swahili">Swahili</option>
<option value="deutsch">Deutch</option>
<option value="french">French</option>
<option value="spanish">Spanish</option>
<option value="chinese">Chinese</option>
<option value="japanese">Japanese</option>
<option value="russian">Russian</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Blood Group <span>*</span></p>
<select class="dropup form-control selectpicker" name="blood_group" data-dropup--auto="false" title="Select blood group" data-size="3" data-live-search="true">
<option value="A+">A +</option>
<option value="A-">A -</option>
<option value="AB+">AB +</option>
<option value="AB-">AB -</option>
<option value="B+">B +</option>
<option value="B-">B -</option>
<option value="O+">O +</option>
<option value="O-">O -</option>
</select>
</div>
</div> <!-- End of second row -->
<div class=row style="padding:0px 5px 15px 10px">
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class="btn btn-info"name="personalinfo_form" style="padding: 5px 25px 5px 25px">Save</button>
</div>
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class=btn style="padding: 5px 25px 5px 25px">Cancel</button>
</div>
</div> <!-- End of button row -->
</form>
</div>
</div>
</section>
</section>
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
<script>
$("input").click(function(){
$(this).next().show();
$(this).next().hide();
});
// Javascript for rendering tablinks
$('#tabLinks').on('click', '.list-group a', function (e) {
clickEvent = true;
$('.list-group li').removeClass('active');
$(this).parent().addClass('active');
localStorage.setItem('tab', $(e.currentTarget).attr('href'));
});
$(function() {
var slide = localStorage.getItem('tab');
console.log(slide);
if (slide) {
$("a[href='" + slide + "']").click().tab('show');
}
});
function tabswitch(item) {
var divs = document.getElementsByClassName("tabcontainer");
for (var i = 0; i < divs.length; i++) {
divs[i].style.display = 'none';
}
var myDiv = item.href;
var target = myDiv.split("#");
document.getElementById(target[1]).style.display = "inline";
}
// Javascript for rendering input fields on set conditions
function inputfieldVisibility(that) {
if(that.value == "national") {
document.getElementById("nationaldocument").style.display = "inline";
document.getElementById("passportdocument").style.display = "none";
document.getElementById("militarydocument").style.display = "none";
}else if(that.value == "passport") {
document.getElementById("passportdocument").style.display = "inline";
document.getElementById("militarydocument").style.display = "none";
document.getElementById("nationaldocument").style.display = "none";
}else if(that.value == "military") {
document.getElementById("militarydocument").style.display = "inline";
document.getElementById("nationaldocument").style.display = "none";
document.getElementById("passportdocument").style.display = "none";
}else {
document.getElementById("nationaldocument").style.display = "none";
document.getElementById("passportdocument").style.display = "none";
document.getElementById("militarydocument").style.display = "none";
}
}
function ethnicVisibility(that) {
if (that.value == "kenyan") {
document.getElementById("ethnicfield").style.display = "inline";
}else{
document.getElementById("ethnicfield").style.display = "none";
}
}
function durationfieldVisibility(that) {
if (that.value == "casual"|| that.value == "probation" || that.value =="contract"|| that.value == "temporary") {
document.getElementById("duration").style.display = "block";
} else {
document.getElementById("duration").style.display = "none";
}
}
function relationfieldVisibility(that) {
if (that.value == "other") {
document.getElementById("other_relation").style.display = "block";
} else {
document.getElementById("other_relation").style.display = "none";
}
}
$(document).on('ready', function(){
});
</script>
@endsection
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
@extends('Layout.Employeesmaster') @extends('Layout.Employeesmaster')
=======
@extends('Layout.employees_master')
>>>>>>> Storing employee info
@section('title', 'Employees') @section('title', 'Employees')
...@@ -75,6 +79,7 @@ form { ...@@ -75,6 +79,7 @@ form {
</ul> </ul>
@include('Layout.errors') @include('Layout.errors')
@include('Layout.messages') @include('Layout.messages')
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<div class="container-fluid" style="margin-bottom:0px;"> <div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%"> <div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group"> <ul class="list-group">
...@@ -88,6 +93,11 @@ form { ...@@ -88,6 +93,11 @@ form {
<form method="post" action="{{ route('employees.store') }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;"> <form method="post" action="{{ route('employees.store') }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }} {{ csrf_field() }}
<div class="tabcontainer employeeinfo" id=employeeinfo style= > <div class="tabcontainer employeeinfo" id=employeeinfo style= >
=======
<div class=col-md-6 style="width:86.5%;">
<form method="post" action="{{ route('employees.store') }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
>>>>>>> Storing employee info
<fieldset> <fieldset>
<legend>Employee Info</legend> <legend>Employee Info</legend>
<div class=row style="padding:0px 5px 5px 10px"> <div class=row style="padding:0px 5px 5px 10px">
...@@ -134,7 +144,11 @@ form { ...@@ -134,7 +144,11 @@ form {
<div class=row style="padding:0px 5px 5px 10px"> <div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Business Unit</p> <p>Business Unit</p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<select name="businessunit" id="businessunit" class="form-control selectpicker" data-live-search="true" title="Select Business Unit" style="width:15em;" data-size="5" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'> <select name="businessunit" id="businessunit" class="form-control selectpicker" data-live-search="true" title="Select Business Unit" style="width:15em;" data-size="5" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
=======
<select name="business_unit" id="businessunit" class="form-control selectpicker" data-live-search="true" title="Select Business Unit" style="width:15em;" data-size="5" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
>>>>>>> Storing employee info
<option value="0">All Business Units</option> <option value="0">All Business Units</option>
@foreach($businessunits as $businessunit) @foreach($businessunits as $businessunit)
<option value="{{ $businessunit->id }}">{{ $businessunit->business_unit }}</option> <option value="{{ $businessunit->id }}">{{ $businessunit->business_unit }}</option>
...@@ -158,7 +172,11 @@ form { ...@@ -158,7 +172,11 @@ form {
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Employee Code<span>*</span></p> <p>Employee Code<span>*</span></p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<select name="employeecode" id="employeecode" class="form-control selectpicker" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'> <select name="employeecode" id="employeecode" class="form-control selectpicker" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
=======
<select name="employee_code" id="employeecode" class="form-control selectpicker" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
>>>>>>> Storing employee info
<option value="1">Branch Code</option> <option value="1">Branch Code</option>
<option value="2">Department Code</option> <option value="2">Department Code</option>
<option value="3">None</option> <option value="3">None</option>
...@@ -180,12 +198,20 @@ form { ...@@ -180,12 +198,20 @@ form {
<div class=row style="padding:0px 5px 5px 10px"> <div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Personal PhoneNo. <span>*</span></p> <p>Personal PhoneNo. <span>*</span></p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<input name="personal_phoneno" type="text" class="form-control" id="personal_phoneno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;" <input name="personal_phoneno" type="text" class="form-control" id="personal_phoneno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
=======
<input name="personal_phone_no" type="text" class="form-control" id="personal_phoneno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
>>>>>>> Storing employee info
required> required>
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Work PhoneNo. </p> <p>Work PhoneNo. </p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<input name="work_phoneno" type="text" class="form-control" id="work_phoneno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"> <input name="work_phoneno" type="text" class="form-control" id="work_phoneno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
=======
<input name="work_phone_no" type="text" class="form-control" id="work_phoneno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
>>>>>>> Storing employee info
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Extension</p> <p>Extension</p>
...@@ -193,7 +219,11 @@ form { ...@@ -193,7 +219,11 @@ form {
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>KRA PIN <span>*</span></p> <p>KRA PIN <span>*</span></p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<input name="krapin" type="text" class="form-control" id="krapin" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;" <input name="krapin" type="text" class="form-control" id="krapin" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
=======
<input name="kra_pin" type="text" class="form-control" id="krapin" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
>>>>>>> Storing employee info
required> required>
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
...@@ -216,7 +246,11 @@ form { ...@@ -216,7 +246,11 @@ form {
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Reporting Manager <span>*</span></p> <p>Reporting Manager <span>*</span></p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<select name="reportingManager" id="reportingManager" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Reporting Manager" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'> <select name="reportingManager" id="reportingManager" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Reporting Manager" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
=======
<select name="reporting_manager" id="reporting_manager" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Reporting Manager" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
>>>>>>> Storing employee info
@foreach($managers as $manager) @foreach($managers as $manager)
<option value="{{ $manager->id }}">{{ $manager->name }}</option> <option value="{{ $manager->id }}">{{ $manager->name }}</option>
@endforeach @endforeach
...@@ -238,7 +272,11 @@ form { ...@@ -238,7 +272,11 @@ form {
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Job Title </p> <p>Job Title </p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<select name="jobtitle" id="jobtitle" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Job Title" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'> <select name="jobtitle" id="jobtitle" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Job Title" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
=======
<select name="job_title" id="jobtitle" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Job Title" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
>>>>>>> Storing employee info
@foreach($jobtitles as $jobtitle) @foreach($jobtitles as $jobtitle)
<option value="{{ $jobtitle->id }}">{{ $jobtitle->job_title }}</option> <option value="{{ $jobtitle->id }}">{{ $jobtitle->job_title }}</option>
@endforeach @endforeach
...@@ -253,7 +291,11 @@ form { ...@@ -253,7 +291,11 @@ form {
<div class=row style="padding:0px 5px 5px 10px"> <div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Employment Status <span>*</span></p> <p>Employment Status <span>*</span></p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<select name="employmentstatus" id="employmentstatus" class="form-control selectpicker" data-live-search="true" data-size="5" onchange="durationfieldVisibility(this);" title="Select employment status." style="width:15em;"> <select name="employmentstatus" id="employmentstatus" class="form-control selectpicker" data-live-search="true" data-size="5" onchange="durationfieldVisibility(this);" title="Select employment status." style="width:15em;">
=======
<select name="employment_status" id="employmentstatus" class="form-control selectpicker" data-live-search="true" data-size="5" onchange="durationfieldVisibility(this);" title="Select employment status." style="width:15em;">
>>>>>>> Storing employee info
@foreach($employment_status as $status) @foreach($employment_status as $status)
<option value="{{ $status->employment_status }}">{{ $status->employment_status }}</option> <option value="{{ $status->employment_status }}">{{ $status->employment_status }}</option>
@endforeach @endforeach
...@@ -265,10 +307,17 @@ form { ...@@ -265,10 +307,17 @@ form {
<div class=col-md-4 id="duration" style="display: none;width:20%"> <div class=col-md-4 id="duration" style="display: none;width:20%">
<p>Duration <span>*</span></p> <p>Duration <span>*</span></p>
<select name="duration" id="duration" class="dropup selectpicker" data-live-search="true" data-size="5" title="Select Duration" style="width:15em;" > <select name="duration" id="duration" class="dropup selectpicker" data-live-search="true" data-size="5" title="Select Duration" style="width:15em;" >
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<option value="1">1 Month</option> <option value="1">1 Month</option>
<option value="2">3 Months</option> <option value="2">3 Months</option>
<option value="3">6 Months</option> <option value="3">6 Months</option>
<option value="4">1 Year</option> <option value="4">1 Year</option>
=======
<option value="1 month">1 Month</option>
<option value="3 months">3 Months</option>
<option value="6 months" >6 Months</option>
<option value="1 year">1 Year</option>
>>>>>>> Storing employee info
</select> </select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;"> <div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Duration</span> <span>Add Duration</span>
...@@ -276,17 +325,29 @@ form { ...@@ -276,17 +325,29 @@ form {
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Years of Experience <span>*</span></p> <p>Years of Experience <span>*</span></p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<input name="yearsofexperience" type="text" class="form-control" id="yearsofexperience" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;" <input name="yearsofexperience" type="text" class="form-control" id="yearsofexperience" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
=======
<input name="years_of_experience" type="text" class="form-control" id="yearsofexperience" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
>>>>>>> Storing employee info
required> required>
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Date of Joining <span>*</span></p> <p>Date of Joining <span>*</span></p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<input name="dateofjoining" type="date" class="form-control" id="dateofjoining" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;" <input name="dateofjoining" type="date" class="form-control" id="dateofjoining" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
=======
<input name="date_of_joining" type="date" class="form-control" id="dateofjoining" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
>>>>>>> Storing employee info
required> required>
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Date of Leaving </p> <p>Date of Leaving </p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<input name="dateofleaving" type="date" class="form-control" id="dateofleaving" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;" > <input name="dateofleaving" type="date" class="form-control" id="dateofleaving" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;" >
=======
<input name="date_of_leaving" type="date" class="form-control" id="dateofleaving" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;" >
>>>>>>> Storing employee info
</div> </div>
</div><!-- End of fifth row --> </div><!-- End of fifth row -->
...@@ -306,6 +367,7 @@ form { ...@@ -306,6 +367,7 @@ form {
<div class="disabilityinfo row" style="padding:0px 5px 5px 10px;height:125px"> <div class="disabilityinfo row" style="padding:0px 5px 5px 10px;height:125px">
<div class=col-md-4 style="width:20%;"> <div class=col-md-4 style="width:20%;">
<p>Disability Type </p> <p>Disability Type </p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<select name="disabilityType" id="disabilityType" class="dropdown selectpicker" data-dropup--auto="false" title="Select Disability" data-size="2" data-live-search="true" > <select name="disabilityType" id="disabilityType" class="dropdown selectpicker" data-dropup--auto="false" title="Select Disability" data-size="2" data-live-search="true" >
<option value="1">Blindness and Visual Impairment</option> <option value="1">Blindness and Visual Impairment</option>
<option value="2">Hearing Impairments</option> <option value="2">Hearing Impairments</option>
...@@ -315,15 +377,34 @@ form { ...@@ -315,15 +377,34 @@ form {
<option value="6">Speech or language impairments</option> <option value="6">Speech or language impairments</option>
<option value="7">Health Impairments</option> <option value="7">Health Impairments</option>
<option value="8">Other</option> <option value="8">Other</option>
=======
<select name="disability_type" id="disabilityType" class="dropdown selectpicker" data-dropup--auto="false" title="Select Disability" data-size="2" data-live-search="true" >
<option value="Blindness and Visual Impairment">Blindness and Visual Impairment</option>
<option value="Hearing Impairments">Hearing Impairments</option>
<option value="Mental illness or Emotional disturbances">Mental illness or Emotional disturbances</option>
<option value="Learning disabilities">Learning disabilities</option>
<option value="Mobility or Orthopedic disability">Mobility or Orthopedic disability</option>
<option value="Speech or language impairments">Speech or language impairments</option>
<option value="Health Impairments">Health Impairments</option>
<option value="Other">Other</option>
>>>>>>> Storing employee info
</select> </select>
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Description </p> <p>Description </p>
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
<textarea name="disabilityDescription" id=disabilityDescription class="form-control inputstl" rows="3"></textarea> <textarea name="disabilityDescription" id=disabilityDescription class="form-control inputstl" rows="3"></textarea>
</div> </div>
<div class=col-md-4 style="width:20%"> <div class=col-md-4 style="width:20%">
<p>Exemption Certificate </p> <p>Exemption Certificate </p>
<input type="file" name="exemptionCert" class="form-control" style="width:15em;" > <input type="file" name="exemptionCert" class="form-control" style="width:15em;" >
=======
<textarea name="disability_description" id=disabilityDescription class="form-control inputstl" rows="3"></textarea>
</div>
<div class=col-md-4 style="width:20%">
<p>Exemption Certificate </p>
<input type="file" name="exemption_certificate" class="form-control" style="width:15em;" >
>>>>>>> Storing employee info
</div> </div>
</div><!-- End of DisabilityInfo row --> </div><!-- End of DisabilityInfo row -->
......
@extends('Layout.employees_master')
@section('title', 'Employees')
@section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style>
form {
border-radius: 5px;
width:100%;
background-color: #FFFFFF;
overflow: hidden;
}
p span {
color: #F00;
}
p {
margin: 0px;
font-weight: 500;
line-height: 2;
color:#333;
}
a {
text-decoration:inherit
}
.form-group {
overflow: hidden;
clear: both;
}
.form-control {
position:relative;
clear: both;
margin-top: 2px;
display:inline-inline;
margin-right: 10px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.panel-row {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
ul {
list-style-type: none;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetic"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{route('employees.index')}}}">Employees</a></li>
<li><a href="{{route('employees.edit',$employee->id)}}">Edit Employees</a></li>
<li class="active">Salary</li>
</ul>
@include('Layout.errors')
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item " ><a href="{{ route('employees.edit',$employee->id) }}">Employee Info</a></li>
<li class="list-group-item "><a href="{{route('personal',$employee->id)}}">Personal</a></li>
<li class="list-group-item active"><a href="{{route('salary',$employee->id)}}">Salary</a></li>
<li class="list-group-item "><a href="{{route('contact',$employee->id)}}">Contact</a></li>
</ul>
</div>
<div class=col-md-6 style="width:86.5%;">
<form method="post" action="{{ route('store_salary',$employee->id) }}" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Pay Frequency<span>*</span></p>
<select name="pay_frequency" id="payfrequency" class="form-control selectpicker" data-live-search="true" data-size="2" title="Select Pay Frequency" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="monthly">Monthly</option>
<option value="weekly">Weekly</option>
<option value="daily">Daily</option>
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<a href="" data-toggle="modal" data-target="#createPayfrequency"><span>Add Pay Frequency</span></a>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Salary Amount<span>*</span> </p>
<div class="input-group-btn">
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
<span class="dropdown-label">USD</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-select pull-right">
<li class="active">
<a href="#"><input type="radio" value="USD" name="pay_unit" checked="">USD</a>
</li>
<li>
<a href="#"><input type="radio" value="GBP" name="pay_unit">GBP</a>
</li>
</ul>
<input type="number" name="salary_amount" id="appendedInput" class="input-sm form-control">
</div>
</div>
<div class=col-md-4 id="Middlename" style="width:20%;">
<p>Bank Branch Name </p>
<input name="bank_branch_name" type="text" class="form-control" id="bankBranch" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 id="Middlename" style="width:20%;">
<p>Account No. </p>
<input name="bank_account_no" type="text" class="form-control" id="bankAcc" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div><!-- End of first row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 id="saccoName" style="width:20%;">
<p>Sacco Name </p>
<input name="sacco_name" type="text" class="form-control" id="saccoName" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
<div class=col-md-4 id="saccoAccountno" style="width:20%;">
<p>Sacco Account No. </p>
<input name="sacco_account_no" type="text" class="form-control" id="saccoAccountno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</div>
</div> <!-- End of second row -->
<div class=row style="padding:0px 5px 15px 10px">
<div class=col-md-4 style="width:20%; padding-top:15px">
<button class="btn btn-info"name="salary_form" style="padding: 5px 25px 5px 25px">Save</button>
</div>
<div class=col-md-4 style="width:20%; padding-top:15px">
<a href="{{route('employees.edit',$employee->id)}}"><button class=btn style="padding: 5px 25px 5px 25px">Cancel</button></a>
</div>
</form>
</div>
</div>
</section>
</section>
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
<script>
$("input").click(function(){
$(this).next().show();
$(this).next().hide();
});
$(document).on('ready', function(){
});
</script>
@endsection
@extends('Layout.employees_master')
@section('title', 'Employees')
@section('header-include')
<link rel="stylesheet" href="/js/select3/bootstrapselect.min.css" type="text/css"/>
<link rel="stylesheet" href="/js/select3/bootstrap.min.css" type="text/css"/>
<style>
form {
border-radius: 5px;
width:100%;
background-color: #FFFFFF;
overflow: hidden;
}
p span {
color: #F00;
}
p {
margin: 0px;
font-weight: 500;
line-height: 2;
color:#333;
}
a {
text-decoration:inherit
}
.form-group {
overflow: hidden;
clear: both;
}
.form-control {
position:relative;
clear: both;
margin-top: 2px;
display:inline-inline;
margin-right: 10px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.panel-row {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
ul {
list-style-type: none;
}
</style>
@endsection
@section('content')
<section id="content">
<section class="scrollable padder">
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
<li><a href="/kinetic"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{route('employees.index')}}">Employees</a></li>
<li class="active">Employee</li>
</ul>
@include('Layout.messages')
<div class="container-fluid" style="margin-bottom:0px;">
<div class=col-md-3 id=tabLinks style="width:13.5%">
<ul class="list-group">
<li class="list-group-item active" >Employee Info</a></li>
<li class="list-group-item "><a href="{{route('personal',$employee->id)}}">Personal</a></li>
<li class="list-group-item "><a href="{{route('salary',$employee->id)}}">Salary</a></li>
<li class="list-group-item "><a href="{{route('edit_contact',$employee->id)}}">Contact</a></li>
</ul>
</div>
<div class=col-md-6 style="width:86.5%;">
<div class="panel-body pull-in">
<div class="col-sm-3">
<div class="text-center">
<!-- employee picture -->
<img src="http://ssl.gstatic.com/accounts/ui/avatar_2x.png" class="avatar img-circle img-thumbnail" alt="avatar" width="150" height="100">
<h6>Upload a different photo...</h6>
<input type="file" class="text-center center-block file-upload">
</div>
<br>
</div>
<!-- End of col-3-->
<div class="col-sm-8">
<ul class="list-group">
<li class="list-group-item"> <p><i class="fa fa-user"></i> Employee name:{{$employee->prefix.':'.$employee->first_name.' '.$employee->last_name}}</p> </li>
<li class="list-group-item"><p><i class="fa fa-id-card"></i> Employee id: {{$employee-> employee_id}}</p> </li>
<li class="list-group-item"><p><i class="fa fa-envelope"></i> Employee Email: {{$employee-> email_address}}</p></li>
<li class="list-group-item"><p><i class="fa fa-phone"></i> Employee Contact no:{{$employee-> personal_phone}}</p> </li>
</ul>
</div>
<form method="post" action="#" enctype="multipart/form-data" class="form-inline" style="padding-top:10px;">
{{ csrf_field() }}
<fieldset>
<legend>Employee Info</legend>
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Prefix</p>
<select name="prefix" id="prefix" class="form-control selectpicker" data-live-search="true" data-size="2" title="Select prefix" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="Mr" @if($selected_prefix = $employee->prefix) {{'selected'}} @endif> Mr.</option>
<option value="Ms" @if($selected_prefix = $employee->prefix) {{'selected'}} @endif> Ms.</option>
<option value="Eng" @if($selected_prefix = $employee->prefix) {{'selected'}} @endif> Eng.</option>
<option value="Dr" @if($selected_prefix = $employee->prefix) {{'selected'}} @endif> Dr.</option>
<option value="Prof" @if($selected_prefix = $employee->prefix) {{'selected'}} @endif> Prof.</option>
</select>
</div>
<div class=col-md-4 id="Firstname" style="width:20%; display: inline;">
<p>First Name <span>*</span></p>
<input name="first_name" type="text" class="form-control" id="first_name" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->first_name }}">
</div>
<div class=col-md-4 id="Lastname" style="width:20%; display: inline;">
<p>Last Name <span>*</span></p>
<input name="last_name" type="text" class="form-control" id="last_name" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->last_name }}">
</div>
<div class=col-md-4 id="Middlename" style="width:20%; display: inline;">
<p>Middle Name </p>
<input name="middle_name" type="text" class="form-control" id="middle_name" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->middle_name }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Gender <span>*</span></p>
<label class="radio-inline">
<input type="radio" id="smt-fld-1-2" value="male" name="gender" required @if($selected_gender = $employee->gender) {{'selected'}} @endif >Male</label>
<label class="radio-inline">
<input type="radio" id="smt-fld-1-3" value="female" name="gender" required @if($selected_gender = $employee->gender) {{'selected'}} @endif>Female</label>
<label class="radio-inline">
<input type="radio" id="smt-fld-1-3" value="other" name="gender" required @if($selected_gender = $employee->gender) {{'selected'}} @endif>Other</label>
</div>
</div><!-- End of first row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Business Unit</p>
<select name="business_unit" id="businessunit" class="form-control selectpicker" data-live-search="true" title="Select Business Unit" style="width:15em;" data-size="5" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="0">All Business Units</option>
@foreach($businessunits as $businessunit)
<option value="{{$businessunit->id}}" @if($selected_business_unit = $businessunit->id) {{'selected'}} @endif>{{$businessunit->business_unit}}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span data-toggle="modal" data-target="#createCertificate">Add Branch</span>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Department <span>*</span></p>
<select name="department" id="department" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Department" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="0">All Departments</option>
@foreach($departments as $department)
<option value="{{$department->id}}" @if($selected_department = $department->id) {{'selected'}} @endif>{{$department->department_name }}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Department</span>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Employee Code<span>*</span></p>
<select name="employee_code" id="employeecode" class="form-control selectpicker" data-live-search="true" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="1" @if($selecteemployeecode = $employee->gender) {{'selected'}} @endif>Branch Code</option>
<option value="2" @if($selecteemployeecode = $employee->gender) {{'selected'}} @endif>Department Code</option>
<option value="3" @if($selecteemployeecode = $employee->gender) {{'selected'}} @endif>None</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Employee ID <span>*</span></p>
<input name="employee_id" type="text" class="form-control" id="employee_no" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->employee_id }}">
</div>
<div class=col-md-4 style="width:20%">
<p>E-mail <span>*</span></p>
<input name="email" type="email" class="form-control" id="email" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->email_address }}">
</div>
</div> <!-- End of second row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Personal PhoneNo. <span>*</span></p>
<input name="personal_phone_no" type="text" class="form-control" id="personal_phoneno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->personal_phone }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Work PhoneNo. </p>
<input name="work_phone_no" type="text" class="form-control" id="work_phoneno" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->work_phone }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Extension</p>
<input name="extension" type="text" class="form-control" id="extension" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->extension }}">
</div>
<div class=col-md-4 style="width:20%">
<p>KRA PIN <span>*</span></p>
<input name="kra_pin" type="text" class="form-control" id="krapin" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->kra_pin }}">
</div>
<div class=col-md-4 style="width:20%">
<p>NHIF No. <span>*</span></p>
<input name="nhif_no" type="text" class="form-control" id="nhif_no" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->nhif_number }}">
</div>
</div><!-- End of third row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>NSSF No. <span>*</span></p>
<input name="nssf_no" type="text" class="form-control" id="nssf_no" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->nssf_number }}">
</div>
<div class=col-md-4 style="width:20%">
<p>IFMIS No</p>
<input name="ifmis_no" type="text" class="form-control" id="ifmis_no" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->ifmis_number }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Reporting Manager <span>*</span></p>
<select name="reporting_manager" id="reportingManager" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Reporting Manager" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
@foreach($managers as $manager)
<option value="{{$manager->id}}" @if($selected_manager = $manager->id) {{'selected'}} @endif>{{$manager->name }}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Reporting Manager</span>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Role <span>*</span></p>
<select name="role" id="role" title="Select Role" class="form-control selectpicker" data-live-search="true" data-size="5" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
@foreach($roles as $role)
<option value="{{$role->id}}" @if($selected_role = $role->id) {{'selected'}} @endif>{{$role->role }}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Role</span>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Job Title </p>
<select name="job_title" id="jobtitle" class="form-control selectpicker" data-live-search="true" data-size="5" title="Select Job Title" style="width:15em;" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
@foreach($jobtitles as $jobtitle)
<option value="{{$jobtitle->id}}" @if($selected_job_title = $jobtitle->id) {{'selected'}} @endif>{{$jobtitle->job_title }}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Job Title</span>
</div>
</div>
</div><!-- End of fourth row -->
<div class=row style="padding:0px 5px 5px 10px">
<div class=col-md-4 style="width:20%">
<p>Employment Status <span>*</span></p>
<select name="employment_status" id="employmentstatus" class="form-control selectpicker" data-live-search="true" data-size="5" onchange="durationfieldVisibility(this);" title="Select employment status." style="width:15em;">
@foreach($employment_status as $status)
<option value="{{$status->employment_status}}" @if($selected_status = $status->employment_status) {{'selected'}} @endif>{{$status->employment_status }}</option>
@endforeach
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Employment Status</span>
</div>
</div>
<div class=col-md-4 id="duration" style="display: none;width:20%">
<p>Duration <span>*</span></p>
<select name="duration" id="duration" class="dropup selectpicker" data-live-search="true" data-size="5" title="Select Duration" style="width:15em;" >
<option value="1 month" @if($selected_duration=$employee->duration) {{'selected'}} @endif>1 Month</option>
<option value="3 months" @if($selected_duration=$employee->duration) {{'selected'}} @endif>3 Months</option>
<option value="6 months" @if($selected_duration=$employee->duration) {{'selected'}} @endif>6 Months</option>
<option value="1 year" @if($selected_duration=$employee->duration) {{'selected'}} @endif>1 Year</option>
</select>
<div style="float:left; margin-top: 2px;text-align: left;font-family: 'Roboto Regular',sans-serif;color: #208BBD;font-size: 12px;cursor: pointer;">
<span>Add Duration</span>
</div>
</div>
<div class=col-md-4 style="width:20%">
<p>Years of Experience <span>*</span></p>
<input name="years_of_experience" type="text" class="form-control" id="yearsofexperience" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->years_of_experience }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Date of Joining <span>*</span></p>
<input name="date_of_joining" type="date" class="form-control" id="dateofjoining" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->date_of_joining }}">
</div>
<div class=col-md-4 style="width:20%">
<p>Date of Leaving </p>
<input name="date_of_leaving" type="date" class="form-control" id="dateofleaving" style="border-radius: 0px 5px 5px 0px;border: 1px solid #eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
value="{{$employee->date_of_leaving }}">
</div>
</div><!-- End of fifth row -->
</fieldset>
<div class= container-row style="padding:0px 5px 5px 10px;">
<div class="row">
<div class=col-md-4 style="width:20%;padding-top:25px;">
<b> Is Employee Disabled?</b> <input type="checkbox" id="disabilitycheckbox" />
</div>
</div>
<div class="disability row" id=disabilityformrow style="padding:0px 5px 5px 10px;display:none;">
</fieldset>
<legend style="padding:30px 0px 0px 10px;">Disability</legend>
<div class="disabilityinfo row" style="padding:0px 5px 5px 10px;height:125px">
<div class=col-md-4 style="width:20%;">
<p>Disability Type </p>
<select name="disability_type" id="disabilityType" class="dropdown selectpicker" data-dropup--auto="false" title="Select Disability" data-size="2" data-live-search="true" >
<option value="Blindness and Visual Impairment" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Blindness and Visual Impairment</option>
<option value="Hearing Impairments" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Hearing Impairments</option>
<option value="Mental illness or Emotional disturbances" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Mental illness or Emotional disturbances</option>
<option value="Learning disabilities" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Learning disabilities</option>
<option value="Mobility or Orthopedic disability" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Mobility or Orthopedic disability</option>
<option value="Speech or language impairments" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Speech or language impairments</option>
<option value="Health Impairments" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Health Impairments</option>
<option value="Other" @if($selected_disability_type=$employee->disability_type) {{'selected'}} @endif>Other</option>
</select>
</div>
<div class=col-md-4 style="width:20%">
<p>Description </p>
<textarea name="disability_description" id=disabilityDescription class="form-control inputstl" rows="3"
value="{{$employee->disability_description }}"></textarea>
</div>
<div class=col-md-4 style="width:20%">
<p>Exemption Certificate </p>
<input type="file" name="exemption_certificate" class="form-control" style="width:15em;"value="{{$employee->exemption_certificate}}" >
</div>
</div><!-- End of DisabilityInfo row -->
</div><!-- End of Disability row -->
</fieldset>
</form>
</div><!-- End of container-row -->
</div> <!-- End of employeeinfo tabcontainer -->
</div>
</div>
</section>
</section>
@endsection
@section('footer-include')
<script src="/js/select3/bootstrapselect.min.js"></script>
<script src="/js/select3/bootstrap.min.js"></script>
@endsection
@section('j-script')
<!-- Jquery -->
<script>
//Javascript for rendering disability form if checkbox is checked
$('#disabilitycheckbox').change(function(){
if($(this).is(":checked"))
$('#disabilityformrow').fadeIn('slow');
else
$('#disabilityformrow').fadeOut('slow');
});
$(document).on('ready', function(){
});
</script>
@endsection
\ No newline at end of file
<!DOCTYPE html>
<html lang="en" class="app">
<head>
<meta charset="utf-8" />
<title>@yield('title', 'Kinetic HRM')</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="shortcut icon" href="/images/favicon.ico">
<link rel="stylesheet" href="/css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="/css/animate.css" type="text/css" />
<link rel="stylesheet" href="/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="/css/font.css" type="text/css" />
<link rel="stylesheet" href="/js/calendar/bootstrap_calendar.css" type="text/css" />
<link rel="stylesheet" href="/css/app.css" type="text/css" />
@yield('header-include')
<!--[if lt IE 9]>
<script src="/js/ie/html5shiv.js"></script>
<script src="/js/ie/respond.min.js"></script>
<script src="/js/ie/excanvas.js"></script>
<![endif]-->
</head>
<body class="">
<section class="vbox">
<header class="bg-dark dk header navbar navbar-fixed-top-xs">
<div class="navbar-header aside-md">
<a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen,open" data-target="#nav,html">
<i class="fa fa-bars"></i>
</a>
<a href="#" class="navbar-brand" data-toggle="fullscreen"><img src="/images/kinetic.png" class="m-r-sm"></a>
<a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".nav-user">
<i class="fa fa-cog"></i>
</a>
</div>
<ul class="nav navbar-nav hidden-xs">
<li class="dropdown">
<a href="#" class="dropdown-toggle dker" data-toggle="dropdown">
<i class="fa fa-reply"></i>
<span class="font-bold">Shortcut</span>
</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right m-n hidden-xs nav-user">
<li class="hidden-xs">
<a href="#" class="dropdown-toggle dk" data-toggle="dropdown">
<i class="fa fa-bell"></i>
<span class="badge badge-sm up bg-danger m-l-n-sm count">2</span>
</a>
<section class="dropdown-menu aside-xl">
<section class="panel bg-white">
<header class="panel-heading b-light bg-light">
<strong>You have <span class="count">2</span> notifications</strong>
</header>
<div class="list-group list-group-alt animated fadeInRight">
<a href="#" class="media list-group-item">
<span class="pull-left thumb-sm">
<img src="/images/avatar.jpg" alt="John said" class="img-circle">
</span>
<span class="media-body block m-b-none">
Use awesome animate.css<br>
<small class="text-muted">10 minutes ago</small>
</span>
</a>
<a href="#" class="media list-group-item">
<span class="media-body block m-b-none">
1.0 initial released<br>
<small class="text-muted">1 hour ago</small>
</span>
</a>
</div>
<footer class="panel-footer text-sm">
<a href="#" class="pull-right"><i class="fa fa-cog"></i></a>
<a href="#notes" data-toggle="class:show animated fadeInRight">See all the notifications</a>
</footer>
</section>
</section>
</li>
<li class="dropdown hidden-xs">
<a href="#" class="dropdown-toggle dker" data-toggle="dropdown"><i class="fa fa-fw fa-search"></i></a>
<section class="dropdown-menu aside-xl animated fadeInUp">
<section class="panel bg-white">
<form role="search">
<div class="form-group wrapper m-b-none">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search">
<span class="input-group-btn">
<button type="submit" class="btn btn-info btn-icon"><i class="fa fa-search"></i></button>
</span>
</div>
</div>
</form>
</section>
</section>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="thumb-sm avatar pull-left">
<img src="/images/avatar.jpg">
</span>
<!-- Authentication Links -->
@guest
<li class="nav-item">
<a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
</li>
@if (Route::has('register'))
<li class="nav-item">
<a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
</li>
@endif
@else
{{ Auth::user()->name }}
<b class="caret"></b>
</a>
<ul class="dropdown-menu animated fadeInRight">
<span class="arrow top"></span>
<li>
<a href="#">Settings</a>
</li>
<li>
<a href="profile.html">Profile</a>
</li>
<li>
<a href="#">
<span class="badge bg-danger pull-right">3</span>
Notifications
</a>
</li>
<li>
<a href="docs.html">Help</a>
</li>
<li class="divider"></li>
<li>
<a class="dropdown-item" href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
{{ __('Logout') }}
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
</li>
</ul>
</li>
</ul>
@endguest
</header>
<section>
<section class="hbox stretch">
<!-- .aside -->
<aside class="bg-dark lter aside-md hidden-print hidden-xs" id="nav">
<section class="vbox">
<header class="header bg-warning lter text-center clearfix">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-dark btn-icon" title="New project"><i class="fa fa-plus"></i></button>
<div class="btn-group hidden-nav-xs">
<button type="button" class="btn btn-sm btn-success dropdown-toggle" data-toggle="dropdown">
Switch Project
<span class="caret"></span>
</button>
<ul class="dropdown-menu text-left">
<li><a href="/allowances">Payroll</a></li>
<li><a href="/employees">Employees</a></li>
</ul>
</div>
</div>
</header>
<section class="w-f scrollable">
<div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="5px" data-color="#333333">
<!-- nav -->
<nav class="nav-primary hidden-xs">
<ul class="nav">
<li>
<a href=".">
<i class="fa fa-dashboard icon">
<b class="bg-danger"></b>
</i>
<span>Dashboard</span>
</a>
</li>
<li class="active">
<a href="." class="active">
<i class="fa fa-folder icon">
<b class="bg-danger"></b>
</i>
<span class="pull-right">
<i class="fa fa-angle-down text"></i>
<i class="fa fa-angle-up text-active"></i>
</span>
<span>Employees</span>
</a>
<ul class="nav lt">
<li style="list-style:none">
<a href="/employees">
<i class="fa fa-angle-right"></i>
<span>Employees</span>
</a>
</li>
</ul>
<ul class="nav lt">
<li class="active">
<a href="#" class="active">
<i class="fa fa-angle-down text"></i>
<i class="fa fa-angle-up text-active"></i>
<span>Employee Configurations</span>
</a>
<ul class="nav bg">
<li>
<a href="/branches">
<i class="fa fa-angle-right"></i>
<span>Branch</span>
</a>
</li>
<li>
<a href="/departments">
<i class="fa fa-angle-right"></i>
<span>Department</span>
</a>
</li>
<li>
<a href="/payfrequency">
<i class="fa fa-angle-right"></i>
<span>Pay Frequency</span>
</a>
</li>
<li>
<a href="/status">
<i class="fa fa-angle-right"></i>
<span>Employment Status</span>
</a>
</li>
<li>
<a href="/roles">
<i class="fa fa-angle-right"></i>
<span>Roles</span>
</a>
</li>
<li>
<a href="/jobtitle">
<i class="fa fa-angle-right"></i>
<span>Job Title</span>
</a>
</li>
<li>
<a href="/managers">
<i class="fa fa-angle-right"></i>
<span>Reporting Manager</span>
</a>
</li>
</ul>
</ul>
</li>
</nav>
<!-- / nav -->
</div>
</section>
<footer class="footer lt hidden-xs b-t b-dark">
<div id="chat" class="dropup">
<section class="dropdown-menu on aside-md m-l-n">
<section class="panel bg-white">
<header class="panel-heading b-b b-light">Active chats</header>
<div class="panel-body animated fadeInRight">
<p class="text-sm">No active chats.</p>
<p><a href="#" class="btn btn-sm btn-default">Start a chat</a></p>
</div>
</section>
</section>
</div>
<div id="invite" class="dropup">
<section class="dropdown-menu on aside-md m-l-n">
<section class="panel bg-white">
<header class="panel-heading b-b b-light">
John <i class="fa fa-circle text-success"></i>
</header>
<div class="panel-body animated fadeInRight">
<p class="text-sm">No contacts in your lists.</p>
<p><a href="#" class="btn btn-sm btn-facebook"><i class="fa fa-fw fa-facebook"></i> Invite from Facebook</a></p>
</div>
</section>
</section>
</div>
<a href="#nav" data-toggle="class:nav-xs" class="pull-right btn btn-sm btn-dark btn-icon">
<i class="fa fa-angle-left text"></i>
<i class="fa fa-angle-right text-active"></i>
</a>
<div class="btn-group hidden-nav-xs">
<button type="button" title="Chats" class="btn btn-icon btn-sm btn-dark" data-toggle="dropdown" data-target="#chat"><i class="fa fa-comment-o"></i></button>
<button type="button" title="Contacts" class="btn btn-icon btn-sm btn-dark" data-toggle="dropdown" data-target="#invite"><i class="fa fa-linkedin-square"></i></button>
</div>
</footer>
</section>
</aside>
<!-- /.aside -->
@yield('content')
</section>
</section>
</section>
<script src="/js/jquery.min.js"></script>
<!-- App -->
<script src="/js/app.kinetic.js"></script>
<script src="/js/slimscroll/jquery.slimscroll.min.js"></script>
@yield('footer-include')
<script src="/js/sortable/jquery.sortable.js"></script>
<script src="/js/app.plugin.js"></script>
<script>
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
let errorMessage = "Something went wrong. Contact system administrator";
</script>
@yield('j-script')
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en" class="app">
<head>
<meta charset="utf-8" />
<title>@yield('title', 'Kinetic HRM')</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="shortcut icon" href="/images/favicon.ico">
<link rel="stylesheet" href="/css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="/css/animate.css" type="text/css" />
<link rel="stylesheet" href="/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="/css/font.css" type="text/css" />
<link rel="stylesheet" href="/js/calendar/bootstrap_calendar.css" type="text/css" />
<link rel="stylesheet" href="/css/app.css" type="text/css" />
@yield('header-include')
<!--[if lt IE 9]>
<script src="/js/ie/html5shiv.js"></script>
<script src="/js/ie/respond.min.js"></script>
<script src="/js/ie/excanvas.js"></script>
<![endif]-->
</head>
<body class="">
<section class="vbox">
<header class="bg-dark dk header navbar navbar-fixed-top-xs">
<div class="navbar-header aside-md">
<a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen,open" data-target="#nav,html">
<i class="fa fa-bars"></i>
</a>
<a href="#" class="navbar-brand" data-toggle="fullscreen"><img src="/images/kinetic.png" class="m-r-sm"></a>
<a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".nav-user">
<i class="fa fa-cog"></i>
</a>
</div>
<ul class="nav navbar-nav hidden-xs">
<li class="dropdown">
<a href="#" class="dropdown-toggle dker" data-toggle="dropdown">
<i class="fa fa-reply"></i>
<span class="font-bold">Shortcut</span>
</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right m-n hidden-xs nav-user">
<li class="hidden-xs">
<a href="#" class="dropdown-toggle dk" data-toggle="dropdown">
<i class="fa fa-bell"></i>
<span class="badge badge-sm up bg-danger m-l-n-sm count">2</span>
</a>
<section class="dropdown-menu aside-xl">
<section class="panel bg-white">
<header class="panel-heading b-light bg-light">
<strong>You have <span class="count">2</span> notifications</strong>
</header>
<div class="list-group list-group-alt animated fadeInRight">
<a href="#" class="media list-group-item">
<span class="pull-left thumb-sm">
<img src="/images/avatar.jpg" alt="John said" class="img-circle">
</span>
<span class="media-body block m-b-none">
Use awesome animate.css<br>
<small class="text-muted">10 minutes ago</small>
</span>
</a>
<a href="#" class="media list-group-item">
<span class="media-body block m-b-none">
1.0 initial released<br>
<small class="text-muted">1 hour ago</small>
</span>
</a>
</div>
<footer class="panel-footer text-sm">
<a href="#" class="pull-right"><i class="fa fa-cog"></i></a>
<a href="#notes" data-toggle="class:show animated fadeInRight">See all the notifications</a>
</footer>
</section>
</section>
</li>
<li class="dropdown hidden-xs">
<a href="#" class="dropdown-toggle dker" data-toggle="dropdown"><i class="fa fa-fw fa-search"></i></a>
<section class="dropdown-menu aside-xl animated fadeInUp">
<section class="panel bg-white">
<form role="search">
<div class="form-group wrapper m-b-none">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search">
<span class="input-group-btn">
<button type="submit" class="btn btn-info btn-icon"><i class="fa fa-search"></i></button>
</span>
</div>
</div>
</form>
</section>
</section>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="thumb-sm avatar pull-left">
<img src="/images/avatar.jpg">
</span>
Michael Jackson
<b class="caret"></b>
</a>
<ul class="dropdown-menu animated fadeInRight">
<span class="arrow top"></span>
<li>
<a href="#">Settings</a>
</li>
<li>
<a href="profile.html">Profile</a>
</li>
<li>
<a href="#">
<span class="badge bg-danger pull-right">3</span>
Notifications
</a>
</li>
<li>
<a href="docs.html">Help</a>
</li>
<li class="divider"></li>
<li>
<a href="modal.lockme.html" data-toggle="ajaxModal" >Logout</a>
</li>
</ul>
</li>
</ul>
</header>
<section>
<section class="hbox stretch">
<!-- .aside -->
<aside class="bg-dark lter aside-md hidden-print hidden-xs" id="nav">
<section class="vbox">
<header class="header bg-warning lter text-center clearfix">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-dark btn-icon" title="New project"><i class="fa fa-plus"></i></button>
<div class="btn-group hidden-nav-xs">
<button type="button" class="btn btn-sm btn-success dropdown-toggle" data-toggle="dropdown">
Switch Project
<span class="caret"></span>
</button>
<ul class="dropdown-menu text-left">
<li><a href="/allowances">Payroll</a></li>
<li><a href="/employees">Employees</a></li>
</ul>
</div>
</div>
</header>
<section class="w-f scrollable">
<div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="5px" data-color="#333333">
<!-- nav -->
<nav class="nav-primary hidden-xs">
<ul class="nav">
<li>
<a href=".">
<i class="fa fa-dashboard icon">
<b class="bg-danger"></b>
</i>
<span>Dashboard</span>
</a>
</li>
<li class="active">
<a href="." class="active">
<i class="fa fa-folder icon">
<b class="bg-danger"></b>
</i>
<span class="pull-right">
<i class="fa fa-angle-down text"></i>
<i class="fa fa-angle-up text-active"></i>
</span>
<span>Payroll</span>
</a>
<ul class="nav lt">
<li class="active">
<a href="#" class="active">
<i class="fa fa-angle-down text"></i>
<i class="fa fa-angle-up text-active"></i>
<span>Payroll items</span>
</a>
<ul class="nav bg">
<li>
<a href="/allowances">
<i class="fa fa-angle-right"></i>
<span>Allowances</span>
</a>
</li>
<li>
<a href="/deductions">
<i class="fa fa-angle-right"></i>
<span>Deductions</span>
</a>
</li>
<li>
<a href="/relief">
<i class="fa fa-angle-right"></i>
<span>Relief</span>
</a>
</li>
<li>
<a href="/ranges">
<i class="fa fa-angle-right"></i>
<span>Range manager</span>
</a>
</li>
</ul>
</li>
<li>
<a href="#">
<i class="fa fa-angle-right"></i>
<span>Process payroll</span>
</a>
<ul class="nav bg">
{{--<li>
<a href="/processing_options">
<i class="fa fa-angle-right"></i>
<span>Processing options</span>
</a>
</li>
<li>
<a href="/payslip_structure">
<i class="fa fa-angle-right"></i>
<span>Payslip structure</span>
</a>
</li>--}}
<li>
<a href="/process_payroll/">
<i class="fa fa-angle-right"></i>
<span>Process payroll</span>
</a>
</li>
</ul>
</li>
<li>
<a href="/payslip">
<i class="fa fa-angle-right"></i>
<span>Payslip</span>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-angle-right"></i>
<span>Reports</span>
</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- / nav -->
</div>
</section>
<footer class="footer lt hidden-xs b-t b-dark">
<div id="chat" class="dropup">
<section class="dropdown-menu on aside-md m-l-n">
<section class="panel bg-white">
<header class="panel-heading b-b b-light">Active chats</header>
<div class="panel-body animated fadeInRight">
<p class="text-sm">No active chats.</p>
<p><a href="#" class="btn btn-sm btn-default">Start a chat</a></p>
</div>
</section>
</section>
</div>
<div id="invite" class="dropup">
<section class="dropdown-menu on aside-md m-l-n">
<section class="panel bg-white">
<header class="panel-heading b-b b-light">
John <i class="fa fa-circle text-success"></i>
</header>
<div class="panel-body animated fadeInRight">
<p class="text-sm">No contacts in your lists.</p>
<p><a href="#" class="btn btn-sm btn-facebook"><i class="fa fa-fw fa-facebook"></i> Invite from Facebook</a></p>
</div>
</section>
</section>
</div>
<a href="#nav" data-toggle="class:nav-xs" class="pull-right btn btn-sm btn-dark btn-icon">
<i class="fa fa-angle-left text"></i>
<i class="fa fa-angle-right text-active"></i>
</a>
<div class="btn-group hidden-nav-xs">
<button type="button" title="Chats" class="btn btn-icon btn-sm btn-dark" data-toggle="dropdown" data-target="#chat"><i class="fa fa-comment-o"></i></button>
<button type="button" title="Contacts" class="btn btn-icon btn-sm btn-dark" data-toggle="dropdown" data-target="#invite"><i class="fa fa-linkedin-square"></i></button>
</div>
</footer>
</section>
</aside>
<!-- /.aside -->
@yield('content')
</section>
</section>
</section>
<script src="/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="/js/bootstrap.js"></script>
<!-- App -->
<script src="/js/app.kinetic.js"></script>
<script src="/js/slimscroll/jquery.slimscroll.min.js"></script>
@yield('footer-include')
<script src="/js/sortable/jquery.sortable.js"></script>
<script src="/js/app.plugin.js"></script>
<script>
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
let errorMessage = "Something went wrong. Contact system administrator";
</script>
@yield('j-script')
</body>
</html>
\ No newline at end of file
...@@ -61,8 +61,25 @@ Route::get('/payslip/view_payslip', 'PayslipController@view_payslip'); ...@@ -61,8 +61,25 @@ Route::get('/payslip/view_payslip', 'PayslipController@view_payslip');
#EmployeesController #EmployeesController
Route::resource('/employees','EmployeeController')->middleware('admin'); Route::resource('/employees','EmployeeController')->middleware('admin');
Route::get('/export','EmployeeController@export')->name('export'); Route::get('/export','EmployeeController@export')->name('export');
<<<<<<< 8c98d41a67e0ec45e1fd64b04b779360352c1dcf
Route::post('/employees/import', 'EmployeeController@import')->name('import'); Route::post('/employees/import', 'EmployeeController@import')->name('import');
=======
Route::post('/import', 'EmployeeController@import')->name('import');
Route::get('/personal/{id}','EmployeeController@personal_info')->name('personal');
Route::post('/personal/{id}/store','EmployeeController@store_personal_info')->name('store_personal');
// Route::get('/personal/{id}','EmployeeController@show_personal_info')->name('show_personal');
Route::get('/personal/{id}/edit','EmployeeController@edit_personal_info')->name('edit_personal');
Route::post('/personal/{id}/update','EmployeeController@update_personal_info')->name('update_personal');
Route::get('/contact/{id}','EmployeeController@contact')->name('contact');
Route::post('/contact/{id}/store','EmployeeController@store_contact')->name('store_contact');
Route::get('/contact/{id}/edit','EmployeeController@edit_contact')->name('edit_contact');
Route::post('/contact/{id}/update','EmployeeController@update_contact')->name('update_contact');
Route::get('/salary/{id}','EmployeeController@salary')->name('salary');
Route::post('/salary/{id}/store','EmployeeController@store_salary')->name('store_salary');
Route::get('/salary/{id}/edit','EmployeeController@edit_salary')->name('edit_salary');
Route::post('/salary/{id}/update','EmployeeController@update_contact')->name('update_salary');
>>>>>>> Storing employee info
#PayfrequencyController #PayfrequencyController
Route::resource('/payfrequency', 'PayfrequencyController'); Route::resource('/payfrequency', 'PayfrequencyController');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment