@extends('admin.layout') @section('admin-title') User Index @endsection @section('admin-content') {!! breadcrumbs(['Admin Panel' => 'admin', 'User Index' => 'admin/users', $user->name => 'admin/users/' . $user->name . '/edit']) !!}

User: {!! $user->displayName !!}

Basic Info

{!! Form::open(['url' => 'admin/users/' . $user->name . '/basic']) !!}
{!! Form::text('name', $user->name, ['class' => 'form-control']) !!}
@if (!$user->isAdmin && Auth::user()->canEditRank($user->rank)) {!! Form::select('rank_id', $ranks, $user->rank_id, ['class' => 'form-control']) !!} @else {!! Form::text('rank_id', $ranks[$user->rank_id], ['class' => 'form-control', 'disabled']) !!} @endif
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@if (Settings::get('WE_user_locations') > 0)

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

@if ($char_enabled == 1)
This user's characters will have the same home as them.
@endif {!! Form::open(['url' => 'admin/users/' . $user->name . '/location']) !!}
{!! Form::select('location', [0 => 'Choose a Location'] + $locations, isset($user->home_id) ? $user->home_id : 0, ['class' => 'form-control selectize']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endif @if (Settings::get('WE_user_factions') > 0)

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

@if ($char_faction_enabled == 1)
This user's characters will have the same faction as them.
@endif

Please note that changing a user's faction will remove them from any special ranks and reset their faction standing!

{!! Form::open(['url' => 'admin/users/' . $user->name . '/faction']) !!}
{!! Form::select('faction', [0 => 'Choose a Faction'] + $factions, isset($user->faction_id) ? $user->faction_id : 0, ['class' => 'form-control selectize']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@endif

Account

{!! Form::open(['url' => 'admin/users/' . $user->name . '/account']) !!}
{!! Form::text('email', $user->email, ['class' => 'form-control', 'disabled']) !!}
{!! Form::text('created_at', format_date($user->created_at, false), ['class' => 'form-control', 'disabled']) !!}
{!! Form::checkbox('is_fto', 1, $user->settings->is_fto, ['class' => 'form-check-input', 'id' => 'checkFTO']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}

Birthdate

@if ($user->birthday)

This user's birthday is set to {{ format_date($user->birthday, false) }}.

@if (!$user->checkBirthday)

This user is currently set to an underage DOB.

@endif @else

This user has not set their DOB.

@endif {!! Form::open(['url' => 'admin/users/' . $user->name . '/birthday']) !!}
{!! Form::date('dob', null, ['class' => 'form-control']) !!}
{!! Form::submit('Edit', ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!}

Aliases

As users are supposed to verify that they own their account(s) themselves, aliases cannot be edited directly. If a user wants to change their alias, clear it here and ask them to go through the verification process again while logged into their new account. If the alias is the user's primary alias, their remaining aliases will be checked to see if they have a valid primary alias. If they do, it will become their new primary alias.

@if ($user->aliases->count()) @foreach ($user->aliases as $alias)
{!! Form::text('alias', $alias->alias . '@' . $alias->siteDisplayName . (!$alias->is_visible ? ' (Hidden)' : ''), ['class' => 'form-control', 'disabled']) !!} {!! Form::open(['url' => 'admin/users/' . $user->name . '/alias/' . $alias->id]) !!}
{!! Form::submit('Clear Alias', ['class' => 'btn btn-danger']) !!}
{!! Form::close() !!}
@endforeach @else

No aliases found.

@endif
@endsection