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

<main>
        <!-- Start page-heading -->
        <div class="page-heading">
            <div class="container">
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb mb-0">
                        <li class="breadcrumb-item"><a href="<?php echo e(url(getCurrentLocale().'/')); ?>"><img src="<?php echo e(url('')); ?>/assets/web/images/icons/nav/1.svg" alt="" class="home-icon"/></a></li>
                        <li class="breadcrumb-item active" aria-current="page"> <?php echo e(__('web.contactus')); ?> </li>
                    </ol>
                </nav>
                <h3 class="title text-center text-white mb-0"><b> <?php echo e(__('web.contactus')); ?> </b></h3>
            </div>
            <img src="<?php echo e(url('')); ?>/assets/web/images/pattern-3.png" alt="" class="pattern"/>
        </div>
        <!-- Start contact-sec -->
        <section class="contact-sec">
            <div class="container">
                <div class="sec-heading text-center mb-5 wow fadeInUp">
                    <h2 class="title "><?php echo e(__('web.contact')); ?> <span class="blue"><?php echo e(__('web.us')); ?></span></h2>
                    <p class="p"><?php echo e(__('web.contactus_desc')); ?> </p>
                </div>
        
                <div class="row mt-5">
                    <div class="col-lg-5">
                        <img src="<?php echo e(url('')); ?>/assets/web/images/contact-1.svg" alt="" class="main-img" data-wow-duration="2s"/>
                    </div>
                    <div class="col-lg-7">
                        <div class="form-container wow fadeIn" data-wow-duration="2s">
                            <form id="formcontacts" onsubmit="contacts(this)" method="post" action="<?php echo e(url(getCurrentLocale().'/contacting')); ?>">
                                <?php echo csrf_field(); ?>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="label"><?php echo e(__('web.name')); ?></label>
                                            <input name="name" class="form-control" placeholder="<?php echo e(__('web.name')); ?>"/>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="label"><?php echo e(__('web.email')); ?></label>
                                            <input name="email" class="form-control" placeholder="test@mail.com"/>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="label"><?php echo e(__('web.phone')); ?></label>
                                            <input name="phone" class="form-control" placeholder="0000000000"/>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="label"><?php echo e(__('web.subject')); ?></label>
                                            <input name="subject" class="form-control" placeholder="<?php echo e(__('web.subject')); ?>"/>
                                        </div>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <label class="label"><?php echo e(__('web.message')); ?></label>
                                            <textarea class="form-control" name="message" rows="10" placeholder="<?php echo e(__('web.writemessage')); ?>"></textarea>
                                        </div>
                                    </div>
                                    <div class="col-md-12 mt-4">
                                        <button class="main-butn dark-butn m-auto"><span><?php echo e(__('web.send')); ?></span></button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="row mt-5 pt-4">
                    <div class="col-lg-4">
                        <div class="contact_item">
                            <span class="icon wow zoomIn"><i class="fas fa-phone-alt"></i></span>
                            <div class="text-box wow text-focus-in">
                                <h6 class="title"><?php echo e(__('web.phone')); ?></h6>
                                <p class="data"><?php echo e(settings('phone')); ?></p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <div class="contact_item">
                            <span class="icon wow zoomIn"><i class="fas fa-envelope"></i></span>
                            <div class="text-box wow text-focus-in">
                                <h6 class="title"><?php echo e(__('web.gmail')); ?></h6>
                                <p class="data"><?php echo e(settings('gmail')); ?></p>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <div class="contact_item">
                            <span class="icon wow zoomIn" ><i class="fab fa-telegram-plane"></i></span>
                            <div class="text-box wow text-focus-in">
                                <h6 class="title"><?php echo e(__('web.address')); ?></h6>
                                <p class="data"><?php echo e(settings('address')); ?></p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- <div class="map-box mt-5">
                <iframe width="100%" height="300" 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+(My%20Business%20Name)&amp;t=&amp;z=14&amp;ie=UTF8&amp;iwloc=B&amp;output=embed"></iframe>
            </div> -->
        </section>
        <!-- Start newsletter-sec -->
        <section class="newsletter-sec">
            <div class="container">
                <div class="row">
                    <div class="col-lg-3">
                        <img src="<?php echo e(url('')); ?>/assets/web/images/icon.svg" alt="" class="logo wow zoomIn"/>
                    </div>
                    <div class="col-lg-5 col-md-6">
                        <div class="text  center-vr wow text-focus-in">
                           <h2 class="title text-white mb-3"><?php echo e(__('web.subscribe_mail')); ?></h2>
                            <p class="p text-white-50 mb-0"><?php echo e(__('web.enter_email')); ?> </p>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-6">
                        <div class="form-wrapper center-vr wow text-focus-in">
                            <form onsubmit="formemail(this)" id="formemail" method="post" action="<?php echo e(url(getCurrentLocale().'/subscribe')); ?>" class="row">
                                <?php echo csrf_field(); ?>
                                <input type="email" name="email" class="form-control col-10"  placeholder="<?php echo e(__('web.email')); ?>">
                                <button class="submit-butn col-2"><i class="fab fa-telegram-plane"></i></button>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </section>
         <div class="modal logoutModal fade" id="confirmModal" tabindex="-1" aria-labelledby="confirmModalLabel" aria-hidden="true">
            <div class="modal-dialog modal-dialog-centered modal-lg">
                <div class="modal-content">
                    <div class="modal-body">
                        <img src="<?php echo e(url('')); ?>/assets/web/images/confirmed.svg" alt="" class="main-img"/>
                        <h4 class="title text-center mt-3" id="success"><?php echo e(__('web.success')); ?></h4>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="main-butn active-butn" data-dismiss="modal"><span><?php echo e(__('web.ok')); ?></span></button>
                    </div>
                </div>
            </div>
        </div>
        <!-- Canceled Newsletter Modal --> 
        <div class="modal logoutModal fade" id="cancelModal" tabindex="-1" aria-labelledby="cancelModalLabel" aria-hidden="true">
            <div class="modal-dialog modal-dialog-centered modal-lg">
                <div class="modal-content">
                    <div class="modal-body">
                        <img src="<?php echo e(url('')); ?>/assets/web/images/cancel.svg" alt="" class="main-img"/>
                        <div  id="error">
                        
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="main-butn active-butn" data-dismiss="modal"><span><?php echo e(__('web.ok')); ?></span></button>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <?php $__env->startPush('js'); ?>
   <script>
   function formemail(elem){
        event.preventDefault(); 
       var action = $('#formemail').attr('action');
       var urls = action;
       var dataform = $('#formemail').serialize();
     
      $.ajax({
          url : urls,
          type: 'POST',              
          data: dataform,
          success:function(data)
          {
           $('#confirmModal').modal('show');
              $('#error').css("display", "none");
              $('#success').css("display", "block");
           
            
             
          }
          ,error:function(data) {
             $('#cancelModal').modal('show');
              $('#success').css("display", "none");
              $('#error').html('');
    $('#error').css("display", "block");
   
   $.each(data.responseJSON.errors, function(key,value) {
       
     $('#error').append('<h4 class="title text-center mt-3">'+value+'</h4>');
     
     
 }); 
 
}
        })
        }
       
 
        function contacts(elem){
        event.preventDefault(); 
       var action = $('#formcontacts').attr('action');
       var urls = action;
       var dataform = $('#formcontacts').serialize();
     
      $.ajax({
          url : urls,
          type: 'POST',              
          data: dataform,
          success:function(data)
          {
           $('#confirmModal').modal('show');
              $('#error').css("display", "none");
              $('#success').css("display", "block");
              
                 setTimeout(
  function()
  {
      location.reload();
  }, 1000);
             
          }
          ,error:function(data) {
             $('#cancelModal').modal('show');
              $('#success').css("display", "none");
              $('#error').html('');
    $('#error').css("display", "block");
   
   $.each(data.responseJSON.errors, function(key,value) {
       console.log(key);
     $('#error').append('<h4 class="title text-center mt-3">'+value+'</h4>');
     
     
 }); 
 
}
        })
        }
    </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/raied/resources/views/web/pages/contact.blade.php ENDPATH**/ ?>