mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
fix: normalize key for multiple selects
This commit is contained in:
parent
40ceba267a
commit
4bb5723767
1 changed files with 4 additions and 1 deletions
|
|
@ -690,7 +690,10 @@ HTML;
|
|||
<flux:checkbox label="{{ $label }}" value="{{ $value }}"/>
|
||||
@endforeach
|
||||
@else
|
||||
<flux:checkbox label="{{ $option }}" value="{{ $option }}"/>
|
||||
@php
|
||||
$key = mb_strtolower(str_replace(' ', '_', $option));
|
||||
@endphp
|
||||
<flux:checkbox label="{{ $option }}" value="{{ $key }}"/>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue