{{-- 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
{{ Form::label($name, Ui::prettify(__('ui.' . $name)), ['class' => $labelClass]) }} @if ($horizental)
@endif
@foreach ($list as $id => $text) {{-- --}} @endforeach
@if ($horizental)
@endif
{{-- Custom Code 8/11/2022 --}} {{-- @if (Ui::keyset($attributes, 'layout') != null && $attributes['layout'] == 'v')
{{ Form::label($name, null, ['class' => 'control-label']) }}
@foreach ($list as $value => $text) @endforeach
@else
{{ Form::label($name, null, ['class' => 'col-2 col-form-label']) }}
@foreach ($list as $value => $text) @endforeach
@endif --}}