<?php $__env->startSection('content'); ?>


 <main>
            <!--start page-heading-->
            <div class="page-heading">
                <nav aria-label="breadcrumb">
                   <div class="container">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo e(url(getCurrentlocale().'/')); ?>"><?php echo e(__('web.home')); ?></a></li>
                        <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('web.contact')); ?> </li>
                      </ol>
                   </div>
                </nav>
            </div>
            <!--start contact-pg-->
            <section class="contact-pg">
                <div class="container">
                    <div class="text-heading text-center">
                        <h1><?php echo e(__('web.contactus')); ?></h1>
                        <span><?php echo e(__('web.contactus')); ?></span>
                        <p><?php echo e(__('web.welcome')); ?></p>
                    </div>
                    <div class="row">
                        <div class="col-lg-8">
                            <div class="contact-form">
                                <h5><?php echo e(__('web.contactform')); ?></h5>
                                <form  id="formcontacts" onsubmit="contacts()" method="post" action="<?php echo e(url(getCurrentLocale().'/contactus')); ?>" class="row">
                                    <?php echo csrf_field(); ?>
                                    <div id="success" style="display : none" class="col-12 alert alert-success">
                           
                        </div>
                        <div id="error" style="display : none" class="col-12 alert alert-danger">
                           
                        </div>
                                    <div class="form-group col-md-6">
                                        <input name="name" class="form-control" placeholder="<?php echo e(__('web.fullname')); ?>">
                                    </div>
                                    <div class="form-group col-md-6">
                                        <input name="email" class="form-control" placeholder="<?php echo e(__('web.email')); ?>">
                                    </div>
                                    <div class="form-group col-md-6">
                                        <input name="phone" class="form-control" placeholder="<?php echo e(__('web.phone')); ?>">
                                    </div>
                                    <div class="form-group col-md-6">
                                        <input name="subject" class="form-control" placeholder="<?php echo e(__('web.subject')); ?>">
                                    </div>
                                    <div class="form-group col-md-12">
                                        <textarea name="message" class="form-control" placeholder="<?php echo e(__('web.msg')); ?>"></textarea>
                                    </div>
                                    <div class="form-group col-md-12">
                                        <button type="submit" class="butn submit-btn"><span><?php echo e(__('web.send')); ?></span></button>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="col-lg-4">
                           <div class="contact-card">
                                <h5><?php echo e(__('web.contactus')); ?></h5>
                                <div class="item">
                                    <div class="icon">
                                        <i class="far fa-building"></i>
                                    </div>
                                    <div class="text">
                                        <h6>
                                            <?php echo e(__('web.postal')); ?>:</h6>
                                        <p>
                                           <?php echo e(wbsetting('postal')); ?>

                                        </p>
                                    </div>
                                </div>
                                <div class="item">
                                    <div class="icon">
                                        <i class="fas fa-mobile-alt"></i>
                                    </div>
                                    <div class="text">
                                        <h6>
                                            <?php echo e(__('web.phone')); ?>:</h6>
                                        <p>
                                            <?php echo e(wbsetting('phone')); ?>

                                        </p>
                                    </div>
                                </div>
                                <div class="item">
                                    <div class="icon">
                                        <i class="fas fa-fax"></i>
                                    </div>
                                    <div class="text">
                                        <h6>
                                            <?php echo e(__('web.fax')); ?>:</h6>
                                        <p>
                                             <?php echo e(wbsetting('fax')); ?>

                                        </p>
                                    </div>
                                </div>
                                <div class="item">
                                    <div class="icon">
                                        <i class="far fa-envelope"></i>
                                    </div>
                                    <div class="text">
                                        <h6>
                                            <?php echo e(__('web.email')); ?>:</h6>
                                        <p>
                                             <?php echo e(wbsetting('email')); ?>

                                        </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="map mt-5">
                    <div style="width: 100%">
                        <iframe width="100%" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?width=100%25&amp;height=600&amp;hl=en&amp;q=1%20Grafton%20Street,%20Dublin,%20Ireland+(Alhindi)&amp;t=&amp;z=14&amp;ie=UTF8&amp;iwloc=B&amp;output=embed"></iframe>
                    </div>
                </div>
            </section>
        </main>
 <?php $__env->startPush('js'); ?>
   <script>
        function contacts(){
        event.preventDefault(); 
       var action = $('#formcontacts').attr('action');
       var urls = action;
       var dataform = $('#formcontacts').serialize();
     
      $.ajax({
          url : urls,
          type: 'POST',              
          data: dataform,
          success:function(data)
          {
           
              $('#error').css("display", "none");
              $('#success').css("display", "block");
            $('#success').html('تم ارسال رسالتك بنجاح');
             location.reload();
             
          }
          ,error:function(data) {
             
              $('#success').css("display", "none");
              $('#error').html('');
    $('#error').css("display", "block");
   
   $.each(data.responseJSON.errors, function(value) {
     $('#error').append('<div class="col-12">'+value+'</div');
     
     
 }); 
 
}
        })
        }
    </script>
   <?php $__env->stopPush(); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('web.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/alhindi/resources/views/web/pages/contact.blade.php ENDPATH**/ ?>