Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | public function handle($name, $values) |
||
9 | { |
||
10 | $string = ''; |
||
11 | foreach ($values as $key => $value) { |
||
12 | $string .= "<option value='$key'>$value</option>\n "; |
||
13 | } |
||
14 | |||
15 | return "<select wire:model='$name' class=\"form-control @error('$name') is-invalid @enderror\" id='input$name'> |
||
16 | $string |
||
17 | </select>"; |
||
20 |