@extends("pages.user.userapp") @section("usercontent")

{{ trans('index.settings') }}

@include('errors.adminlook', ['relatedid' => $user->id, 'relatedtext' => trans('index.adminnote')])
{!! Form::open(array('action' => array('UserController@updatesettings', $user->username_slug), 'method' => 'POST', 'enctype' => 'multipart/form-data')) !!}
{{ trans('index.account') }}
@if(get_buzzy_config('UserEditUsername')=='yes' or Auth::user()->usertype=='Admin')
{!! Form::label('username', trans('index.username')) !!} {!! Form::text('username', $user->username, ['class' => 'cd-input','id' => 'username']) !!}
@endif @if(get_buzzy_config('UserEditEmail')=='yes' or Auth::user()->usertype=='Admin')
{!! Form::label('email', trans('index.email')) !!} {!! Form::text('email', Auth::user()->isDemoAdmin() ? 'HIDDEN ON DEMO' : $user->email, ['class' => 'cd-input','id' => 'email']) !!} @if(get_buzzy_config('UserVerifyEmail')=='yes')
@if ($user->hasVerifiedEmail()) verified {{__('This email is verified')}} @else remove_circle_outline {{__('Not verified')}} {{__('Click here to verify your email address.')}} @endif
@endif
@endif
{!! Form::label('password', trans('index.password')) !!} {!! Form::text('password', null, ['class' => 'cd-input','id' => 'password', 'placeholder' => trans('index.onlycgange')]) !!}
{!! Form::label('splash', trans('updates.usersplash')) !!}


{!! Form::label('icon', trans('updates.useravatar')) !!}

{{ trans('index.details') }}
{!! Form::label('name', trans('index.fullname')) !!} {!! Form::text('name', $user->name, ['class' => 'cd-input','id' => 'name']) !!}
{!! Form::label('town', trans('index.location')) !!} {!! Form::text('town', $user->town, ['class' => 'cd-input','id' => 'town', 'placeholder' => trans('updates.live-in')]) !!}
{!! Form::label('gender', trans('index.gender')) !!} {!! Form::select('gender', [trans('updates.male') =>trans('updates.male'), trans('updates.female') => trans('updates.female'), trans('updates.other')=> trans('updates.other')], isset($user->genre) ? $user->genre : null, ['id' => 'gender']) !!}
{!! Form::label('aboutyou', trans('index.about')) !!} {!! Form::textarea('about', $user->about, ['id' => 'aboutyou', 'placeholder' => trans('updates.abouttext')]) !!}
@if(get_buzzy_config('UserAddSocial')=='yes' || Auth::user()->usertype=='Admin')
{{ trans('index.links') }}
@php($social_links = collect(config('buzzy.social_links'))->filter(function($item, $provider){ return !in_array($provider, ['rss'], true ); })) @foreach ($social_links as $provider => $social)
{!! Form::label($provider, $social['name']) !!} {!! Form::text('social_profiles['.$provider.']', $user->social_profiles[$provider] ?? null, ['class' => 'cd-input','id' => $provider]) !!}
@endforeach @endif


{!! Form::close() !!}
@endsection