| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function display($states = []) |
||
| 30 | { |
||
| 31 | $this->overrideStates($states); |
||
| 32 | |||
| 33 | return Admin::component('admin::grid.inline-edit.switch', [ |
||
| 34 | 'class' => 'grid-switch-' . str_replace('.', '-', $this->getName()), |
||
| 35 | 'key' => $this->getKey(), |
||
| 36 | 'resource' => $this->getResource(), |
||
| 37 | 'name' => $this->getPayloadName(), |
||
| 38 | 'states' => $this->states, |
||
| 39 | 'checked' => $this->states['on']['value'] == $this->getValue() ? 'checked' : '', |
||
| 40 | ]); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |