<br>
<div class="row">
	<div class="col-md-8 col-md-offset-2">
		<div class="panel panel-default">
			<div class="panel-heading">
				User Profile : <?= $user->f_name." ".$user->l_name ?>
			</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-xs-3">
						<h5 class="text-right"><strong>First Name :</strong></h5>
					</div>
					<div class="col-xs-9">
						<h5><?= $user->f_name ?></h5>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-3">
						<h5 class="text-right"><strong>Last Name :</strong></h5>
					</div>
					<div class="col-xs-9">
						<h5><?= $user->f_name ?></h5>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-3">
						<h5 class="text-right"><strong>Email Address :</strong></h5>
					</div>
					<div class="col-xs-9">
						<h5><?= $user->email ?></h5>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-3">
						<h5 class="text-right"><strong>Phone No. :</strong></h5>
					</div>
					<div class="col-xs-9">
						<h5><?= $user->phone_no ?></h5>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-3">
						<h5 class="text-right"><strong>User Name :</strong></h5>
					</div>
					<div class="col-xs-9">
						<h5><?= $user->username ?></h5>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-3">
						<h5 class="text-right"><strong>Address :</strong></h5>
					</div>
					<div class="col-xs-9">
						<h5><?= $user->address ?></h5>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-3">
						<h5 class="text-right"><strong>City :</strong></h5>
					</div>
					<div class="col-xs-9">
						<h5><?= $user->city ?></h5>
					</div>
				</div>

				<div class="row">
					<div class="col-xs-3">
						<h5 class="text-right"><strong>Profile Image :</strong></h5>
					</div>
					<div class="col-xs-9">
						<img src="<?= base_url('uploads/'.$user->profile_img) ?>" class="img-responsive img-thumbnail" style="width:150px; height: auto;">
					</div>
				</div>

				<div class="row">
					<div class="col-xs-3">
						<h5 class="text-right"><strong>Role :</strong></h5>
					</div>
					<div class="col-xs-9">
						<h5><?= $user->role_name ?></h5>
					</div>
				</div>
				<?php foreach ($user_resource_type as $resource_type) : ?>
				<div class="row">
					<div class="col-xs-3">
						<h5 class="text-right"><strong><?= $resource_type->user_resource_type_name ?> :</strong></h5>
					</div>
					<div class="col-xs-9">
						<h5>
						<?php foreach($user_resource_data as $resource_data) {
							if($resource_data->resource_type==$resource_type->user_resource_type_ID){
								echo $resource_data->resource_data;
							}
						} ?>
						</h5>
					</div>
				</div>
				<?php endforeach;?>
			</div>

			<div class="panel-footer">
				<div class="text-right">
					<?= edit_action(base_url('users'),$user->user_ID,TRUE,'EDIT USER');  ?> &nbsp;&nbsp;&nbsp;
					<?= delete_action(base_url('users'),$user->user_ID,'Are you sure you want to delete this User? ',TRUE,'Delete User');  ?>
				</div>
			</div>
		</div>
	</div>
</div>