@extends('layouts.auth-master')

@section('content')
<form method="post" action="{{ route('register.perform') }}">

    <input type="hidden" name="_token" value="{{ csrf_token() }}" />
    <img class="mb-4" src="{!! url('images/bootstrap-logo.svg') !!}" alt="" width="72" height="57">

    <h1 class="h3 mb-3 fw-normal">Register</h1>

    <div class="form-group">
        <label for="floatingEmail">Email address</label>
        <input type="email" class="form-control form-control-sm" name="email" value="{{ old('email') }}" placeholder="name@example.com" required="required" autofocus>
        @if ($errors->has('email'))
        <span class="text-danger text-left">{{ $errors->first('email') }}</span>
        @endif
    </div>

    <div class="form-group">
        <label for="floatingName">Username</label>
        <input type="text" class="form-control form-control-sm" name="username" value="{{ old('username') }}" placeholder="Username" required="required" autofocus>
        @if ($errors->has('username'))
        <span class="text-danger text-left">{{ $errors->first('username') }}</span>
        @endif
    </div>

    <div class="form-group">
        <label for="floatingPassword">Password</label>
        <input type="password" class="form-control form-control-sm" name="password" value="{{ old('password') }}" placeholder="Password" required="required">
        @if ($errors->has('password'))
        <span class="text-danger text-left">{{ $errors->first('password') }}</span>
        @endif
    </div>

    <div class="form-group">
        <label for="floatingConfirmPassword">Confirm Password</label>
        <input type="password" class="form-control form-control-sm" name="password_confirmation" value="{{ old('password_confirmation') }}" placeholder="Confirm Password" required="required">
        @if ($errors->has('password_confirmation'))
        <span class="text-danger text-left">{{ $errors->first('password_confirmation') }}</span>
        @endif
    </div>

    <button class="w-100 btn btn-lg btn-info" type="submit">Register</button>

    @include('auth.partials.copy')
</form>
@endsection