| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 13 |
| 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' => 'denomination_' . $this->resource->getKey(), |
||
| 23 | ])->render(), |
||
| 24 | 'name' => $this->resource->name, |
||
| 25 | 'value' => $this->resource->value, |
||
| 26 | 'type' => $this->resource->type->label, |
||
| 27 | 'quantity_per_bundle' => $this->resource->quantity_per_bundle, |
||
| 28 | 'action' => view('components.datatables.link', [ |
||
| 29 | 'url' => route('denomination.edit', $this->resource), |
||
| 30 | 'name' => __('Details'), |
||
| 31 | 'class' => 'btn btn-primary', |
||
| 32 | ])->render(), |
||
| 33 | ]; |
||
| 36 |