Made it so users can switch languages themselves

This commit is contained in:
stanjg 2018-05-04 13:08:41 +02:00
parent 9a06647435
commit 9ae25538c3
No known key found for this signature in database
GPG key ID: 27D9DF9D28935303
3 changed files with 20 additions and 2 deletions

View file

@ -90,6 +90,18 @@
</div>
</div>
</div>
<div class="row">
<div class="form-group col-xs-12">
<label for="language" class="control-label">@lang('base.account.language')</label>
<div>
<select name="language" id="language" class="form-control">
@foreach($languages as $key => $value)
<option value="{{ $key }}" {{ Auth::user()->language !== $key ?: 'selected' }}>{{ $value }}</option>
@endforeach
</select>
</div>
</div>
</div>
</div>
<div class="box-footer with-border">
{!! csrf_field() !!}