<?php
date_default_timezone_set('Asia/Kolkata'); 
//echo $date = date("Y-m-d", time());
include ('../config.php');
@session_start();
@$user_id1=$_SESSION['user_id1'];
@$idvfied1=$_SESSION['idverified1'];
@$namevfied1=$_SESSION['namevfied1'];
if(!isset($_SESSION['user_id1'])){
	header("Location: index.php");
}
$wpq = mysqli_query($conwhatsapp, "SELECT * FROM wp_admin WHERE empid='".@$user_id1."' AND Status='Active'");
$dataWP = mysqli_fetch_array($wpq);

if ($dataWP['empid'] == '') {
	header("Location: dashboard.php");
	exit;
}
$timeout = 60 * 60 * 24 * 365;
$s_name = session_name();
if(isset( $_COOKIE[ $s_name ] )) {
  setcookie( $s_name, $_COOKIE[ $s_name ], time() + $timeout, '/' );
}

$sel1=mysqli_query($conn,"select * from hr_dump where empid='".@$user_id1."'");
$fetch1=mysqli_fetch_array($sel1);
?>

<!doctype html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <title>Whatsapp Dashboard IC AMS</title>
	
	<?php	include ('header.php');	?>
	
	<div id="appCapsule">
        <div class="section wallet-card-section pt-1 mb-4">
            <div class="wallet-card">
				<?php	include ('include/wallet-balance.php');	?>
				<div class="row text-center">
					<div class="col-sm-6 p-2">
						<div class="row stat-box">
							<h6 class="text-center">Whatsapp Group</h6>
							<div class="col">
								<a href="whatsapp-group-create.php"><div class="icon-wrapper"><i class="fas fa-users-cog"></i></div>
									<strong class="pstrong">Create Group</strong>
								</a>
							</div>
							<div class="col">
								<a href="whatsapp-group-list.php"><div class="icon-wrapper"><i class="fas fa-list"></i></div>
									<strong class="pstrong">Group Member List</strong>
								</a>
							</div>
						</div> 
					</div>
					<div class="col-sm-6 p-2">
						<div class="row stat-box">
							<h6 class="text-center">Whatsapp Community</h6>
							<div class="col">
								<a href="whatsapp-community-create.php"><div class="icon-wrapper"><i class="fas fa-users"></i></div>
									<strong class="pstrong">Craete Community</strong>
								</a>
							</div>
							<div class="col">
								<a href="whatsapp-community-list.php"><div class="icon-wrapper"><i class="fas fa-list"></i></div>
									<strong class="pstrong">Community Member List</strong>
								</a>
							</div>
						</div> 
					</div>
				</div>
            </div>
        </div>
	
		<?php	include ('include/copyright.php');	?>
	</div>
	
	<?php	include ('footer.php');	?>