fix: normalize key for multiple selects

This commit is contained in:
Benjamin Nussbaum 2025-09-02 15:15:28 +02:00
parent 40ceba267a
commit 4bb5723767

View file

@ -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