@extends('home.layout.master')

@section('content')
    <div class="heading-banner-area overlay-bg">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="heading-banner">
                        <div class="heading-banner-title">
                            <h2></h2>
                        </div>
                        <div class="breadcumbs pb-15">
                            <ul>
                                <li><a href="/">Home</a></li>
                                <li>Login</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- HEADING-BANNER END -->
    <!-- SHOPPING-CART-AREA START -->
    <div class="login-area  pt-80 pb-80">
        <div class="container">
            <form method="POST" action="{{ route('login') }}">
                @csrf
                <div class="row justify-content-md-center">
                    <div class="col-lg-4">
                        @if (session('error'))
                            <div class="alert alert-danger" role="alert">
                                {{ session('error') }}
                            </div>
                        @endif
                        @error('password')
                        <div class="alert alert-danger" role="alert">
                            {{ $message }}
                        </div>
                        @enderror
                        @error('email')
                        <div class="alert alert-danger" role="alert">
                            {{ $message }}
                        </div>
                        @enderror
                        <div class="customer-login text-left">
                            <h4 class="title-1 title-border text-uppercase mb-30">Login Konsumen</h4>
                            <input type="text" id="email" class="form-control @error('email') is-invalid @enderror" value="" placeholder="Tulis Email" name="email"
                                value="{{ old('email') }}">
                            <input id="password" type="password" name="password"
                                class="form-control @error('password') is-invalid @enderror" value="" placeholder="Tulis Password">
                            <button type="submit" data-text="login"
                                class="button-one submit-button mt-15 w-100">login</button>
                                <p style="text-align: center" class="mt-2">Belum Punya Akun ? &nbsp;&nbsp;<a href="/register" style="color:blue"><u> Register sekarang </u></a></p>
                        </div>
                    </div>
                    {{-- <div class="col-lg-6">
                        <div class="customer-login text-left">
                            <h4 class="title-1 title-border text-uppercase mb-30">new customers</h4>
                            <p class="text-gray">If you have an account with us, Please login!</p>
                            <input type="text" placeholder="Your name here..." name="name">
                            <input type="text" placeholder="Email address here..." name="email">
                            <input type="password" placeholder="Password">
                            <input type="password" placeholder="Confirm password">
                            <p class="mb-0">
                                <input type="checkbox" id="newsletter" name="newsletter" checked>
                                <label for="newsletter"><span>Sign up for our newsletter!</span></label>
                            </p>
                            <button type="submit" data-text="regiter"
                                class="button-one submit-button mt-15">regiter</button>
                        </div>
                    </div> --}}
                </div>
            </form>
        </div>
    </div>
@endsection
