@extends('cp.web.layouts.admin')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">重置密码</div>
                <div class="panel-body">{{ $msg }}</div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form" method="POST" action="{{ url('/api/auth/modifyPassword') }}">
                        {!! csrf_field() !!}

                        <div class="panel-body">
                            <label class="col-md-4 control-label">账号</label>

                            <div class="col-md-6">
                                <input type="text" class="form-control" name="username" value="">
                            </div>
                        </div>
                        <div class="panel-body">
                            <label class="col-md-4 control-label">老密码</label>
                            <div class="col-md-6">
                                <input type="password" class="form-control" name="password">
                            </div>
                        </div>
                        <div class="panel-body">
                            <label class="col-md-4 control-label">新密码</label>
                            <div class="col-md-6">
                                <input type="password" class="form-control" name="new_password">
                            </div>
                        </div>
                        <div class="panel-body">
                            <label class="col-md-4 control-label">重复密码</label>
                            <div class="col-md-6">
                                <input type="password" class="form-control" name="new_password_repeat">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-4">
                                <button type="submit" class="btn btn-primary">
                                    <i class="fa fa-btn fa-refresh"></i>提交修改
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
