<div class="contact_form_area mt-50">
	<div class="container">
		<div class="row">
			<div class="col-sm-12">
				<div class="sectionHeader">
					<h1><?= get_features_name('contacts');?></h1>
				</div>
			</div>
		</div><!-- row -->
		<div class="row">
			<?php $setting = get_setting() ?>
			<div class="col-sm-12 col-xs-12">
				<div class="contact_form mi-padding-top home_contact">
					<form action="<?= base_url('home/send_mail'); ?>" id="home_contact" method="post">
						<!-- csrf -->
						<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>">
						<!-- csrf -->

						<div class="row">
							<div class="col-sm-6 col-xs-12">
								<div class="reg_msg" style="display: none;"></div>
							</div>
						</div>
						<div class="row mb-10">
							<?php if(!empty(get_setting()['email'])): ?>
								<div class="col-md-6">
									<div class="contact_with_email">
										<p><?= !empty(lang('contact_with_email'))?lang('contact_with_email'):"Contact with Email";?></p>
										<h3><a href="mailto:<?= get_setting()['email']; ?>"><?= get_setting()['email']; ?></a></h3>
									</div>
								</div>
							<?php endif;?>

							<?php if(!empty(get_setting()['phone'])): ?>
								<div class="col-md-6">
									<div class="contact_with_phone">
										<p><?= !empty(lang('contact_with_phone'))?lang('contact_with_phone'):"Contact with phone";?></p>
										<h3><a href="tel:+<?= get_setting()['phone']; ?>"><?= get_setting()['phone']; ?></a></h3>
									</div>
								</div>
							<?php endif;?>
						</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="name"  class="form-control" placeholder="<?= !empty(lang('name'))?lang('name'):"name";?>" autocomplete="off" required="">
								</div>
								<div class="form-group">
									<label for=""><?= !empty(lang('email'))?lang('email'):"email";?></label>
									<input type="email" name="email" class="form-control" placeholder="xxx@email.com" 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";?>">
								</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 if(isset($setting['is_recaptcha']) && $setting['is_recaptcha']==1): ?>
		                    <div class="row mb-5">
		                      <div class="col-md-6">
		                        <div class="g-recaptcha" data-sitekey="<?= !empty($setting['g_site_key'])?$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"><?= !empty(lang('submit'))?lang('submit'):"Submit";?></button>
							</div>
						</div>

					</form>
				</div>
			</div>
			
		</div>
	</div>
</div>

