Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function toArray($request) |
||
19 | { |
||
20 | return [ |
||
21 | 'checkbox' => view('components.datatables.checkbox', [ |
||
22 | 'id' => 'role' . $this->resource->getKey(), |
||
23 | ])->render(), |
||
24 | 'name' => $this->resource->name, |
||
25 | 'guard_name' => $this->resource->guard_name, |
||
26 | 'action' => view('components.datatables.link', [ |
||
27 | 'url' => route('role.edit', $this->resource), |
||
28 | 'name' => __('Details'), |
||
29 | 'class' => 'btn btn-primary', |
||
30 | ])->render(), |
||
31 | ]; |
||
34 |