<div class="col-sm-12 col-xs-12">
	<div class="topt_contact">
		<div class="row">
			<div class="col-sm-4">
				<a href="<?= contact_url('phone',$contact['phone'])?>">
					<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>
				</a>
			</div>

			<div class="col-sm-4">
				<a href="<?= contact_url('gmap',$contact['gmap'])?>" target="blank">
					<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>
				</a>
			</div>

		<div class="col-sm-4">
			<a href="<?= contact_url('email',$contact['email'])?>">
				<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>
			</a>
		</div>


	</div>
</div>
<div class="contact_form user_contact mi-padding-top">
	<form action="<?= base_url('profile/user_contact_mail/'.$slug); ?>" id="user_contact" method="post">
		<!-- 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" style="display: none;"></div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-6">
				<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-6">
				<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 -->
		<?php $cap_setting = json_decode($this->common_m->single_select_by_user($id,'user_settings')['recaptcha_config']); ?>
			<?php if(isset($cap_setting->is_recaptcha) && $cap_setting->is_recaptcha==1): ?>
	            <div class="row mb-5">
	              <div class="col-md-6">
	                <div class="g-recaptcha" data-sitekey="<?= !empty($cap_setting->g_site_key)?$cap_setting->g_site_key:"";?>"></div>
	              </div>
	            </div>
          	<?php endif;?>
		<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>