<?php
include 'header.php';

?>


<div class="pt-28 md:pt-0 mt-0 md:mt-36 w-full md:w-4/5" id="general-content">
    <div class="w-full md:w-10/12 md:ml-64 2xl:ml-1/5" id="general-content-section">


        <div class="w-full py-5">
            <div class="w-full flex justify-center">
                <div class="w-11/12 rounded-md bg-[#0e1726] p-2 md:p-4">
                    <div class="flex justify-between items-center">
                        <div>

                            <h2 class="bg-transparent text-[#ebedf2] font-medium capitalize">
                                user status
                            </h2>
                        </div>

                        <div>
                            <a href="dashboard.php"
                                class="flex justify-start items-center text-xs text-gray-400 hover:text-white">
                                <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24"
                                    stroke="currentColor" stroke-width="2">
                                    <path stroke-linecap="round" stroke-linejoin="round"
                                        d="M11 17l-5-5m0 0l5-5m-5 5h12" />
                                </svg>
                                <span>back</span>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>



        <div id="preloader" class="action-preloader">
            <div id="loading-bar-spinner" class="spinner">
                <div class="spinner-icon"></div>
            </div>
        </div>










        <div class="w-full py-5">
            <div class="w-full flex justify-center">
                <div class="w-11/12 rounded-md bg-[#0e1726] p-2 md:p-4">
                    <div class="flex justify-between">
                        <div class="flex justify-start items-center space-x-2">
                            <div>

                                <h2 class="bg-transparent text-[#ebedf2] md:text-lg font-medium capitalize">
                                    Hi <span class=""><?php echo $full_name ?></span>!
                                </h2>
                            </div>

                            <div>
                                <h6 class="h-3 w-3 rounded-full animate-pulse bg-gray-500 shadow-lg shadow-gray-300">
                                </h6>
                            </div>
                        </div>
                    </div>

                    <?php 
                        if($status == 'inactive'){
                    ?>
                    <p
                        class="text-xs md:text-sm font-normal text-[#d1d5db] text-center p-5 md:ml-4 mt-5 bg-[#1b2e4b] rounded-md">
                        You have not uploaded your identity verification documents
                    </p>

                    <h4 class="text-[#ebedf2] text-xs md:text-sm mt-5 px-5">
                        To begin your id verification:
                    </h4>
                    <div class="w-full my-5 px-5">
                        <a class="w-full text-xs md:text-sm text-[#d1d5db] text-center px-5 py-3 my-5 bg-[#1b2e4b] hover:bg-gray-700 rounded-md"
                            href="upload.php">
                            Click here
                        </a>
                    </div>
                    
                    <?php } ?>
                    
                    <?php 
                        if($status == 'submitted'){
                    ?>
                    
                    <p class="text-xs md:text-sm font-normal text-[#d1d5db] text-center p-5 md:ml-4 mt-5 bg-[#1b2e4b] rounded-md">
                       Your documents are under review.
                    </p>

                    <?php } ?>
                    
                    <?php 
                        if($status == 'active'){
                    ?>
                    
                    <p class="text-xs md:text-sm font-normal text-[#d1d5db] text-center p-5 md:ml-4 mt-5 bg-[#1b2e4b] rounded-md">
                       Your documents are verified  
                    </p>

                    <?php } ?>

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


    </div>
</div>

</div>


<?php include 'footer.php'; ?>