@extends('layout')

@section('content')

<div class="container-fluid">
	<div class="row">
		<div class="col-md-8 col-md-offset-2">
			<div class="panel panel-default">
				<div class="panel-heading">Register</div>
				<div class="panel-body">
					@if (count($errors) > 0)
						<div class="alert alert-danger">
							<strong>Whoops!</strong> There were some problems with your input.<br><br>
							<ul>
								@foreach ($errors->all() as $error)
									<li>{{ $error }}</li>
								@endforeach
							</ul>
						</div>
					@endif

					<form class="form-horizontal" role="form" method="POST" action="{{ url('/auth/register') }}">
						<input type="hidden" name="_token" value="{{ csrf_token() }}">

                        <table cellspacing="0" cellpadding="0">
                            <tr>
                                <td>Выберите тип пользователя:</td>
                                <td>
                                    <input type="radio" name="user-type" value="1" id="fizi" checked /><label for="fizi" style="margin-right: 40px;">Физическое лицо</label>
                                    <input type="radio" name="user-type" value="2" id="companyy" /><label for="companyy">Компания</label>
                                </td>
                            </tr>
                            <tr style="display: none;" class="tr_name_company">
                                <td>Введите название компании:</td>
                                <td><input type="text" class="form-control" name="name_company" value="{{ old('name') }}" disabled="disabled"></td>
                            </tr>
                            <tr>
                                <td>Введите логин:</td>
                                <td><input type="text" class="form-control" name="login" value="{{ old('login') }}"></td>
                            </tr>
                            <tr>
                                <td>Введите e-mail:</td>
                                <td><input type="email" class="form-control" name="email" value="{{ old('email') }}"></td>
                            </tr>
                            <tr>
                                <td>Введите пароль:</td>
                                <td><input type="password" class="form-control" name="password"></td>
                            </tr>
                            <tr>
                                <td>Введите проверочный код:</td>
                                <td>
                                    <div class="block_code">
                                        <img src="" alt="код"/>
                                    </div>
                                    <input type="text" class="form-control code" name="secure-code">
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <button type="submit" class="btn btn-primary" style="width: 190px;">Зарегистрироваться</button>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <input type="checkbox" class="form-control" name="confirm-rules" />
                                    <span>Я согласен с <a href="#">условиями</a></span>
                                </td>
                            </tr>
                        </table>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>

@stop