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

<div class="page-heading">
                <div class="bread">
                    <h4><?php echo e(__('web.contactus')); ?></h4>
                    <nav aria-label="breadcrumb">
                        <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.contactus')); ?></li>
                        </ol>
                    </nav>
                </div>
        </div>  
        <main>
            <!--start contact-pg-->
            <section class="contact-pg">
                <div class="container">
                    <div class="text-heading">
                        <h3><?php echo e(__('web.contactus')); ?> </h3>
                        <span class="sub-title"><?php echo e(__('web.contactusdesc')); ?></span>
                    </div>
                    <div class="contact-links-sec">
                        <div class="row">
                            <div class="col-md-4">
                                <div class="item">
                                    <div class="icon">
                                        <i class="fab fa-whatsapp"></i>
                                    </div>
                                    <div class="text">
                                        <h6> <?php echo e(__('web.contactus')); ?></h6>
                                        <p><?php echo e(wbsetting('phone')); ?></p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <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 class="col-md-4">
                                <div class="item">
                                    <div class="icon">
                                        <i class="fas fa-map-marker-alt"></i>
                                    </div>
                                    <div class="text">
                                        <h6><?php echo e(__('web.address')); ?></h6>
                                        <p><?php echo e(wbsetting('address')); ?></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-container">
                        <form id="formcontacts" onsubmit="contacts()" method="post" action="<?php echo e(url(getCurrentLocale().'/contacting')); ?>">
                            <?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="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <input class="form-control" name="name" placeholder="<?php echo e(__('web.name')); ?>">
                                        <span class="icon"><i class="far fa-user"></i></span>
                                        <span class="focus-border"><i></i> </span>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <input class="form-control" name="email" placeholder="<?php echo e(__('web.email')); ?>">
                                        <span class="icon"><i class="far fa-envelope-open"></i></i></span>
                                        <span class="focus-border"><i></i> </span>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <input class="form-control" name="phone" placeholder="<?php echo e(__('web.phone')); ?>">
                                        <span class="icon"><i class="fas fa-mobile-alt"></i></span>
                                        <span class="focus-border"><i></i> </span>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        
                                             <input class="form-control" name="subject" placeholder="<?php echo e(__('web.subject')); ?>">
                                        
                                        <span class="focus-border"><i></i> </span>
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <textarea class="form-control" name="message" placeholder="<?php echo e(__('web.message')); ?>"></textarea>
                                        <span class="icon"><i class="fas fa-pencil-alt"></i></span>
                                        <span class="focus-border"><i></i> </span>
                                    </div>
                                </div>
                                <div class="col-md-12">
                                    <button type="submit" class="submit-btn bg-butn"><span><?php echo e(__('web.send')); ?></span></button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="map mt-4" style="width: 100%">
                    <iframe width="100%" height="400" 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=Saudi%20+(Nawal%20Fitness%20)&amp;t=&amp;z=14&amp;ie=UTF8&amp;iwloc=B&amp;output=embed"></iframe>
                </div>
                <img src="<?php echo e(url('')); ?>/assets/web/images/dumble.png" class="dumble-img-r">
                <img src="<?php echo e(url('')); ?>/assets/web/images/dumble.png" class="dumble-img-l">
            </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/nawal_fit/resources/views/web/pages/contact.blade.php ENDPATH**/ ?>