<?php
    include "../../db.php";
    require '../../auth.php';
    restrictAccess(['master_admin']);
    date_default_timezone_set('Asia/Kolkata');
    $currentTime = date('M j, Y g:i a');

    if ( !isset($_SESSION['uid']) && !isset($_SESSION['uref']) && !isset($_SESSION['utype']) ) {
        header("Location: ../logout.php");
        exit();
    }

    if ( $_SESSION['utype'] != 'master_admin' && $_SESSION['uref'] != 'fssdf4543frts' ) {
        header("Location: ../logout.php");
        exit();
    }
?>

<!DOCTYPE html>
<html lang="en">

<head>
    <?php include "include/meta.php"; ?>
    <?php include "include/css.php"; ?>
    <?php include "include/php-functions.php"; ?>
</head>

<body>
    <!--  Header -->
    <?php 
    include "include/header.php"; 
    ?>
    <!-- #header -->

    <section id="inner-body">
        <div class="body-content">
            <div class="container-fluid">
                <div class="row align-items-center">
                    <div class="col-lg-3 col-md-3 col-12 mb-2">
                        <a href="status_view.php" class="text-dark" style="text-decoration:none;">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row align-items-center">
                                        <div class="col-md-8 col-6">
                                            <h5 class="card-title text-uppercase color-4b4be9">All Candidates</h5>
                                        </div>
                                        <div class="col-md-4 col-6">
                                            <div class="text-end">
                                                <h2 class="color-f25f00">
                                                    <i class="fa fa-users"></i>
                                                </h2>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </a>
                    </div>
                    <div class="col-lg-3 col-md-3 col-12 mb-2">
                        <a href="duplicate.php" class="text-dark" style="text-decoration:none;">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row align-items-center">
                                        <div class="col-md-8 col-6">
                                            <h5 class="card-title text-uppercase color-4b4be9">Duplicate</h5>
                                        </div>
                                        <div class="col-md-4 col-6">
                                            <div class="text-end">
                                                <h2 class="color-f25f00">
                                                    <i class="fa fa-clone"></i>
                                                </h2>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </a>
                    </div>

                    <div class="col-lg-3 col-md-3 col-12 mb-2">
                        <a href="global-Data.php" class="text-dark" style="text-decoration:none;">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row align-items-center">
                                        <div class="col-md-8 col-6">
                                            <h5 class="card-title text-uppercase color-4b4be9">Global Data</h5>
                                        </div>
                                        <div class="col-md-4 col-6">
                                            <div class="text-end">
                                                <h2 class="color-f25f00">
                                                    <i class="fa fa-globe"></i>
                                                </h2>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </a>
                    </div>

                    <div class="col-lg-3 col-md-3 col-12 mb-2">
                        <a href="status.php" class="text-dark" style="text-decoration:none;">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row align-items-center">
                                        <div class="col-md-8 col-10">
                                            <h5 class="card-title text-uppercase color-4b4be9">Status
                                            </h5>
                                        </div>
                                        <div class="col-md-4 col-2">
                                            <div class="text-end">
                                                <h2 class="color-f25f00">
                                                    <i class="fa fa-check"></i>
                                                </h2>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </a>
                    </div>
                    <div class="col-lg-3 col-md-3 col-12 mb-2">
                        <a href="lead_source.php" class="text-dark" style="text-decoration:none;">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row align-items-center">
                                        <div class="col-md-7 col-9">
                                            <h5 class="card-title text-uppercase color-4b4be9">Lead Source</h5>
                                        </div>
                                        <div class="col-md-5 col-3">
                                            <div class="text-end">
                                                <h2 class="color-f25f00">
                                                    <i class="fa fa-arrows-to-eye"></i>
                                                </h2>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </a>
                    </div>
                    <div class="col-lg-3 col-md-3 col-12 mb-2">
                        <a href="xcelr.php" class="text-dark" style="text-decoration:none;">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row align-items-center">
                                        <div class="col-md-8 col-9">
                                            <h5 class="card-title text-uppercase color-4b4be9">Data Upload</h5>
                                        </div>
                                        <div class="col-md-4 col-3">
                                            <div class="text-end">
                                                <h2 class="color-f25f00">
                                                    <i class="fa fa-upload"></i>
                                                </h2>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </a>
                    </div>
                    <div class="col-lg-3 col-md-3 col-12 mb-2">
                        <a href="all_agents.php" class="text-dark" style="text-decoration:none;">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row align-items-center">
                                        <div class="col-md-8 col-9">
                                            <h5 class="card-title text-uppercase color-4b4be9">Agent's Work</h5>
                                        </div>
                                        <div class="col-md-4 col-3">
                                            <div class="text-end">
                                                <h2 class="color-f25f00">
                                                    <i class="fa fa-user-secret"></i>
                                                </h2>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </a>
                    </div>

                    <div class="col-lg-3 col-md-3 col-12 mb-2">
                        <a href="recycle-lead-list.php" class="text-dark" style="text-decoration:none;">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row align-items-center">
                                        <div class="col-md-7 col-6">
                                            <h5 class="card-title text-uppercase color-4b4be9">RecycleBin</h5>
                                        </div>
                                        <div class="col-md-5 col-6">
                                            <div class="text-end">
                                                <h2 class="color-f25f00">
                                                    <i class="fa fa-trash"></i>
                                                </h2>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <?php include "include/footer.php"; ?>
    </section>

    <!-- JavaScript Libraries -->

    <?php include "include/js.php"; ?>


</body>

</html>