You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
792 B
23 lines
792 B
<div class="text-center" style="border-bottom: 1px solid #e7e7e7; padding-bottom: 10px">
|
|
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
{{-- {{ trans('lang.lang') }} : --}}
|
|
|
|
@foreach (['en', 'id', 'de'] as $langKey)
|
|
@break
|
|
{!! FormField::formButton(
|
|
[
|
|
'route' => 'users.profile.switch-lang',
|
|
'method' => 'patch',
|
|
'title' => auth()->user()->lang != $langKey ? trans('lang.switch_tooltip', ['lang' => trans('lang.'.$langKey)]) : ''
|
|
],
|
|
strtoupper($langKey),
|
|
['class' => 'btn btn-default btn-xs', 'id' => 'switch_lang_'.$langKey]
|
|
+ (auth()->user()->lang == $langKey ? ['disabled' => 'disabled'] : []),
|
|
['lang' => $langKey]
|
|
) !!}
|
|
@endforeach
|
|
</div>
|