<?php
$data = $contacts[0];
$contactid = $data['contactid'];
$name = $data['firstname'].' '.$data['lastname'];
$title = $data['title'];
$initial = $data['initial'];
$birthdate = $data['birthdate'];
$email_1 = $data['email_1'];
$email_2 = $data['email_2'];
$phone = $data['phone'];
$mobile_1 = $data['mobile_1'];
$mobile_2 = $data['mobile_2'];
$createdate = date('d-m-Y', strtotime($data['createdate']));
?>
<div class="modal-header">
	<h4 class="modal-title" id="tooltipmodel">Contact Detail</h4>
	<button type="button" class="btn-close" data-bs-dismiss="modal" aria-hidden="true"></button>
</div>
<div class="modal-body">
	<div class='row'>
		<div class='col-3'>Contact ID</div>	<div class='col-9'>: <?=$contactid;?></div>
	</div>
	<div class='row'>
		<div class='col-3'>Name</div> <div class='col-9'>: <?=$name;?></div>
	</div>
	<div class='row'>
		<div class='col-3'>Title</div> <div class='col-9'>: <?=$title;?></div>
	</div>
	<div class='row'>
		<div class='col-3'>Initial</div> <div class='col-9'>: <?=$initial;?></div>
	</div>
	<div class='row'>
		<div class='col-3'>Birthdate</div> <div class='col-9'>: <?=$birthdate;?></div>
	</div>
	<div class='row'>
		<div class='col-3'>Email 1</div> <div class='col-9'>: <?=$email_1;?></div>
	</div>
	<div class='row'>
		<div class='col-3'>Email 2</div> <div class='col-9'>: <?=$email_2;?></div>
	</div>
	<div class='row'>
		<div class='col-3'>Phone</div> <div class='col-9'>: <?=$phone;?></div>
	</div>
	<div class='row'>
		<div class='col-3'>Mobile 1</div> <div class='col-9'>: <?=$mobile_1;?></div>
	</div>
	<div class='row'>
		<div class='col-3'>Mobile 2</div> <div class='col-9'>: <?=$mobile_2;?></div>
	</div>
	<div class='row'>
		<div class='col-3'>Create Date</div> <div class='col-9'>: <?=$createdate;?></div>
	</div>
</div>
<div class="modal-footer">
	<button type="button" class="btn btn-info waves-effect text-white" data-bs-dismiss="modal">Close</button>
</div>
