| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function all() |
||
| 31 | { |
||
| 32 | $this->router->group(['middleware' => ['web', 'auth']], function($router) { |
||
| 33 | $router->resource('payroll', 'PayrollController'); |
||
| 34 | $router->resource('payslip', 'PayslipController'); |
||
| 35 | $router->resource('earning', 'EarningController'); |
||
| 36 | $router->resource('deduction', 'DeductionController'); |
||
| 37 | $router->get('recalculate/payslip/{id}', 'RecalculatePayslipController@__invoke')->name('payslip.recalculate'); |
||
| 38 | $router->get('recalculate/payroll/{id}', 'RecalculatePayrollController@__invoke')->name('payroll.recalculate'); |
||
| 39 | |||
| 40 | $router->get('setting', 'SettingController@__invoke')->name('setting.index'); |
||
| 41 | |||
| 42 | $this->router->group([ |
||
| 43 | 'namespace' => 'Setting', |
||
| 44 | 'prefix' => 'setting', |
||
| 45 | 'as' => 'setting.', |
||
| 46 | ], function($router) { |
||
| 47 | $router->resource('deduction', 'DeductionController'); |
||
| 48 | $router->resource('earning', 'EarningController'); |
||
| 49 | }); |
||
| 53 |