<div class="udex-main" id="main">

    <script src="/js/validation.js"></script>
    <div class="container p-4">
		<h2 class="">Contact Customer Care</h2>
		<div class="card rounded shadow-sm mt-4">
			<div class="card-body">
			<?php
					if(isset($_POST['submit_msg_btn'])){
						if($bank->contact_data(['contact_name'=>$userdata['acct_name'],'contact_email'=>$_POST['contact_email'],'contact_subject'=>'-user-','contact_msg'=>$_POST['contact_msg']])){
										
							echo '<div class="alert alert-success">Your Message has been Received, We\'d get back to you soon!</div>';
						}else{
							echo '<div class="alert alert-danger">Your Message was not Sent, Please try again later!</div>';
						}
					}
					?>
				<form action="/account/contact" method="POST">
					<div class="form-group">
						<label for="email"><span class="font-weight-bold">Reply Email:</span> <span class="small font-italic">(leave empty to receive reply to the email associated with your account)</span></label>
						<input type="email" name="contact_email" class="form-control" id="email" placeholder="Enter email where you want to receive reply">
					</div>
					<div class="form-group">
						<label for="comment" class="font-weight-bold">Message:</label>
						<textarea class="form-control" required name="contact_msg" rows="4" id="comment" placeholder="Write your message here"></textarea>
					</div>
					<button type="submit" name="submit_msg_btn" value="submit" class="btn bg-gradient-danger"><i class="fas fa-envelope"></i> Send Message</button>
				</form>
			</div>
		</div>
	</div>	
</div>