<?php

//include html header
require_once("includes/html-header.php");

?>

<body>

    <!--  Body Wrapper -->
    <div class="page-wrapper" id="main-wrapper" data-layout="vertical" data-navbarbg="skin6" data-sidebartype="full" data-sidebar-position="fixed" data-header-position="fixed">


        <?php

        //include sidebar
        require_once("includes/sidebar.php");

        ?>

        <!--  Main wrapper -->
        <div class="body-wrapper">


            <?php

            //include header
            require_once("includes/header.php");

            ?>



            <div class="container-fluid">
            <!-- notice -->
            <marquee class="alert alert-dark text-white" role="alert" onmouseover="this.stop()" onmouseout="this.start()" style="font-size: 1rem;">
                <?php $se = "SELECT * FROM notice";
                $data = mysqli_query($link, $se);
                $d = mysqli_fetch_assoc($data);
                echo $d['notice']; ?>
            </marquee>
            <!-- notice end -->
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title fw-semibold mb-4 text-center">TIN</h5>
                        <div class="card">
                            <div class="card-body">
                                <?php
                                if (isset($_SESSION['Error'])) {
                                ?>
                                    <div class="alert alert-danger" role="alert">
                                        <?php
                                        echo $_SESSION['Error'];
                                        $_SESSION['Error'] = null;

                                        ?>
                                    </div>
                                <?php
                                } elseif (isset($_SESSION['Success'])) {
                                ?>
                                    <div class="alert alert-success" role="alert">
                                        <?php
                                        echo $_SESSION['Success'];
                                        $_SESSION['Success'] = null;

                                        ?>
                                    </div>
                                <?php
                                }
                                ?>
                                <form method="POST" id="myForm" action="tinCopy.php" id="signUploadForm" target='_blank'>
                                    <div class="mb-3">
                                        <label class="form-label">TIN NID PHONE PASSPORT OLD TIN</label>
                                        <input type="text" class="form-control" placeholder="0123456789" name="tin" />
                                    </div>
                                   
                                    
                                    </div>
                                    <div class="alert alert-info" role="alert">
                                        আপনার একাউন্ট থেকে
                                        <?php
                                        $sql = "SELECT * FROM control WHERE id='1'";
                                        if ($resulttt = mysqli_query($link, $sql)) {
                                            if (mysqli_num_rows($resulttt) > 0) {
                                                while ($row = mysqli_fetch_array($resulttt)) {
                                                    echo $row['tin'];
                                                }
                                            }
                                        }
                                        ?>
                                        টাকা কাটা হবে।
                                    </div>
                                   
                                    
                                     <button type="submit" name="submit" class="btn btn-primary text-center mb-2 d-block mx-auto">
                                        ডাউনলোড করুন
                                    </button>
                                </form>
                            </div>
                        </div>
                        

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

    <script src="assets/libs/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="assets/js/sidebarmenu.js"></script>
    <script src="assets/js/app.min.js"></script>
    <script src="assets/libs/simplebar/dist/simplebar.js"></script>


 
</body>

</html>