@extends('layouts.dashboard') @section('template_title') {{ $user->name }}'s Account @endsection @section('template_fastload_css') @endsection @section('header') {{ trans('profile.accountTitle',['username' => $user->name]) }} @endsection @section('breadcrumbs')
  • {{ trans('titles.app') }} chevron_right
  • {{ trans('titles.account') }}
  • @endsection @section('content')

    {{ trans('profile.changePwTitle') }}

    {!! Form::open(array('action' => 'UsersManagementController@store', 'method' => 'POST', 'role' => 'form')) !!}
    {!! Form::text('name', $user->name, array('id' => 'name', 'class' => 'mdl-textfield__input', 'pattern' => '[A-Z,a-z,0-9]*')) !!} {!! Form::label('name', trans('auth.name') , array('class' => 'mdl-textfield__label')); !!} Letters and numbers only
    {!! Form::email('email', $user->email, array('id' => 'email', 'class' => 'mdl-textfield__input')) !!} {!! Form::label('email', trans('auth.email') , array('class' => 'mdl-textfield__label')); !!} Please Enter a Valid {{ trans('auth.email') }}
    {{-- SAVE BUTTON--}} {!! Form::button('save Save New User', array('class' => 'dialog-button-save mdl-button mdl-js-button mdl-js-ripple-effect mdl-color--green mdl-color-text--white mdl-button--raised margin-bottom-1 margin-top-1 margin-top-0-desktop margin-right-1 padding-left-1 padding-right-1 ')) !!}
    {!! Form::button('save', array('class' => 'dialog-button-icon-save mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect', 'title' => 'Save New User')) !!} reply Back to Users
    @include('dialogs.dialog-save') {!! Form::close() !!}
    {{-- {!! Form::model($user, array('action' => array('ProfilesController@updateUserPassword', $user->id), 'method' => 'PUT', 'autocomplete' => 'new-password')) !!}
    {!! Form::label('password', trans('forms.create_user_label_password'), array('class' => 'col-md-3 control-label')); !!}
    {!! Form::password('password', array('id' => 'password', 'class' => 'form-control ', 'placeholder' => trans('forms.create_user_ph_password'), 'autocomplete' => 'new-password')) !!} @if ($errors->has('password')) {{ $errors->first('password') }} @endif
    {!! Form::label('password_confirmation', trans('forms.create_user_label_pw_confirmation'), array('class' => 'col-md-3 control-label')); !!}
    {!! Form::password('password_confirmation', array('id' => 'password_confirmation', 'class' => 'form-control', 'placeholder' => trans('forms.create_user_ph_pw_confirmation'))) !!} @if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
    {!! Form::button( ' ' . trans('profile.submitPWButton'), array( 'class' => 'btn btn-warning', 'id' => 'pw_save_trigger', 'disabled' => true, 'type' => 'button', 'data-submit' => trans('profile.submitButton'), 'data-target' => '#confirmForm', 'data-modalClass' => 'modal-warning', 'data-toggle' => 'modal', 'data-title' => trans('modals.edit_user__modal_text_confirm_title'), 'data-message' => trans('modals.edit_user__modal_text_confirm_message') )) !!}
    {!! Form::close() !!} --}} {!! Form::open(array('action' => 'UsersManagementController@store', 'method' => 'POST', 'role' => 'form')) !!}
    {!! Form::password('password', array('id' => 'password', 'class' => 'mdl-textfield__input')) !!} {!! Form::label('password', 'Password', array('class' => 'mdl-textfield__label')); !!} Please enter a valid password
    {!! Form::password('password_confirmation', array('id' => 'password_confirmation', 'class' => 'mdl-textfield__input')) !!} {!! Form::label('password_confirmation', 'Confirm Password', array('class' => 'mdl-textfield__label')); !!} Must match password
    {{-- SAVE BUTTON--}} {!! Form::button('save Save New User', array('class' => 'dialog-button-save mdl-button mdl-js-button mdl-js-ripple-effect mdl-color--green mdl-color-text--white mdl-button--raised margin-bottom-1 margin-top-1 margin-top-0-desktop margin-right-1 padding-left-1 padding-right-1 ')) !!}
    {!! Form::button('save', array('class' => 'dialog-button-icon-save mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect', 'title' => 'Save New User')) !!} reply Back to Users
    @include('dialogs.dialog-save') {!! Form::close() !!}

    Deleting your account is permanent and cannot be undone.


    {!! Form::model($user, array('action' => array('ProfilesController@deleteUserAccount', $user->id), 'method' => 'DELETE')) !!}
    {!! Form::button( ' ' . trans('profile.deleteAccountBtn'), array( 'class' => 'btn btn-block btn-danger', 'id' => 'delete_account_trigger', 'disabled' => true, 'type' => 'button', 'data-toggle' => 'modal', 'data-submit' => trans('profile.deleteAccountBtnConfirm'), 'data-target' => '#confirmForm', 'data-modalClass' => 'modal-danger', 'data-title' => trans('profile.deleteAccountConfirmTitle'), 'data-message' => trans('profile.deleteAccountConfirmMsg') ) ) !!} {!! Form::close() !!}
    {{--
    Show Forecast Show Current
    --}}
    {{-- @include('modals.modal-form') --}} {{-- @include('scripts.form-modal-script') --}} {{-- @php if ($user->profile->avatar_status == 1) { $userGravImage = $user->profile->avatar; } else { $userGravImage = Gravatar::get($user->email); } @endphp
    {{ $user->name }} {{ Gravatar::get($user->email) }}
    profile->user_profile_bg != NULL) style="background: url('{{$user->profile->user_profile_bg}}') center/cover;" @endif>

    {{ $user->name }}

    • person {{ $user->first_name }} @if ($user->last_name) {{ $user->last_name }} @endif
    • contact_mail {{ $user->email }}
    • @if ($user->profile) @if ($user->profile->twitter_username)
    • {!! HTML::link('https://twitter.com/'.$user->profile->twitter_username, $user->profile->twitter_username, array('class' => 'twitter-link mdl-typography--font-light', 'target' => '_blank')) !!}
    • @endif @if ($user->profile->github_username)
    • {!! HTML::link('https://github.com/'.$user->profile->github_username, $user->profile->github_username, array('class' => 'github-link mdl-typography--font-light', 'target' => '_blank')) !!}
    • @endif @if ($user->profile->location)
    • location_on {{ $user->profile->location }}
    • @endif @if ($user->profile->bio)
    • comment

      {{ $user->profile->bio }}

    • @endif @endif
    @if ($user->profile) @if ($user->profile->location)

    LON: / LAT:

    @endif @endif
    @if ($user->profile) @if (Auth::user()->id == $user->id) edit {{ Lang::get('titles.editProfile') }} @endif @else

    {{ Lang::get('profile.noProfileYet') }}

    {!! HTML::link(URL::to('/profile/'.Auth::user()->name.'/edit'), Lang::get('titles.createProfile'), array('class' => 'mdl-button mdl-js-button mdl-js-ripple-effect mdl-shadow--3dp')) !!} @endif
    @if (!Auth::guest() && Auth::user()->hasRole('administrator')) edit @endif
    --}} @endsection @section('footer_scripts') @endsection