@extends('layouts.app') @section('content')
Settings
@if (Session::get('avatar_image_uploaded') != null) @endif @if (Session::get('password_update_success') === true) @endif

Change avatar

{{ $user->name }}-avatar
@if ($errors->has('avatar'))
{{ $errors->first('avatar') }}
@endif

Change password

@if ($errors->has('oldPassword') && !$password_update_success)
{{ $errors->first('oldPassword') }}
@endif
@if ($errors->has('newPassword'))
{{ $errors->first('newPassword') }}
@endif
Only fill in the password fields if you wish to change your password.
{{ csrf_field() }}
@endsection