@php if (!isset($associations)) { $associations = getAssociations(); } if (!isset($currentValue)) { $currentValue = ''; } @endphp @foreach($associations as $association) id == $currentValue ? 'selected' : ''}}>{{ $association->name }} @endforeach