@extends('account.layout') @section('account-title') Settings @endsection @section('account-content') {!! breadcrumbs(['My Account' => Auth::user()->url, 'Settings' => 'account/settings']) !!}

Settings

Avatar

@if (Auth::user()->isStaff)
For admins - note that .GIF avatars leave a tmp file in the directory (e.g php2471.tmp). There is an automatic schedule to delete these files.
@endif {!! Form::open(['url' => 'account/avatar', 'files' => true]) !!}
{!! Form::label('avatar', 'Update Profile Image', ['class' => 'custom-file-label']) !!} {!! Form::file('avatar', ['class' => 'custom-file-input']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@if (config('lorekeeper.settings.allow_username_changes'))

Change Username

@if (config('lorekeeper.settings.username_change_cooldown'))
You can change your username once every {{ config('lorekeeper.settings.username_change_cooldown') }} days.
@if (Auth::user()->logs()->where('type', 'Username Change')->orderBy('created_at', 'desc')->first())
You last changed your username on {{ Auth::user()->logs()->where('type', 'Username Change')->orderBy('created_at', 'desc')->first()->created_at->format('F jS, Y') }}.
You will be able to change your username again on {{ Auth::user()->logs()->where('type', 'Username Change')->orderBy('created_at', 'desc')->first()->created_at->addDays(config('lorekeeper.settings.username_change_cooldown'))->format('F jS, Y') }}.
@endif @endif {!! Form::open(['url' => 'account/username']) !!}
{!! Form::text('username', Auth::user()->name, ['class' => 'form-control']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endif

Profile

{!! Form::open(['url' => 'account/profile']) !!}
{!! Form::label('pronouns', 'Preferred Pronouns') !!} {!! add_help('Your preferred pronouns will be displayed in various places across the site. This field can be changed or removed at anytime.') !!} {!! Form::text('pronouns', Auth::user()->profile->pronouns, ['class' => 'form-control']) !!}
{!! Form::label('text', 'Profile Text') !!} {!! Form::textarea('text', Auth::user()->profile->text, ['class' => 'form-control wysiwyg']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@if ($user_enabled == 1 || (Auth::user()->isStaff && $user_enabled == 2))

Home Location ({{ ucfirst($location_interval) }})

@if (Auth::user()->isStaff && $user_enabled == 2)
You can edit this because you are a staff member. Normal users cannot edit their own locations freely.
@endif @if ($char_enabled == 1)
Your characters will have the same home as you.
@endif @if (Auth::user()->canChangeLocation) {!! Form::open(['url' => 'account/location']) !!}
{!! Form::select('location', [0 => 'Choose a Location'] + $locations, isset(Auth::user()->home_id) ? Auth::user()->home_id : 0, ['class' => 'form-control selectize']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @else
You can't change your location right now. You last changed it on {!! format_date(Auth::user()->home_changed, false) !!}. Home locations can be changed {{ $location_interval }}.
@endif
@endif @if ($user_faction_enabled == 1 || (Auth::user()->isStaff && $user_faction_enabled == 2))

Faction ({{ ucfirst($location_interval) }})

@if (Auth::user()->isStaff && $user_faction_enabled == 2)
You can edit this because you are a staff member. Normal users cannot edit their own faction freely.
@endif @if ($char_faction_enabled == 1)
Your characters will have the same faction as you.
@endif @if (Auth::user()->canChangeFaction)

Please note that changing your faction will remove you from any special ranks and reset your faction standing!

{!! Form::open(['url' => 'account/faction']) !!}
{!! Form::select('faction', [0 => 'Choose a Faction'] + $factions, isset(Auth::user()->faction_id) ? Auth::user()->faction_id : 0, ['class' => 'form-control selectize']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @else
You can't change your faction right now. You last changed it on {!! format_date(Auth::user()->faction_changed, false) !!}. Faction can be changed {{ $location_interval }}.
@endif
@endif

Theme

Change the way the site looks for you!

{!! Form::open(['url' => 'account/theme']) !!}
{!! Form::select('theme', $themeOptions, Auth::user()->theme_id ? Auth::user()->theme_id : ($defaultTheme ? $defaultTheme->id : 0), ['class' => 'form-control']) !!}
{!! Form::select('decorator_theme', $decoratorThemes, Auth::user()->decorator_theme_id ? Auth::user()->decorator_theme_id : null, ['class' => 'form-control']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}

Birthday Publicity

{!! Form::open(['url' => 'account/dob']) !!}
{!! Form::select( 'birthday_setting', [ '0' => '0: No one can see your birthday.', '1' => '1: Members can see your day and month.', '2' => '2: Anyone can see your day and month.', '3' => '3: Full date public.', '4' => '4: Members can see the month.', '5' => '5: Anyone can see the month.', ], Auth::user()->settings->birthday_setting, ['class' => 'form-control'], ) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}

Email Address

Changing your email address will require you to re-verify your email address.

{!! Form::open(['url' => 'account/email']) !!}
{!! Form::text('email', Auth::user()->email, ['class' => 'form-control']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}

Change Password

{!! Form::open(['url' => 'account/password']) !!}
{!! Form::password('old_password', ['class' => 'form-control']) !!}
{!! Form::password('new_password', ['class' => 'form-control']) !!}
{!! Form::password('new_password_confirmation', ['class' => 'form-control']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}

Two-Factor Authentication

Two-factor authentication acts as a second layer of protection for your account. It uses an app on your phone-- such as Google Authenticator-- and information provided by the site to generate a random code that changes frequently.

Please note that two-factor authentication is only used when logging in directly to the site (with an email address and password), and not when logging in via an off-site account. If you log in using an off-site account, consider enabling two-factor authentication on that site instead!
@if (!isset(Auth::user()->two_factor_secret))

In order to enable two-factor authentication, you will need to scan a QR code with an authenticator app on your phone. Two-factor authentication will not be enabled until you do so and confirm by entering one of the codes provided by your authentication app.

{!! Form::open(['url' => 'account/two-factor/enable']) !!}
{!! Form::submit('Enable', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @elseif(isset(Auth::user()->two_factor_secret))

Two-factor authentication is currently enabled.

Disable Two-Factor Authentication

To disable two-factor authentication, you must enter a code from your authenticator app.

{!! Form::open(['url' => 'account/two-factor/disable']) !!}
{!! Form::text('code', null, ['class' => 'form-control']) !!}
{!! Form::submit('Disable', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @endif
@endsection @section('scripts') @parent @endsection