<div class="row">
	<div class="col-md-4">
		<div class="row">
			<div class="col-md-12">
				<div class="panel">
					<div class="panel-body">
						<ul class="p-info">
							<li>
								<div class="title">Full Name</div>
								<div class="desk"><?php echo getProfileData($_SESSION["uid"], "first_name"); ?></div>
							</li>
							<li>
								<div class="title">Email</div>
								<div class="desk"><?php echo getProfileData($_SESSION["uid"], "email"); ?></div>
							</li>
							<li>
								<div class="title">Mobile</div>
								<div class="desk"><?php echo getProfileData($_SESSION["uid"], "mobile"); ?></div>
							</li>
						</ul>
					</div>
				</div>
			</div>
			<div class="col-md-12">
				<div class="panel">
					<div class="panel-body p-states">
						<div class="summary pull-left">
							<h4>Address <span>Information</span></h4>
							<br>
							<div>
								<?php echo getProfileData($_SESSION["uid"], "address"); ?> <br>
								<?php echo getProfileData($_SESSION["uid"], "zip"); ?> <?php echo getProfileData($_SESSION["uid"], "city"); ?><br>
								<?php echo getProfileData($_SESSION["uid"], "state"); ?> <?php echo getProfileData($_SESSION["uid"], "country"); ?>
							</div>
						</div>
						<div id="expense" class="chart-bar"></div>
					</div>
				</div>
			</div>
			<?php if($_SESSION["role"]=="1"){ ?>
			<div class="col-md-12">
				<div class="panel">
					<div class="panel-body p-states">
						<div class="summary pull-left">
							<h4>Group <span>Information</span></h4>
							<span>Which group you currenty subscribe</span>
							<h3 style='margin-bottom: 10px;border-bottom: 2px solid #F5F5F5;padding-bottom: 10px;'><?php echo getActiveGroup($_SESSION["uid"], "groups_name"); ?></h3>
						</div>
						<div id="expense" class="chart-bar"></div>
					</div>
				</div>
			</div>
			<?php } ?>
		</div>
	</div>
	<div class="col-md-8">
		<div class="row">
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title">Last Login Attempt</h3>
				</div>
				<div class="panel-body">
					<?php lastLoginAttempt(10); ?>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-4">
				<a href="/profile/edit" class="btn btn-info btn-lg btn-block">
				EDIT PROFILE
				</a>
			</div>
			<div class="col-md-4">
				<a href="/profile/chpwd" class="btn btn-success btn-lg btn-block">
				CHANGE PASSWORD
				</a>
			</div>
		</div>
	</div>
</div>