<?php

	include 'header.php';
	include 'navbar.php';



	/*require_once('includes/API_Config.php');
  
	$obj = new API_Config;
	$data = array();
	$data['refer_id'] = $_SESSION['refer_id'];
	$data['user_id'] = $_SESSION['user_id'];
	$response = json_decode($obj->call_API("API_dashboardDetails.php", $data));
	$profile = $response->data->personal_info[0];
	$packageInfo = $response->data->package_info;
	$joinees = $response->data->recently_joined;
	$sales  = $response->data->sales[0];*/
	//print_r($_SESSION);

?>

<!--div class="container-fluid page-body-wrapper">
   <div class="main-panel">
       <div class="content-wrapper">
				<div class="row">
						<div class="col-md-6 grid-margin">
							<div class="card">
								<div class="card-body">
									<h4 class="card-title mb-0">Total Payout</h4>
									<div class="d-flex justify-content-between align-items-center">
										<div class="d-inline-block pt-3">
											<div class="d-flex">
												<h2 class="mb-0">PV 0.0</h2>
												<div class="d-flex align-items-center ml-2">
													<i class="mdi mdi-clock text-muted"></i>
													<small class=" ml-1 mb-0">Updated: 15-08-2018</small>
												</div>
											</div>
											<small class="text-gray">Raised from 89 orders.</small>
										</div>
										<div class="d-inline-block">
											<div class="bg-success px-4 py-2 rounded">
												<i class="mdi mdi-buffer text-white icon-lg"></i>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>

	                    <div class="col-md-6 grid-margin">
							<div class="card">
								<div class="card-body">
									<h4 class="card-title mb-0">Today's Sale</h4>
									<div class="d-flex justify-content-between align-items-center">
										<div class="d-inline-block pt-3">
											<div class="d-flex">
												<h2 class="mb-0">PV 50</h2>
												<div class="d-flex align-items-center ml-2">
													<i class="mdi mdi-clock text-muted"></i>
													<small class=" ml-1 mb-0">Updated: 05:42pm</small>
												</div>
											</div>
											<small class="text-gray">hey, let’s have lunch together</small>
										</div>
										<div class="d-inline-block">
											<div class="bg-warning px-4 py-2 rounded">
												<i class="mdi mdi-wallet text-white icon-lg"></i>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
	
		<!-- partial -->
		<!--div class="container-fluid page-body-wrapper">
		  <div class="main-panel">
			<div class="content-wrapper">
			  <div class="row">
				<div class="col-12 grid-margin">
				  <div class="card card-statistics">
					<div class="row">
					  <div class="card-col col-xl-3 col-lg-3 col-md-3 col-6">
						<div class="card-body">
							<div class="d-flex align-items-center justify-content-center flex-column flex-sm-row">
							  <i class="mdi mdi-account-multiple-outline text-primary mr-0 mr-sm-4 icon-lg"></i>
							  <div class="wrapper text-center text-sm-left">
								<p class="card-text mb-0">Total Users</p>
								<div class="fluid-container">
								  <h3 class="card-title mb-0">65,650</h3>
								</div>
							  </div>
							</div>
						  </div>
					  </div>
					  <div class="card-col col-xl-3 col-lg-3 col-md-3 col-6">
						<div class="card-body">
							<div class="d-flex align-items-center justify-content-center flex-column flex-sm-row">
							  <i class="mdi mdi-checkbox-marked-circle-outline text-primary mr-0 mr-sm-4 icon-lg"></i>
							  <div class="wrapper text-center text-sm-left">
								<p class="card-text mb-0">Active Users</p>
								<div class="fluid-container">
								  <h3 class="card-title mb-0">32,604</h3>
								</div>
							  </div>
							</div>
						  </div>
					  </div>
					  <div class="card-col col-xl-3 col-lg-3 col-md-3 col-6">
						<div class="card-body">
							<div class="d-flex align-items-center justify-content-center flex-column flex-sm-row">
							  <i class="mdi mdi-trophy-outline text-primary mr-0 mr-sm-4 icon-lg"></i>
							  <div class="wrapper text-center text-sm-left">
								<p class="card-text mb-0">Rewards</p>
								<div class="fluid-container">
								  <h3 class="card-title mb-0">17,583</h3>
								</div>
							  </div>
							</div>
						  </div>
					  </div>
					  <div class="card-col col-xl-3 col-lg-3 col-md-3 col-6">
						<div class="card-body">
							<div class="d-flex align-items-center justify-content-center flex-column flex-sm-row">
							  <i class="mdi mdi-target text-primary mr-0 mr-sm-4 icon-lg"></i>
							  <div class="wrapper text-center text-sm-left">
								<p class="card-text mb-0">Total Sales</p>
								<div class="fluid-container">
								  <h3 class="card-title mb-0">61,119</h3>
								</div>
							  </div>
							</div>
						  </div>
					  </div>
					</div>
				  </div>
				</div>
			  </div>
			 
			   
		   <h4> Latest Joining</h4>
			  <div class="row">
				<div class="col-12 grid-margin">
				  <div class="card">
					<div class="table-responsive">
					  <table class="table center-aligned-table">
						<thead>
						  <tr class="bg-light">
							<th class="border-bottom-0">User ID</th>
							<th class="border-bottom-0">User Name</th>
							<th class="border-bottom-0">Sponser Id</th>
							<th class="border-bottom-0">Purchase Amount</th>
							<th class="border-bottom-0">Status</th>
							<th class="border-bottom-0">PV</th>
						  </tr>
						</thead>
						<tbody>
						  <tr>
							<td>#320</td>
							<td>Mark C.Diaz</td>
							<td>Support of thteme</td>
							<td>Credit card</td>
							<td><label class="badge badge-success">Approved</label></td>
							<td>$12,245</td>
							
						  </tr>
						  <tr>
							<td>#321</td>
							<td>Jose D</td>
							<td>Verify your email address !</td>
							<td>Internet banking</td>
							<td><label class="badge badge-warning">Pending</label></td>
							<td>$12,245</td>
							
						  </tr>
						  <tr>
							<td>#322</td>
							<td>Philips T</td>
							<td>Item support message send</td>
							<td>Credit card</td>
							<td><label class="badge badge-success">Approved</label></td>
							<td>$12,245</td>
							
						  </tr>
						  <tr>
							<td>#323</td>
							<td>Luke Pixel</td>
							<td>New submission on website</td>
							<td>Cash on delivery</td>
							<td><label class="badge badge-danger">Rejected</label></td>
							<td>$12,245</td>
							
						  </tr>
						</tbody>
					  </table>
					</div>
				  </div>
				</div>
			  </div>
			  
			 
			  
			  <div class="row">
				<div class="col-md-6 grid-margin stretch-card">
				  <div class="card">
					<div class="card-body">
					  <h5 class="card-title">The Current Chart</h5>
					  <canvas id="current-chart" height="100"></canvas>
					</div>
					<div class="border-top py-4 px-4">
					  <p class="mb-0 text-gray">Projects Status</p>
					  <div class="d-flex align-items-end">
						<h2 class="mb-0 display-2 font-weight-semibold">76,533</h2>
						<p class="mb-2 ml-1">PCS</p>
					  </div>
					</div>
				  </div>
				</div>
				<div class="col-md-6 grid-margin stretch-card">
								<div class="card">
									<div class="card-body">
										<h5 class="card-title">Updates</h5>
										<ul class="bullet-line-list">
											<li>
												<h6>User confirmation</h6>
												<p class="mb-0">Donec rutrum congue leo eget malesuada.</p>
												<p class="text-muted">
													<i class="mdi mdi-clock"></i>
													7 months ago.
												</p>
											</li>
											<li>
												<h6>Continuous evaluation</h6>
												<p class="mb-0">Vivamus suscipit tortor eget felis porttitor volutpat.</p>
												<p class="text-muted">
													<i class="mdi mdi-clock"></i>
													7 months ago.
												</p>
											</li>
											<li>
												<h6>Promotion</h6>
												<p class="mb-0">Curabitur non nulla sit amet nisl tempus convallis quis ac lectus.</p>
												<p class="text-muted">
													<i class="mdi mdi-clock"></i>
													7 months ago.
												</p>
											</li>
										</ul>
									</div>
								</div>
							</div>
			  </div>
			  
			  <h4>Support</h4>
			  <div class="row">
				<div class="col-12 grid-margin">
				  <div class="card">
					<div class="card-body">
					  <h5 class="card-title mb-4">Manage Tickets</h5>
					  <div class="fluid-container">
						<div class="row ticket-card mt-3 pb-2 border-bottom pb-3 mb-3">
						  <div class="col-md-1">
							<img class="img-sm rounded-circle mb-4 mb-md-0" src="https://placehold.it/100x100" alt="profile image">
						  </div>
						  <div class="ticket-details col-md-9">
							<div class="d-flex">
							  <p class="text-dark font-weight-bold mr-2 mb-0 no-wrap">James :</p>
							  <p class="font-weight-medium mr-1 mb-0">[#23047]</p>
							  <p class="font-weight-semibold mb-0 ellipsis">Donec rutrum congue leo eget malesuada.</p>
							</div>
							<p class="text-small text-gray mb-2">Donec rutrum congue leo eget malesuada. Quisque velit nisi, pretium ut lacinia in, elementum id enim vivamus.</p>
							<div class="row text-gray d-md-flex d-none">
							  <div class="col-4 d-flex">
								<p class="mb-0 mr-2 text-muted text-muted">Last responded :</p>
								<p class="Last-responded mr-2 mb-0 text-muted text-muted">3 hours ago</p>
							  </div>
							  <div class="col-4 d-flex">
								<p class="mb-0 mr-2 text-muted text-muted">Due in :</p>
								<p class="Last-responded mr-2 mb-0 text-muted text-muted">2 Days</p>
							  </div>
							</div>
						  </div>
						  <div class="ticket-actions col-md-2">
							<div class="btn-group dropdown">
							  <button type="button" class="btn btn-primary dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
								Manage
							  </button>
							  <div class="dropdown-menu">
								<a class="dropdown-item" href="#"><i class="fa fa-reply fa-fw"></i>Quick reply</a>
								<a class="dropdown-item" href="#"><i class="fa fa-history fa-fw"></i>Another action</a>
								<div class="dropdown-divider"></div>
								<a class="dropdown-item" href="#"><i class="fa fa-check text-success fa-fw"></i>Resolve Issue</a>
								<a class="dropdown-item" href="#"><i class="fa fa-times text-danger fa-fw"></i>Close Issue</a>
							  </div>
							</div>
						  </div>
						</div>
						<div class="row ticket-card mt-3 pb-2 border-bottom pb-3 mb-3">
						  <div class="col-md-1">
							<img class="img-sm rounded-circle mb-4 mb-md-0" src="https://placehold.it/100x100" alt="profile image">
						  </div>
						  <div class="ticket-details col-md-9">
							<div class="d-flex">
							  <p class="text-dark font-weight-bold mr-2 mb-0 no-wrap">Stella :</p>
							  <p class="font-weight-medium mr-1 mb-0">[#23135]</p>
							  <p class="font-weight-semibold mb-0 ellipsis">Curabitur aliquet quam id dui posuere blandit.</p>
							</div>
							<p class="text-small text-gray mb-2">Pellentesque in ipsum id orci porta dapibus. Sed porttitor lectus nibh. Curabitur non nulla sit amet nisl.</p>
							<div class="row text-gray d-md-flex d-none">
							  <div class="col-4 d-flex">
								<p class="mb-0 mr-2 text-muted">Last responded :</p>
								<p class="Last-responded mr-2 mb-0 text-muted">3 hours ago</p>
							  </div>
							  <div class="col-4 d-flex">
								<p class="mb-0 mr-2 text-muted">Due in :</p>
								<p class="Last-responded mr-2 mb-0 text-muted">2 Days</p>
							  </div>
							</div>
						  </div>
						  <div class="ticket-actions col-md-2">
							<div class="btn-group dropdown">
							  <button type="button" class="btn btn-primary dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
								Manage
							  </button>
							  <div class="dropdown-menu">
								<a class="dropdown-item" href="#"><i class="fa fa-reply fa-fw"></i>Quick reply</a>
								<a class="dropdown-item" href="#"><i class="fa fa-history fa-fw"></i>Another action</a>
								<div class="dropdown-divider"></div>
								<a class="dropdown-item" href="#"><i class="fa fa-check text-success fa-fw"></i>Resolve Issue</a>
								<a class="dropdown-item" href="#"><i class="fa fa-times text-danger fa-fw"></i>Close Issue</a>
							  </div>
							</div>
						  </div>
						</div>
						<div class="row ticket-card mt-3">
						  <div class="col-md-1">
							<img class="img-sm rounded-circle mb-4 mb-md-0" src="https://placehold.it/100x100" alt="profile image">
						  </div>
						  <div class="ticket-details col-md-9">
							<div class="d-flex">
							  <p class="text-dark font-weight-bold mr-2 mb-0 no-wrap">John Doe :</p>
							  <p class="font-weight-medium mr-1 mb-0">[#23246]</p>
							  <p class="font-weight-semibold mb-0 ellipsis">Mauris blandit aliquet elit, eget tincidunt nibh pulvinar.</p>
							</div>
							<p class="text-small text-gray mb-2">Nulla quis lorem ut libero malesuada feugiat. Proin eget tortor risus. Lorem ipsum dolor sit amet.</p>
							<div class="row text-gray d-md-flex d-none">
							  <div class="col-4 d-flex">
								<p class="mb-0 mr-2 text-muted">Last responded :</p>
								<p class="Last-responded mr-2 mb-0 text-muted">3 hours ago</p>
							  </div>
							  <div class="col-4 d-flex">
								<p class="mb-0 mr-2 text-muted">Due in :</p>
								<p class="Last-responded mr-2 mb-0 text-muted">2 Days</p>
							  </div>
							</div>
						  </div>
						  <div class="ticket-actions col-md-2">
							<div class="btn-group dropdown">
							  <button type="button" class="btn btn-primary dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
								Manage
							  </button>
							  <div class="dropdown-menu">
								<a class="dropdown-item" href="#"><i class="fa fa-reply fa-fw"></i>Quick reply</a>
								<a class="dropdown-item" href="#"><i class="fa fa-history fa-fw"></i>Another action</a>
								<div class="dropdown-divider"></div>
								<a class="dropdown-item" href="#"><i class="fa fa-check text-success fa-fw"></i>Resolve Issue</a>
								<a class="dropdown-item" href="#"><i class="fa fa-times text-danger fa-fw"></i>Close Issue</a>
							  </div>
							</div>
						  </div>
						</div>
					  </div>
					</div>
				  </div>
				</div>
			  </div>
			</div>




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

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