@extends('layouts.master')
 
@section('title') Mise à jour du mot de passe @stop
 
@section('content')
 

    @if ($errors->has())
        @foreach ($errors->all() as $error)
            <div class='bg-danger alert'>{!! $error !!}</div>
        @endforeach
    @endif

 @if ($message!="")
 	<div class='bg-success alert'>{!! $message !!}</div>
 @else
 <div class='col-lg-5 col-lg-offset-1'>
	<form class="form-horizontal" role="form" 
		method="POST" action="{!! url('/password/reset') !!}">
	<input type="hidden" name="_token" value="{!! csrf_token() !!}">

    <div class='form-group'>
        <div class="col-xs-5">
        {!! Form::label('password', 'Mot de passe') !!}
        {!! Form::password('password', ['placeholder' => 'Mot de passe, 5 caractères au minimum', 'class' => 'form-control']) !!}
        </div>
    </div>
    <div class='form-group'>
        <div class="col-xs-5">
        {!! Form::label('password_confirmation', 'Confirmez le mot de passe') !!}
        {!! Form::password('password_confirmation', ['placeholder' => 'Mot de passe, 5 caractères au minimum', 'class' => 'form-control']) !!}
        </div>
    </div>


    <div class='form-group'>
        <div class="col-xs-4">
        {!! Form::submit('Enregistrer', ['class' => 'btn btn-primary']) !!}
        </div>
    </div>

    <div class='form-group'>
        <div class="col-xs-4">
        &nbsp;
        </div>
    </div>
	{!! Form::close() !!}
</div>
@endif

@endsection


 
@stop
