<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
	<!DOCTYPE html>
	<html lang="pt">
	<head>
<?php $this->load->view('includes/header',isset($data) ? $data : NULL);?>		

	</head>
	<body>
<?php $this->load->view('includes/top',isset($data) ? $data : NULL);?>	

<div class="xs-spacer30 sm-spacer30">
</div>





<div class="contacts">



<div class="container">
<div class="sm-spacer150">
</div>
<div class="row">
<div class="col-md-12 sm-tacenter">
<h1 class="slice">
<span><?=Genel::dil_ceviri("contact_page_iletisim_formu")?></span>
</h1>
</div>
</div>
<div class="sm-spacer60">
</div>
<div class="row">
<form action="/contact/send" method="POST">
<div class="col-md-5 col-md-offset-1">
<div class="form-group">
<input type="text" class="form-control" id="" placeholder="<?=Genel::dil_ceviri("contact_page_name")?>" name="inputName">
</div>
</div>
<div class="col-md-5">
<div class="form-group">
<input type="text" class="form-control" id="" placeholder="<?=Genel::dil_ceviri("contact_page_subject")?>" name="inputSubject">
</div>
</div>
<div class="col-md-12 md-spacer15">
</div>
<div class="col-md-5 col-md-offset-1">
<div class="form-group">
<input type="email" class="form-control" id="" placeholder="<?=Genel::dil_ceviri("contact_page_email")?>" name="inputEmail">
</div>
</div>
<div class="col-md-5">
<div class="form-group">
<input type="text" class="form-control" id="" placeholder="<?=Genel::dil_ceviri("contact_page_phone_contact")?>" name="inputPhone">
</div>
</div>
<div class="col-md-12 sm-spacer15">
</div>
<div class="col-md-10 col-md-offset-1">
<div class="form-group">
<textarea class="form-control" rows="9" placeholder="<?=Genel::dil_ceviri("contact_page_message")?>" name="inputMessage">
</textarea>
</div>
</div>
<div class="col-md-12 sm-tacenter form-result">
</div>
<div class="col-md-12 sm-tacenter">
<div class="sm-spacer30">
</div>
<button type="submit" class="btn btn-primary"><?=Genel::dil_ceviri("contact_page_send")?></button>
</div>
</form>
</div>
<?php 
$firma_bilgileri=Genel::get_company_info();
//print_r($firma_bilgileri);

?>

<div class="xs-spacer60 sm-spacer120">
</div>
<div class="row">
<div class="col-md-12 sm-tacenter">
<h1 class="slice">
<span><?=Genel::dil_ceviri("contact_page_contact_info")?></span>
</h1>
<div class="sm-spacer60">
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 xs-tacenter sm-tacenter">
<h4>
<strong><?=Genel::dil_ceviri("contact_page_address")?></strong>
</h4>
<p><?=$firma_bilgileri->address?><br /><?=$firma_bilgileri->city?></p>
<div class="xs-spacer15 sm-spacer15">&nbsp;</div>

</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 xs-tacenter sm-tacenter">
<h4>
<strong><?=Genel::dil_ceviri("contact_page_email")?></strong>
</h4>
<p>
<a class="contact-a" href="mailto:<?=$firma_bilgileri->email?>"><?=$firma_bilgileri->email?></a>

</p>
<div class="xs-spacer15 sm-spacer15">&nbsp;</div>
<h4>
<strong><?=Genel::dil_ceviri("contact_page_phone_contact")?></strong>
</h4>
<p>
<a class="contact-a" href="tel:<?=$firma_bilgileri->phone?>"><?=$firma_bilgileri->phone?></a>
</p>
</div>
</div>
<div class="col-md-12 xs-spacer60 sm-spacer120">
</div>
<div class="row">
<div class="col-md-12 xs-tacenter sm-tacenter">
<h1 class="slice">
<span><?=Genel::dil_ceviri("contact_page_find_us")?></span>
</h1>
</div>
</div>

</div>
<div class="mod-maps">


<div id="map-canvas">
</div>

</div>
</div>

	<?php $this->load->view('includes/footer',isset($data) ? $data : NULL);?>	


<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDGSn6B_WfuVJLqPJXqnq2kQq-Xf89dF1A&callback=initMap"></script>
  <script>


      // This example displays a marker at the center of Australia.
      // When the user clicks the marker, an info window opens.
      function initMap() {
        var uluru = {lat: <?=$firma_bilgileri->lat?>, lng:  <?=$firma_bilgileri->lng?>};
        var map = new google.maps.Map(document.getElementById('map-canvas'), {
          zoom: 13,
          center: uluru
        });

var contentString = "<div class='mapContent'>";
contentString=contentString+"<span class='isim'>Ecc Tur</span>";


        var infowindow = new google.maps.InfoWindow({
          content: contentString
        });

        var marker = new google.maps.Marker({
          position: uluru,
          map: map,
          icon: "/assets/images/marker.png"
        });
        marker.addListener('click', function() {
          infowindow.open(map, marker);
        });
      }




  $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
           initMap()
            
              
 // infowindow.open(map, marker);
            
        });
  </script>

	</body>
	</html>