|
|
@ -14,16 +14,27 @@ |
|
|
<div class="small" style="margin-top:10px">{{ config('app.name') }}</div> |
|
|
<div class="small" style="margin-top:10px">{{ config('app.name') }}</div> |
|
|
</a> |
|
|
</a> |
|
|
<div class="text-center" style="border-bottom: 1px solid #e7e7e7; padding-bottom: 10px"> |
|
|
<div class="text-center" style="border-bottom: 1px solid #e7e7e7; padding-bottom: 10px"> |
|
|
|
|
|
{{ trans('lang.lang') }} : |
|
|
{!! FormField::formButton( |
|
|
{!! FormField::formButton( |
|
|
['route' => 'users.profile.switch-lang', 'method' => 'patch'], |
|
|
|
|
|
|
|
|
[ |
|
|
|
|
|
'route' => 'users.profile.switch-lang', |
|
|
|
|
|
'method' => 'patch', |
|
|
|
|
|
'title' => auth()->user()->lang != 'en' ? trans('lang.switch_tooltip', ['lang' => trans('lang.en')]) : '' |
|
|
|
|
|
], |
|
|
'EN', |
|
|
'EN', |
|
|
['class' => 'btn btn-default btn-xs', 'id' => 'switch_lang_en'], |
|
|
|
|
|
|
|
|
['class' => 'btn btn-default btn-xs', 'id' => 'switch_lang_en'] |
|
|
|
|
|
+ (auth()->user()->lang == 'en' ? ['disabled' => 'disabled'] : []), |
|
|
['lang' => 'en'] |
|
|
['lang' => 'en'] |
|
|
) !!} |
|
|
) !!} |
|
|
{!! FormField::formButton( |
|
|
{!! FormField::formButton( |
|
|
['route' => 'users.profile.switch-lang', 'method' => 'patch'], |
|
|
|
|
|
|
|
|
[ |
|
|
|
|
|
'route' => 'users.profile.switch-lang', |
|
|
|
|
|
'method' => 'patch', |
|
|
|
|
|
'title' => auth()->user()->lang != 'id' ? trans('lang.switch_tooltip', ['lang' => trans('lang.id')]) : '' |
|
|
|
|
|
], |
|
|
'ID', |
|
|
'ID', |
|
|
['class' => 'btn btn-default btn-xs', 'id' => 'switch_lang_id'], |
|
|
|
|
|
|
|
|
['class' => 'btn btn-default btn-xs', 'id' => 'switch_lang_id'] |
|
|
|
|
|
+ (auth()->user()->lang == 'id' ? ['disabled' => 'disabled'] : []), |
|
|
['lang' => 'id'] |
|
|
['lang' => 'id'] |
|
|
) !!} |
|
|
) !!} |
|
|
</div> |
|
|
</div> |
|
|
|