<?php $__env->startPush('js'); ?>
<script>
$(document).ready(function() {
    if (window.location.href === "https://ecommerce.flevnex.com/login" || window.location.href === "http://127.0.0.1:8000/login" || window.location.href === "https://ecommerce.flevnex.com/admin" || window.location.href === "http://127.0.0.1:8000/admin" || window.location.href === "http://lems.test/login" || window.location.href === "https://lems.test/login" || window.location.href === "http://lems.test/admin" || window.location.href === "https://lems.test/admin" ) {
        
        if (window.location.href === "https://ecommerce.flevnex.com/admin" || window.location.href === "http://127.0.0.1:8000/admin" || window.location.href === "http://lems.test/admin" || window.location.href === "https://lems.test/admin" ) {
            // Create a div with 3 buttons
            var buttonDiv = `
                <div class="text-center mt-3 text-danger" id="user-buttons">Login as:
                    <button class="btn btn-danger border-0" id="admin-button">Admin</button>
                </div>
            `;
        } else{
            // Create a div with 3 buttons
            var buttonDiv = `
                <div class="text-center mt-3 text-danger" id="user-buttons">Login as:
                    <button class="btn btn-danger border-0" id="vendor-button">Vendor</button>
                    <button class="btn btn-danger border-0 ml-2" id="customer-button">Customer</button>
                </div>
            `;
        }

        // Append the div before the <footer> tag
        $("footer").before(buttonDiv);

        // Function to auto-fill username and password fields
        function fillCredentials(username) {
            $('input[name="username"]').val(username);
            $('input[name="password"]').val("12345678");
        }

        // Event listeners for buttons
        $("#admin-button").click(function() {
            fillCredentials("admin");
        });

        $("#vendor-button").click(function() {
            fillCredentials("vendor");
        });

        $("#customer-button").click(function() {
            fillCredentials("customer");
        });
    }
});
</script>
<?php $__env->stopPush(); ?><?php /**PATH /home/apleusbj/shopping.apleefix.com/resources/views/auth/partial/demo_auth_credintial_inject.blade.php ENDPATH**/ ?>