<div class="col-sm-12 col-xs-12">
	<div class="contact_form user_contact mi-padding-top">
		<div class="style_2 contact-form ">
			<div class="left_form_area gradient_1">
				

				<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>
				
				<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>

				<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><!-- left_form_area -->
			<div class="form_area">
				<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-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'):"Subjects"?></label>
								<input type="text" name="subject" class="form-control" placeholder="<?= !empty(lang('email_sub'))?lang('email_sub'):"Subjects"?>" 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 -->
					<?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>
	</div>
</div>