@extends('master')
@section('content')
{{ Breadcrumbs::addCrumb('Home', '/') }}
{{ Breadcrumbs::addCrumb('Authentication') }}
	<div class="form-style">
		@if (isset($errors) && sizeof($errors) > 0)
			@foreach($errors as $error)
			<h5>{{{ $error }}}</h5>
			@endforeach
		@endif
		{{ Form::open(array('url' => 'register')) }}
            	{{ Form::hidden('username', $input['username'], array('class'=>'form-control', 'placeholder'=>'')) }}
            	{{ Form::hidden('email', $input['email'], array('class'=>'form-control', 'placeholder'=>'')) }}
            	{{ Form::hidden('password', $input['password'], array('class'=>'form-control', 'placeholder'=>'')) }}
            	{{ Form::hidden('password_confirmation', $input['password_confirmation'], array('class'=>'form-control', 'placeholder'=>'')) }}
            	{{ Form::hidden('key', $input['key'], array('class'=>'form-control', 'placeholder'=>'')) }}
            	@if(isset($input['wot_register']))
            		{{ Form::hidden('wot_register', $input['wot_register'], array('class'=>'form-control', 'placeholder'=>'')) }}
            	@endif
            <div class="form-group">
            	<label>Please decrypt the password located <a href="/keychain/message/{{{ $keyid }}}" target="_blank">here</a> and enter it below.</label>
            	{{ Form::text('otcp', null, array('class'=>'form-control')) }}
            </div>
	      <button type="submit" class="btn btn-success pull-right">Submit</button>
	    {{ Form::close() }}
	</div>
@stop