{{-- This section is to assign variables in blade view, it's not defined in the layout --}} @php if ( Ui::keyset($attributes, 'layout') == null || (Ui::keyset($attributes, 'layout') != null && $attributes['layout'] == 'h') ) { $horizental = true; $row = ' row'; $labelClass = 'col-2 col-form-label'; } else { $horizental = false; $row = ''; $labelClass = 'control-label'; } if (Ui::keyset($attributes, 'inline') != null && $attributes['inline'] == true) { $fieldListClass = 'checkbox-inline'; } else { $fieldListClass = 'checkbox-list'; } if ($list == null) { $list = ['1' => '']; } if (isset($attributes['required']) && $attributes['required'] === true) { $labelClass .= ' required'; } @endphp