<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Payment Successful</title>
    <link rel="stylesheet" href="/css/styles.css">
    <link rel="stylesheet" href="<%= process.env.APP_URL %>css/main.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=K2D:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap" rel="stylesheet">
    <!-- Google-icons -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,1,0" />
    <!-- Bootstrap core CSS-->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">

</head>

<style>
    body{
        height: 100vh;
        display: grid;
        place-items: center;
    }
</style>


<body>
   

    <div class="container">
        <div class="row">
           
            <div class="col-md-8 mx-auto">
                <div class="image-wrapper">
                    <img src="<%= process.env.APP_URL %>images/logo.png" alt="Logo" class="img-fluid">
                </div>
                <div class="card">
                    <div class="card-body payment_body">
                        <% if (duedateover === 0) { %>
                            <div class="success-message">
                                <span class="material-symbols-outlined">check_circle</span>
                                <h3>You have already paid the invoice.</h3></div>
                            <% } %>
                            <% if (duedateover === 1) { %>
                             <div class="notsuccess-message">
                                <span class="material-symbols-outlined">report</span>
                                <h3>Can`t pay Now</h3>
                            </div>
                             <div class="notsuccess-message-info">
                                 <p class="gray">The due date for this invoice has passed.</p>
                              </div>
                             <% } %>
                    
                            <a href="<%= redirecturl %>" class="btn btn-primary mt-4"> See Invoice Details </a>
                    </div>
                    
                </div>

            </div>

        </div>

    </div>

</body>
</html>
