| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | public function edit(Person $person) |
||
| 25 | { |
||
| 26 | if ($person->hasUser()) { |
||
| 27 | $this->form->meta( |
||
| 28 | 'email', |
||
| 29 | 'tooltip', |
||
| 30 | 'Email can only be edited via the user form' |
||
| 31 | )->readonly('email'); |
||
| 32 | } |
||
| 33 | $actions = ['back', 'update']; |
||
| 34 | return $this->form |
||
| 35 | ->value('company', optional($person->company())->id) |
||
| 36 | ->append('userId', optional($person->user)->id) |
||
| 37 | ->actions($actions) |
||
| 38 | ->edit($person); |
||
| 39 | } |
||
| 41 |