| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | 2 | public function render($model = null) |
|
| 10 | { |
||
| 11 | 2 | $isVisible = parent::shouldRender($model); |
|
| 12 | 2 | if ($this->crud()->isSoftDeleteEnabled()) { |
|
| 13 | 1 | $isVisible = !$model->trashed(); |
|
| 14 | } |
||
| 15 | |||
| 16 | 2 | return view('jarboe::crud.actions.delete', [ |
|
| 17 | 2 | 'crud' => $this->crud(), |
|
| 18 | 2 | 'model' => $model, |
|
| 19 | 2 | 'isVisible' => $isVisible, |
|
| 20 | 2 | 'action' => $this, |
|
| 21 | ]); |
||
| 43 |