<!DOCTYPE html>
<html lang="en">

<head>
    <title>Connexion</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="description" content="" />
    <meta name="keywords" content=""/>
    <meta name="author" content="Baniamey CAMARA"/>

    <!-- Favicon icon -->
    <link rel="icon" href="{{asset('logo.png')}}" type="image/x-icon">
    <!-- fontawesome icon -->
    <link rel="stylesheet" href="admin/assets/fonts/fontawesome/css/fontawesome-all.min.css">
    <!-- animation css -->
    <link rel="stylesheet" href="admin/assets/plugins/animation/css/animate.min.css">
    <!-- vendor css -->
    <link rel="stylesheet" href="admin/assets/css/style.css">

</head>

<body>
    <div class="auth-wrapper">
        <div class="auth-content">
            <div class="auth-bg">
                <span class="r"></span>
                <span class="r s"></span>
                <span class="r s"></span>
                <span class="r"></span>
            </div>
            <div class="card">
                @if(session('success'))
                    <div class="alert alert-success alert-dismissible">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                        <h5><i class="fas fa-check-circle"></i> Alert!</h5>
                        {{ session('success') }}
                    </div>
                    @elseif (session('error'))
                    <div class="alert alert-danger alert-dismissible">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                        <h5><i class="fas fa-danger"></i> Alert!</h5>
                        {{ session('error') }}
                    </div>
                    @elseif (session('warning'))
                    <div class="alert alert-warning alert-dismissible">
                        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                        <h5><i class="fas fa-danger"></i> Alert!</h5>
                        {{ session('warning') }}
                    </div>
                    @endif
                    @if (count($errors) > 0)
                        <div class="alert alert-danger">
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif
                <form action="{{asset('login')}}" method="post">
                    @csrf
                <div class="card-body text-center">
                    <h5>B2W BANQUE WEB SERVICE</h5>
                    <div class="mb-4">
                       <a href="{{asset('/')}}"> <img src="{{asset('logo.png')}}" width="110px" alt=""></a> <br>
                        <i class="feather icon-unlock auth-icon"></i>
                    </div>
                    <h3 class="mb-4">Connexion </h3>
                    <div class="input-group mb-3">
                        <input type="email" class="form-control" name="email" placeholder="Email">
                    </div>
                    <div class="input-group mb-4">
                        <input type="password" class="form-control" name="password" placeholder="Mot de passe">
                    </div>
                    <div class="form-group text-left">
                        <div class="checkbox checkbox-fill d-inline">
                            <input type="checkbox" name="remenber_me" id="checkbox-fill-a1" checked="">
                            <label for="checkbox-fill-a1" class="cr"> Se souvenir de moi </label>
                        </div>
                    </div>
                    <button class="btn btn-primary shadow-2 mb-4">Se connecter</button>
                </div>
            </form>
            </div>
        </div>
    </div>

    <!-- Required Js -->
<script src="admin/assets/js/vendor-all.min.js"></script>
	<script src="admin/assets/plugins/bootstrap/js/bootstrap.min.js"></script>

</body>
</html>
