@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'; } $without_label = false; if (Ui::keyset($attributes, 'without_label') != null) { $without_label = $attributes['without_label']; } $list = ['' => 'Please Search']; if ($value != '') { $seo = \App\Models\Seo::find($value); if ($seo) { $list = [$seo->id => $seo->title]; } } if (isset($attributes['required']) && $attributes['required'] === true) { $labelClass .= ' required'; } $attributes["id"]=$name; @endphp
@if (!$without_label) {{ Form::label($name, Ui::prettify(__('ui.' . $name)), ['class' => $labelClass]) }} @endif @if ($horizental)
@endif {{ Form::select($name, $list, $value, array_merge(['class' => 'form-control'], $attributes)) }} @if ($horizental)
@endif