<?php if(get_user_pricing_by_id($id,'contacts')==1 && is_active($id,'contacts')==1): ?>
<div class="row line " id="contacts" >
	<div class="col-md-9 left_line pt-50">
		<div class="heading ">
			<h4 class="mi-heading"><?= get_features_name('contacts');?></h4>
		</div>
		<div class="contact_form user_contact">
			<div class="style_2 contact-form ">
				<div class="left_form_area gradient_1">
					<div class="contact_top">
						<div class="single_contact_top">
							<i class="fa fa-envelope-o"></i>
							<p><?php 
							$string = $contact['email'];
							$string = str_replace(","," <br/>",$string);
							echo $string;
							?></p>

						</div>
					</div>

					<div class="contact_top">
						<div class="single_contact_top">
							<i class="fa fa-phone"></i>
							<p>
								<?php 
								$string = $contact['phone'];
								$string = str_replace(","," <br/>",$string);
								echo $string;
								?>
							</p>
						</div>
					</div>

					<div class="contact_top">
						<div class="single_contact_top">
							<i class="fa fa-map-o"></i>
							<p><?php 
							$string = $contact['address'];
							$string = str_replace(","," <br/>",$string);
							echo $string;
							?>
						</p>
					</div>
				</div>

			</div><!-- left_form_area -->
			<div class="form_area">
				<form action="<?= base_url('profile/user_contact_mail/'.$slug); ?>" id="home_contact">
					<!-- csrf -->
					<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>">
					<!-- csrf -->
					<input type="hidden" name="slug" value="<?= isset($slug)?$slug:'';?>">
					
					<div class="row">
						<div class="col-sm-12 col-xs-12">
							<div class="reg_msg"></div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-12">
							<div class="form-group">
								<label for=""><?= !empty(lang('name'))?lang('name'):"name"?></label>
								<input type="text" name="username" class="form-control" placeholder="<?= !empty(lang('name'))?lang('name'):"name"?>" autocomplete="off" required>
								<div class="alert_msg"></div>
							</div>
							<div class="form-group">
								<label for=""><?= !empty(lang('email'))?lang('email'):"email"?></label>
								<input type="email" name="email" class="form-control" placeholder="<?= !empty(lang('email'))?lang('email'):"email"?>" required>
							</div>
							<div class="form-group">
								<label for=""><?= !empty(lang('email_sub'))?lang('email_sub'):"Subject"?></label>
								<input type="text" name="subject" class="form-control" placeholder="<?= !empty(lang('email_sub'))?lang('email_sub'):"Subject"?>" required>
							</div>
						</div>
						<div class="col-sm-12">
							<div class="form-group">
								<label for=""><?= !empty(lang('msg'))?lang('msg'):"message"?></label>
								<textarea name="message" class="form-control" id="" cols="10" rows="10" placeholder="<?= !empty(lang('msg'))?lang('msg'):"message"?>" required></textarea>
							</div>
						</div>
					</div><!-- row -->
					<div class="row">
						<div class="form-group col-sm-12 text-center contact_btn">
							<button type="submit" name="btn" class="btn btn-primary mail_send_btn btn_style_<?= get_user_info_by_slug($slug)['btn_style'];?> " ><?= !empty(lang('submit'))?lang('submit'):"submit"?></button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
</div>	
<?php endif ?>