<!DOCTYPE html>
<html lang="tr">
<?php require view('include/head'); ?>
<body>
  <?php require view('include/header'); ?>

  <link rel="stylesheet" href="<?= public_url(); ?>css/custom/contact.css">

  <section class="single-banner">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="single-content">
                    <h2>Bize Ulaşın</h2>
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="index">Anasayfa</a></li>
                        <li class="breadcrumb-item active" aria-current="page">İletişim</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
</section>

<section class="contact-part">
    <div class="container">

        <div class="row">
            <div class="col-lg-4">
                <div class="contact-info"><i class="fas fa-map-marker-alt"></i>
                    <h3>Adres</h3> 
                    <p><?= $rowset['address'] ?></p> 
                </div>
            </div>
            <div class="col-lg-4">
                <div class="contact-info"><i class="fas fa-phone-alt"></i>
                    <h3>Telefon</h3>
                    <p><?= $rowset['phone'] ?><span><?= $rowset['gsm'] ?></span></p>
                </div>
            </div>
            <div class="col-lg-4">
                <div class="contact-info"><i class="fas fa-envelope"></i>
                    <h3>E-Mail</h3>
                    <p><?= $rowset['email'] ?></p>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-6"> 
                <form class="contact-form" action="" method="POST">
                    <label class="contact-label">
                        <input type="text" name="isim_soyad" placeholder="isim soyad..." required="">
                        <i class="fas fa-user"></i></label>

                        <label class="contact-label">
                            <input type="number" name="telefon" placeholder="Telefon..." required="">
                            <i class="fas fa-phone-alt"></i>
                        </label>
                        
                        <label class="contact-label">
                            <input type="email" name="email" placeholder="E-Mail..." required="">
                            <i class="fas fa-envelope"></i>
                        </label>

                        <label class="contact-label">
                            <input type="text" name="konu" placeholder="Konu.." required="">
                            <i class="fas fa-bookmark"></i>
                        </label>

                        <label class="contact-label">
                            <textarea name="message" placeholder="Mesajnız..." required=""></textarea>
                            <i class="fas fa-pen-nib"></i>
                        </label>

                        <div class="col-xs-12 text-right">
                            <button name="messagegon" class="btn btn-inline"><i class="fas fa-paper-plane"></i>Gönder
                            </button>
                        </div>  
                    </form>
                </div>
                <div class="col-lg-6">
                    <div class="contact-map"> 
                        <iframe src="<?= $rowkod['maps']; ?>" width="100%" height="100%" frameborder="0" style="border:0;" allowfullscreen="100%" aria-hidden="false" tabindex="0"></iframe>

                    </div>
                </div>
            </div>
        </div>
    </section>  
    <?php require view('include/footer'); ?>
    <script src="<?= public_url(); ?>js/sweetalert.min.js"></script>
    <?php if (isset($success)) { ?>
      <script type="text/javascript">
        swal("İletişim Başarılı.", "<?= $success ?>", "success").then(function() {window.location.href = 'iletisim';});
    </script>
<?php } ?>
<?php if (isset($error)) { ?>
  <script type="text/javascript">
    swal("Hata.", "<?= $error ?>", "error").then(function() {window.location.href = 'iletisim';});
</script>
<?php } ?>
