@extends('layouts.app')
@section('title') Register @endsection

@section('content')
    <div class="login-header login-caret">

        <div class="login-content">

            <a href="{{url('/')}}" class="logo">
                <img src="{{asset('backend/assets/images/logo@2x.png')}}" width="120" alt="" />
            </a>

            <p class="description">Create an account, it's free and takes few moments only!</p>

            <!-- progress bar indicator -->
            <div class="login-progressbar-indicator">
                <h3>43%</h3>
                <span>Signing in...</span>
            </div>
        </div>

    </div>

    <div class="login-progressbar">
        <div></div>
    </div>

    <div class="login-form">

        <div class="login-content">

            <form method="POST" action="{{ route('register') }}" role="form" id="form_login">
                @csrf

                <div class="form-group">

                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class="entypo-user"></i>
                        </div>

                        <input id="name" type="name" placeholder="Name" class="form-control @error('name') is-invalid @enderror" name="name" value="{{ old('name') }}" required autocomplete="off" autofocus>
                        @error('name')
                            <div class="form-login-error">
                                <p>{{ $message }}</p>
                            </div>
                        @enderror
                    </div>

                </div>

                <div class="form-group">

                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class="entypo-mail"></i>
                        </div>

                        <input id="email" type="email" placeholder="Email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="off" >
                        @error('email')
                            <div class="form-login-error">
                                <p>{{ $message }}</p>
                            </div>
                        @enderror
                    </div>

                </div>

                <div class="form-group">

                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class="entypo-key"></i>
                        </div>

                        <input id="password" type="password"  placeholder="Password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="off">
                        @error('password')
                            <div class="form-login-error">
                                <p>{{ $message }}</p>
                            </div>
                        @enderror
                    </div>

                </div>

                <div class="form-group">

                    <div class="input-group">
                        <div class="input-group-addon">
                            <i class="entypo-key"></i>
                        </div>

                        <input id="password-confirm" type="password" placeholder="Confirm Password" class="form-control" name="password_confirmation" required autocomplete="new-password">
                    </div>

                </div>

                <div class="form-group">
                    <button type="submit" class="btn btn-primary btn-block btn-login">
                        <i class="entypo-login"></i>
                        {{ __('Register') }}
                    </button>
                </div>

            </form>

        </div>

    </div>
@endsection

