@extends('layouts.app') @section('content-header')
{{ Breadcrumbs::render('users-form', $user->username, $user->id) }}

Change Password for {{$user->name}}

@endsection @section('content') @php $title = 'Change Password'; @endphp {!! Form::model($user, [ 'method' => 'PUT', 'route' => ['admin.users.changepassword_process', $user->id], 'role' => 'form'])!!}
@if (count($errors) > 0)
Whoops! There were some problems with your input.

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if ($message = Session::get('fail'))
Whoops! There were some problems with your input.

{{ $message }}
@endif
{!! Form::label('lblPassword', 'Password*', ['class' => 'control-label']) !!} {!! Form::password('txtPassword', ['class' => 'form-control', 'placeholder' => 'Password', 'required' => '']) !!} @if($errors->has('txtPassword'))

{{$errors->first('txtPassword')}}

@endif
{!! Form::label('lblPassword_confirmation', 'Confirm Password', ['class' => 'control-label']) !!} {!! Form::password('txtPassword_confirmation', ['class' => 'form-control', 'placeholder' => 'Confirm Password', 'required' => '']) !!}
{!! Form::submit('Submit', ['class' => 'btn btn-primary'])!!} {!! link_to_route('admin.users.index', 'Cancel', null, ['class' => 'btn btn-danger']) !!}
{!! Form::close() !!} @endsection @include('_components.scripts.form')