@extends('Admin.Layouts.layout')

@section('content')
<div class="container-fluid">
    <div class="authentication-card">
        <div class="card shadow rounded-0 overflow-hidden">

            @if ($message = Session::get('success'))
            <div class="alert border-0 bg-light-success alert-dismissible fade show py-2">
                <div class="d-flex align-items-center">
                    <div class="fs-3 text-success"><i class="bi bi-check-circle-fill"></i>
                    </div>
                    <div class="ms-3">
                        <div class="text-success">{{ $message }}</div>
                    </div>
                </div>
                <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
            </div>
            @endif

            @if ($message = Session::get('fail'))
            <div class="alert border-0 bg-light-danger alert-dismissible fade show py-2">
                <div class="d-flex align-items-center">
                    <div class="fs-3 text-danger"><i class="bi bi-x-circle-fill"></i>
                    </div>
                    <div class="ms-3">
                        <div class="text-danger">
                            {{$message}}
                        </div>
                    </div>
                </div>
                <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
            </div>
            @endif

            <div class="row g-0">

            <h2 class="text-center mt-5">ASWAS COMMUNITY PHARMACY</h2>
                <div class="col-lg-6 bg-login d-flex align-items-center justify-content-center">
                   
                    <img src="https://taxinternshipcentre.com/public/asset/images/frontend/authentication/auth.jpg" class="img-fluid" alt="image">
                    <!-- <img style="margin-left: 30px;" src="https://api.digitronicsindia.com/medisoft/public/uploads/images/Main.jpg" class="img-fluid" alt="image"> -->

                </div>
                <div class="col-lg-6">
                    <div class="card-body p-4 p-sm-5">
                        <h5 class="card-title text-center">Authenticate to access dashboard</h5>
                        <br>

                        <form method="post" action="{{ route('web.validateLogin') }}" class="form-body">
                            @csrf
                            <div class="row g-3">

                                <div class="col-12">
                                    <label for="inputEmailAddress" class="form-label">Email Address</label>
                                    <div class="ms-auto position-relative">
                                        <div class="position-absolute top-50 translate-middle-y search-icon px-3"><i class="bi bi-envelope-fill"></i></div>
                                        <input type="email" name="email" required class="form-control radius-30 ps-5" id="inputEmailAddress" placeholder="Email Address">
                                    </div>
                                </div>

                                <div class="col-12">
                                    <label for="inputChoosePassword" class="form-label">Enter Password</label>
                                    <div class="ms-auto position-relative">
                                        <div class="position-absolute top-50 translate-middle-y search-icon px-3"><i class="bi bi-lock-fill"></i></div>
                                        <input type="password" name="password" required class="form-control radius-30 ps-5" id="inputChoosePassword" placeholder="Enter Password">
                                    </div>
                                </div>

                                <div class="col-6">
                                    <div class="form-check form-switch">
                                        <input hidden class="form-check-input" type="checkbox" id="flexSwitchCheckChecked" checked="">
                                        <label class="form-check-label" for="flexSwitchCheckChecked"></label>
                                    </div>
                                </div>

                                <!-- <div class="col-6 text-end"> <a >Forgot Password ?</a>
                                </div> -->

                                <div class="col-12">
                                    <div class="d-grid">
                                        <button type="submit" class="btn btn-primary radius-30">Sign In</button>
                                    </div>
                                </div>

                                <!-- <div style="display: none;" class="col-12">
                                    <p class="mb-0">Don't have an account yet? <a >Sign up here</a></p>
                                </div> -->

                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection