<div>
   <?php
        use Illuminate\Support\Facades\DB;
        $company = DB::table('companies')->where('id', 1)->first();
   ?>
   
   <!-- breadcrumb-area -->
   <section class="breadcrumb__area breadcrumb__bg" data-background="<?php echo e(url('/')); ?>/assets/img/bg/breadcrumb__bg.jpg">
      <div class="container">
            <div class="row">
               <div class="col-12">
                  <div class="breadcrumb__content">
                        <h2 class="title">Contact Us</h2>
                  </div>
               </div>
            </div>
      </div>
   </section>
   <!-- breadcrumb-area-end -->
   
   <!-- contact-map -->
   <div class="contact-map">
      <div class="container">
            <div class="contact-map-inner">
               <iframe src="https://www.google.com/maps/embed?pb=!1m28!1m12!1m3!1d31694.29899242002!2d39.2474337066376!3d-6.795705400476539!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m13!3e6!4m5!1s0x185c4b004af2576b%3A0x7bc574bdeefdb551!2sPOSTA%2C%20DAR%20ES%20SALAAM%2C%2057PR%2BP9G%2C%20Dar%20es%20Salaam!3m2!1d-6.8131888!2d39.2909392!4m5!1s0x185c4d25e160ab4b%3A0x4df61fae0f58d3ae!2smakumbusho%2C%20Akachube%20Rd%2C%20Dar%20es%20Salaam!3m2!1d-6.7811068!2d39.244954799999995!5e0!3m2!1sen!2stz!4v1773255380154!5m2!1sen!2stz"  allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
            </div>
      </div>
   </div>
   <!-- contact-map-end -->
   <!-- contact-area -->
   <section class="contact__area section-pb-140">
      <div class="container">
            <div class="row">
               <div class="col-lg-6">
                  <div class="contact__content">
                        <h2 class="title">Get in touch</h2>
                        <div class="contact__info-wrap">
                           <div class="contact__info-item">
                              <div class="icon">
                                    <i class="flaticon-pin"></i>
                              </div>
                              <div class="content">
                                    <h2 class="title">Address</h2>
                                    <p><?php echo $company->address; ?></p>
                              </div>
                           </div>
                           <div class="contact__info-item">
                              <div class="icon">
                                    <i class="flaticon-calling"></i>
                              </div>
                              <div class="content">
                                    <h2 class="title">Phone</h2>
                                    <a href="tel:<?php echo e($company->mobile); ?>"><?php echo e($company->mobile); ?></a>
                                    <a href="tel:<?php echo e($company->mobile_two); ?>"><?php echo e($company->mobile_two); ?></a>
                              </div>
                           </div>
                           <div class="contact__info-item">
                              <div class="icon">
                                    <i class="flaticon-email"></i>
                              </div>
                              <div class="content">
                                    <h2 class="title">E-mail Address</h2>
                                    <a href="mailto:<?php echo e($company->email); ?>"><?php echo e($company->email); ?></a>
                                    <a href="mailto:<?php echo e($company->email_alternative); ?>"><?php echo e($company->email_alternative); ?></a>
                              </div>
                           </div>
                        </div>
                  </div>
               </div>
               <div class="col-lg-6">
                  <div class="contact__form-wrap">
                        <h2 class="title">Send Us Message</h2>
                        <!-- Success Message -->
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($successMessage): ?>
                        <div class="alert alert-success mb-4" style="padding: 15px; background: #d4edda; border: 1px solid #c3e6cb; border-radius: 8px; color: #155724;">
                           <i class="icon icon-check-circle"></i> <?php echo e($successMessage); ?>

                        </div>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        <form wire:submit.prevent="submit"  class="contact__form">
                           <div class="form-grp">
                              <input type="text" name="name" placeholder="Enter Your Name" wire:model="name">
                              <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> 
                                 <span class="error-text" style="color: #dc3545; font-size: 12px; margin-top: 4px; display: block;"><?php echo e($message); ?></span>
                              <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                           </div>
                           <div class="form-grp">
                              <input type="email" name="email" placeholder="Enter your email" wire:model="name">
                              <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> 
                                 <span class="error-text" style="color: #dc3545; font-size: 12px; margin-top: 4px; display: block;"><?php echo e($message); ?></span>
                              <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                           </div>
                           <div class="form-grp">
                              <input type="number" name="number" placeholder="Phone" wire:model="mobile">
                              <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['mobile'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> 
                                 <span class="error-text" style="color: #dc3545; font-size: 12px; margin-top: 4px; display: block;"><?php echo e($message); ?></span>
                              <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                           </div>
                           <div class="form-grp">
                              <textarea name="message" placeholder="message" wire:model="message"></textarea>
                              <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['message'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> 
                              <span class="error-text" style="color: #dc3545; font-size: 12px; margin-top: 4px; display: block;"><?php echo e($message); ?></span>
                              <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                           </div>
                           <button type="submit">Send Message</button>
                        </form>
                  </div>
               </div>
            </div>
      </div>
   </section>
   <!-- contact-area-end -->
</div>
<?php /**PATH /home/niifam/preview.niifam.co.tz/resources/views/livewire/contact.blade.php ENDPATH**/ ?>