


<?php $__env->startSection('title','Özgün Tarım - '. $page->title); ?>





<?php

    $contact = Contact::all();

?>





<?php $__env->startSection('foot_hook'); ?>

@parent

<?php echo HTML::script('static/plugin/select2/select2.js'); ?>

<script>

    $(document).ready(function(){
        $('#aydi').select2();
    });

</script>

<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAUQjOqhQx1x9_0dH7Szfqsk7VJtGVBXwM"></script>



<script>

    function initialize() {


        var latlng = new google.maps.LatLng<?php echo $contact[0]->map; ?>;
		var latlng2 = new google.maps.LatLng<?php echo $contact[1]->map; ?>;
        var mapOptions = {
            zoom: 15,
            center: latlng
        }		

        map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
		map2 = new google.maps.Map(document.getElementById('map-canvas2'), {zoom: 15, center: latlng2});
        new google.maps.Marker({
            map: map,
            position: latlng
        });						 new google.maps.Marker({            map: map2,            position: latlng2        });

    }

    google.maps.event.addDomListener(window, 'load', initialize);

</script>





<?php $__env->stopSection(); ?>















<?php $__env->startSection('head_hook'); ?>

@parent

<?php echo HTML::style('static/plugin/select2/select2.css'); ?>

<?php echo HTML::style('static/plugin/select2/select2-bootstrap.css'); ?>

<?php $__env->stopSection(); ?>



<?php $__env->startSection('_content'); ?>





<div class="container page" id="content">





    <div class="contact-page">

        <h2 class="title">İletişim</h2>




        <div class="row" style="margin-top: 30px;">

            <div class="col-md-5">

                <h2 class="title" style="font-size: 20px; text-transform: capitalize;"><i class="fa fa-envelope"></i> İletişim Formu</h2>



                <?php if(Session::has('message')): ?>

                    <div class="alert alert-success"><?php echo Session::get('message'); ?></div>

                <?php else: ?>



                <?php echo Former::open()->method('POST')->action(URL::to('iletisim')); ?>



                <?php echo Former::text('name')->placeholder('İsim')->required(true)->label(false); ?>



                <?php echo Former::text('surname')->placeholder('Soyisim')->required(true)->label(false); ?>



                <?php echo Former::text('phone')->placeholder('Telefon Numaranız')->required(true)->label(false); ?>



                <?php echo Former::email('email')->placeholder('E-Posta Adresiniz')->label(false); ?>



                <?php echo Former::text('subject')->placeholder('Konu Başlığı')->required(true)->label(false); ?>



                <?php echo Former::textarea('message')->placeholder('Notunuz')->label(false)->rows(7); ?>



                <button type="submit" class="btn btn-default">Gönder</button>



                <?php echo Former::close(); ?>

                <?php endif; ?>



            </div>

            <div class="col-md-7">



                <div class="row">


                    <div class="col-md-6" style="padding-top: 30px;">

           
                        <ul class="list-unstyled address text-center">
                            <li><?php echo $contact[0]->address; ?></li>
                            <li>tel: <?php echo $contact[0]->phone; ?></li>
                            <li>email: <?php echo $contact[0]->email; ?></li>
                            <li>fax: <?php echo $contact[0]->fax; ?></li>
                        </ul>



                    </div>															<div class="col-md-6" style="padding-top: 30px;">                                   <ul class="list-unstyled address text-center">                            <li><?php echo $contact[1]->address; ?></li>                            <li>tel: <?php echo $contact[1]->phone; ?></li>                            <li>email: <?php echo $contact[1]->email; ?></li>                            <li>fax: <?php echo $contact[1]->fax; ?></li>                        </ul>                    </div>

                    <div class="col-md-6">
                        <div id="map-canvas" style="height: 300px; border-radius: 50%; border: 5px solid #fff;"></div>
                    </div>															<div class="col-md-6">                        <div id="map-canvas2" style="height: 300px; border-radius: 50%; border: 5px solid #fff;"></div>                    </div>


                </div>











            </div>

        </div>





    </div>



</div>





<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.wrap', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>