<!DOCTYPE html>
<html lang="zxx" class="js">

<head>
    <meta charset="utf-8">
    <meta name="author" content="{{ ucwords(strtolower(config('app.name'))) }}">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="{{ ucwords(strtolower(config('app.description'))) }}">
    <!-- Fav Icon  -->
    <link rel="shortcut icon" href="/images/favicon.png">
    <!-- Page Title  -->
    <title>Access Authentication | {{ ucwords(strtolower(config('app.name'))) }}</title>
    <!-- StyleSheets  -->
    <link rel="stylesheet" href="/assets/css/dashlite.css">
    <link href="/assets/css/bootstrap.css" rel="stylesheet" id="bootstrap-css">
    <link href="/assets/css/css.css" rel="stylesheet">
    <!-- <link rel="stylesheet" href="/assets/css/catalyst.css"> -->
    <style>
        /* COVER SPINNER ON BUTTON CLICK */
        #cover-spin {
            position:fixed;
            width:100%;
            left:0;right:0;top:0;bottom:0;
            background-color: rgba(255,255,255,0.7);
            z-index:9999;
            display:none;
        }
        @-webkit-keyframes spin {
            from {-webkit-transform:rotate(0deg);}
            to {-webkit-transform:rotate(360deg);}
        }
        @keyframes spin {
            from {transform:rotate(0deg);}
            to {transform:rotate(360deg);}
        }
        #cover-spin::after {
            content:'';
            display:block;
            position:absolute;
            left:48%;top:40%;
            width:40px;height:40px;
            border-style:solid;
            border-color:black;
            border-top-color:transparent;
            border-width: 4px;
            border-radius:50%;
            -webkit-animation: spin .8s linear infinite;
            animation: spin .8s linear infinite;
        }
    </style>
</head>

<!------ Include the above in your HEAD tag ---------->
<style>
    body {
        font-family: 'Nunito', sans-serif;
        font-size: 14px;
        line-height: 1.28571429;
        color: #000;
        background: url('/images/others/bannerpin.jpg') no-repeat;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
    .panel-default {
        opacity: 0.9;
        margin-top: 70px;
    }

    .btn-sm,
    .btn-xs {
        padding: 5px 40%;
        font-size: 15px;
        line-height: 1.5;
        border-radius: 3px;
    }

    .form-group.last {
        margin-bottom: 0px;
    }

    .btn-success {
        color:
            #fff;
        background-color:
            #187718;
        border-color:
            #187718;
    }

    .alert-danger {
        color: #fff;
        background-color: #e30909;
        border-color: #eed3d7;

    }
</style>
<script src='https://kit.fontawesome.com/a076d05399.js' crossorigin='anonymous'></script>

</head>

<body style="position: relative; min-height: 100%; top: 0px;" id="catalyst-root">
    {{-- <div id="cover-spin"></div>FOR BUTTON CLICKS --}}
    <div class="page-cover"></div>
    <div id="page-loader" class="fade show">
        <div class="d-flex justify-content-center center-screen">
            <span class="spin"></span>
        </div>
    </div>
    <div class="container">
        <div class="row">

            <div class="col-md-4 col-md-offset-7">
                <div class="panel panel-default">
                    <center><br><img style="width: 250px;" src="/images/logo.png" alt="LOGO" data-default="placeholder"
                            data-max-width="100" width="16%">
                    </center> <br>
                    <div style="background-color: #0c8a80;" class="panel-heading">
                    </div><br>
                    <center>
                        <strong></strong>
                        <div class="panel-body">
                            @if(!empty(session('profile_picture')))
                                <img alt="thumbnail" style="border-radius:40px;" height="70" src="/images/avatar/{{  session('profile_picture') }}">
                            @else
                                <img alt="thumbnail" style="border-radius:40px;" height="70" src="/images/avatar/user.png">
                            @endif
                            <br>

                            <h4 style="color:green;"> Welcome!
                                @if (session('lastname'))
                                    {{ session('lastname').' '.session('firstname') }}
                                @endif
                            </h4>
                            @if($errors->any())
                                <div class="alert alert-danger mt-5">{{ $errors->first() }}</div>
                            @endif


                            <form autocomplete="off" id="formData" method="POST">
                                @csrf
                                <div class="pin-response mt-5  mb-4" style="display: none;"></div>
                                <div class="form-inputs p-b">
                                    <input type="password" name="pin" id="code" minlength="4" maxlength="4" class="form-control"
                                        sttle="width:140px" placeholder="Enter Your Account Pin" autofocus inputmode="numeric" required="">
                                    <br>
                                    <div class="btn-group-vertical ml-4 mt-4" role="group" aria-label="Basic example">
                                        <div class="btn-group">
                                            <button type="button"
                                                style="background-color: #0c8a80; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value + '1';">1</button>
                                            <button type="button"
                                                style="background-color: black; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value + '2';">2</button>
                                            <button type="button"
                                                style="background-color: #0c8a80; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value + '3';">3</button>
                                            <button type="button"
                                                style="background-color: black; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value + '7';">7</button>
                                            <button type="button"
                                                style="background-color: #0c8a80; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value + '8';">8</button>
                                            <button type="button"
                                                style="background-color: black; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value + '9';">9</button>
                                        </div>
                                        <div class="btn-group">
                                            <button type="button"
                                                style="background-color: #0c8a80; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value + '4';">4</button>
                                            <button type="button"
                                                style="background-color: black; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value + '5';">5</button>
                                            <button type="button"
                                                style="background-color: #0c8a80; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value + '6';">6</button>
                                            <button type="button"
                                                style="background-color: black; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value.slice(0, -1);">CLR</button>
                                            <button type="button"
                                                style="background-color: #0c8a80; color:white; font-weight:700;"
                                                class="btn btn-outline-secondary py-3"
                                                onclick="document.getElementById('code').value=document.getElementById('code').value + '0';">0</button>
                                            <button type="submit" style="background-color: #0c8a80;" name="code"
                                                class="btn btn-primary py-3 login-now" onclick="">Enter</button>

                                        </div>
                                    </div>
                                </div>

                                <div class="divider"></div>
                                <p class="text-center">The World in your Finger Tips</p>
                            </form>
                        </div>
                        <div style="background-color:black;" class="panel-footer"></div>
                </div>
            </div>
        </div>
    </div>



    <div id="goog-gt-tt" class="skiptranslate" dir="ltr"><div style="padding: 8px;">
    <div>
        <div class="logo"><img src="https://www.gstatic.com/images/branding/product/1x/translate_24dp.png" width="20" height="20"></div></div></div><div class="top" style="padding: 8px; float: left; width: 100%;"><h1 class="title gray">.</h1></div><div class="middle" style="padding: 8px;"><div class="original-text"></div></div><div class="bottom" style="padding: 8px;"><div class="activity-links"><span class="activity-link">.</span><span class="activity-link"></span></div><div class="started-activity-container"><hr style="color: #CCC; background-color: #CCC; height: 1px; border: none;"><div class="activity-root"></div></div></div><div class="status-message" style="display: none;"></div></div>
    <div class="goog-te-spinner-pos"><div class="goog-te-spinner-animation"><svg xmlns="http://www.w3.org/2000/svg" class="goog-te-spinner" width="96px" height="96px" viewBox="0 0 66 66"><circle class="goog-te-spinner-path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle></svg></div></div>

    <script src="/assets/js/bundle.js?ver=2.4.0"></script>
    <script src="/assets/js/scripts.js?ver=2.4.0"></script>
    <script src="/assets/js/bootstrap.js"></script>
    <script src="/assets/js/custom.js?ver=0.1.5"></script>
    <script src="/js/authentication.js?ver=<?=rand(1,999999)?>"></script>
    <script>
        $(document).on("submit","#formData",function(){
            if($("#formData")[0].checkValidity()){
                $('#cover-spin').show(0);
            }
        });
    </script>
</body>

</html>
