{{-- 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 = 'col-form-label'; } if (Ui::keyset($attributes, 'inline') != null && $attributes['inline'] == true) { $fieldListClass = 'list-inline mb-0'; $fieldLiClass = 'list-inline-item mt-2'; } else { $fieldListClass = 'list-unstyled mb-0'; $fieldLiClass = 'mt-2'; } if (isset($attributes['required']) && $attributes['required'] === true) { $labelClass .= ' required'; } @endphp
{{ Form::label($name, Ui::prettify(__('ui.' . $name)), ['class' => $labelClass]) }} @if ($horizental)
@endif @if ($horizental)
@endif
{{-- @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 --}}