Exemplo n.º 1
0
 public function job($id, Empcontract $contracts)
 {
     $employee = Employee::findOrFail($id);
     //$contracts::whereEmployee_id($id)->first();
     $jobs = ['' => 'Select'] + Job::lists('name', 'id')->toArray();
     $emps = ['' => 'Select'] + Empstatus::lists('name', 'id')->toArray();
     $dept = ['' => 'Select'] + CompanyStructure::lists('name', 'id')->toArray();
     return view('backend.employees.job', compact('employee', 'jobs', 'emps', 'dept', 'contracts'));
 }
Exemplo n.º 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $emp = Empstatus::findOrFail($id)->delete();
     return Redirect::route('admin.setup.job.employment-status.index')->withFlashSuccess('Employment Status data was successfully Deleted.');
 }