Ejemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $comp = CompanyStructure::findOrFail($id);
     $parents = ['' => '-'] + CompanyStructure::lists('name', 'id')->toArray();
     return view('backend.setup.company.edit', compact('comp', 'parents'));
 }
Ejemplo n.º 2
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'));
 }