@extends('layouts.app')

<title>Sign Up</title>

@section('content')
<section class="login_page">
    <div class="container_fluid">
        <div class="login_logo mb-4">
            <h2><img src="{{ asset('assets/images/logo.png') }}" alt="">AIAP</h2>
        </div>
        <form method="post" action="{{ route('store.register') }}">
            @csrf
            <div class="row">
                <div class="col-12">
                    <div class="login_deatils">
                        <h4 class="mt-2">Sign up</h4>
                        <div class="input_field">
                            <input type="text" placeholder="Your Name" name="name" class="@error('name') is-invalid @enderror" required>
                            @error('email')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                            @enderror
                        </div>
                        <div class="input_field mt-3">
                            <input type="email" placeholder="Email" name="email" class="@error('email') is-invalid @enderror" required>
                            @error('email')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                            @enderror
                        </div>
                        <div class="input_field mt-3">
                            <input name="password" type="password" placeholder="Password" class="@error('password') is-invalid @enderror" required>
                            @error('password')
                                <span class="invalid-feedback" role="alert">
                                    <strong>{{ $message }}</strong>
                                </span>
                            @enderror
                        </div>
                        <div class="input_field mt-3">
                            <input name="password_confirmation" type="password" placeholder="Confirm Password">
                        </div>
                        <div class="login_btn">
                            <button class="btn btn-dark"> Sign up</button>
                        </div>
                        <div class="forget">
                            <a href="{{ route('login.create') }}">
                                <h5>Login?</h5>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</section>
@endsection
