Remove unneeded div
This commit is contained in:
@@ -2,23 +2,21 @@
|
||||
'name' => 'locale',
|
||||
'selected' => null,
|
||||
])
|
||||
<div>
|
||||
<select
|
||||
name="{{ $name }}"
|
||||
{{ $attributes->merge(['class' => 'select2', 'style' => 'width:100%']) }}
|
||||
aria-label="{{ $name }}"
|
||||
data-placeholder="{{ trans('localizations.select_language') }}"
|
||||
>
|
||||
<option value="" role="option">{{ trans('localizations.select_language') }}</option>'
|
||||
@foreach (trans('localizations.languages') as $abbr => $locale)
|
||||
<option
|
||||
value="{{ $abbr }}"
|
||||
role="option"
|
||||
@selected($abbr == $selected)
|
||||
aria-selected="{{ $abbr == $selected ? 'true' : 'false' }}"
|
||||
>
|
||||
{{ $locale }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<select
|
||||
name="{{ $name }}"
|
||||
{{ $attributes->merge(['class' => 'select2', 'style' => 'width:100%']) }}
|
||||
aria-label="{{ $name }}"
|
||||
data-placeholder="{{ trans('localizations.select_language') }}"
|
||||
>
|
||||
<option value="" role="option">{{ trans('localizations.select_language') }}</option>'
|
||||
@foreach (trans('localizations.languages') as $abbr => $locale)
|
||||
<option
|
||||
value="{{ $abbr }}"
|
||||
role="option"
|
||||
@selected($abbr == $selected)
|
||||
aria-selected="{{ $abbr == $selected ? 'true' : 'false' }}"
|
||||
>
|
||||
{{ $locale }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user