@extends('layouts.scaffold')
@section('main')
Edit Profile
@if ($errors->any())
{{ implode('', $errors->all('- :message
')) }}
@endif
{{ Form::model($user, array('method' => 'PATCH', 'id' => 'editProfile', 'enctype' => 'multipart/form-data', 'route' => array('login.profileupdate'))) }}
-
{{ Form::label('user_displayname', 'Display name:') }}
{{ Form::text('user_displayname') }}
-
{{ Form::label('user_email', 'User email:') }}
{{ Form::text('user_email') }}
-
{{ Form::label('password', 'Password:') }}
{{ Form::password('password') }}
-
{{ Form::label('confirm_pass', 'Confirm password:') }}
{{ Form::password('confirm_pass') }}
-
{{ Form::label('user_img', 'Profile image:') }}
{{ Form::file('user_img', $attributes = array('onchange' => 'readImage(this);')) }}
-
{{ Form::submit('Update', array('class' => 'btn btn-info sub_but')) }}
{{ Form::close() }}
@if ($scripts = 'js/profile.js') @endif
@stop