コード例 #1
0
 /**
  * Show the profile contact details form.
  *
  * @Get("profile/salary/edit")
  * @Get("pim/employee-list/{id}/salary/edit")
  *
  * @param SalaryRequest $request
  * @param null $employee_id
  * @return \Illuminate\View\View
  * @author Bertrand Kintanar
  */
 public function showSalaryEditForm(SalaryRequest $request, $employee_id = null)
 {
     $employee = $this->employee->getEmployeeSalaryDetails($employee_id, $this->logged_user->employee->id);
     $salary = $this->salary_services->getSalaryDetails($employee);
     $this->data['employee'] = $employee;
     $this->data['tax'] = $salary['total_tax'];
     $this->data['salary'] = $salary['salary'];
     $this->data['tax_status'] = $salary['employee_status'];
     $this->data['disabled'] = '';
     $this->data['pim'] = $request->is('*pim/*') ? true : false;
     $this->data['pageTitle'] = $this->data['pim'] ? 'Employee Salary Details' : 'My Salary Details';
     return $this->template('pages.profile.salary.edit');
 }