<?php /* HERO HEADER */ ?>
<header class="company-hero company-style1" id="header">
 <div class="company-single-slide">
 <div class="company-hero-bg profile-img">
 <?php echo $picture_tag; ?>

 </div>
 <div id="company-scene">
 <div class="layer">
 <div class="container" data-title="no.1">
 <div class="company-slider-text">
 <?php /*<img src="<?php echo static::e($company_logo['large']); ?>" alt="<?php echo static::e($company_name); ?> Logo">*/ ?>
 <h1><?php echo static::e($company_name); ?></h1>
 <?php if($paying_advert): ?>
 <div class="d-flex flex-row justify-content-center">
 <?php if($company_link): ?>
 <a href="<?php echo static::e($company_link['action']); ?>" target="_blank" class="btn btn-info mx-1 my-1 p-3 text-truncate" rel="<?php echo static::e($company_link['rel']); ?>" title="<?php echo static::e($company_link['domain']); ?>"><span><i class="fa fa-external-link fa-lg fa-fw"></i> Visit website</span></a>
 <?php /*<a href="#contact" target="_blank" class="l2a company-btn flex-equal mx-1 my-3" title="Contact"><span><i class="fa fa-envelope fa-lg fa-fw"></i> Contact</span></a>*/ ?>
 <?php endif; ?>
 </div>
 <?php endif; ?>
 </div>
 </div>
 </div>
 </div>
 </div>

 <?php /* Quick Links */ ?>
 <div class="quick-links">

 <div class="container">
 <div class="ql-container d-flex justify-content-center">
 <div class="d-flex flex-row justify-content-center">
 <div class="ql-item flex-equal mx-2 my-0">
 <a href="<?php echo static::e($canonical_link); ?>#about" class="btn d-flex flex-column align-items-center">
 <i class="fa fa-info fa-lg fa-fw"></i>
 <span class="d-none d-sm-block">About</span>
 </a>
 </div>
 <?php if($company_images): ?>
 <div class="ql-item flex-equal mx-2 my-0">
 <a href="<?php echo static::e($canonical_link); ?>#gallery" class="btn d-flex flex-column align-items-center">
 <i class="fa fa-picture-o fa-lg fa-fw"></i>
 <span class="d-none d-sm-block">Gallery</span>
 </a>
 </div>
 <?php endif; ?>
 <?php if($company_locations): ?>
 <div class="ql-item flex-equal mx-2 my-0">
 <a href="<?php echo static::e($canonical_link); ?>#locations" class="btn d-flex flex-column align-items-center">
 <i class="fa fa-map-marker fa-lg fa-fw"></i>
 <span class="d-none d-sm-block">Locations</span>
 </a>
 </div>
 <?php endif; ?>
 <?php if(1==2 && $paying_advert): ?>
 <div class="ql-item flex-equal mx-2 my-0">
 <a href="<?php echo static::e($canonical_link); ?>#contact" class="btn d-flex flex-column align-items-center">
 <i class="fa fa-envelope-o fa-lg fa-fw"></i>
 <span class="d-none d-sm-block">Contact</span>
 </a>
 </div>
 <?php endif; ?>

 </div>
 </div>
 </div>
 </div>

</header>
<!--BREADCRUMBS_SLOT-->





<?php /* ABOUT */ ?>
<a name="about"></a>
<section class="about-us about-us-2 section" id="about">
 <div class="container">
 <div class="section-head">
 <h2>About</h2>
 <div class="section-divider">
 <span></span>
 </div>
 <?php if(isset($_SESSION['user_id'])): ?>
 <div class="edit-advert" style="top: 30px!important; right: 30px!important;">
 <a href="../admin/advert_manager.php?advert_action=advert_edit_main&advertisment_id=<?php echo static::e($adv['advertisment_id']); ?>" target="_blank" style="font-size: 1rem; display: block;"><i class="fa fa-pencil fa-fw"></i></a>
 </div>
 <?php endif; ?>

 </div>
 <div class="row d-flex flex-column flex-sm-row flex-lg-row">
 <div class="<?php if($paying_advert): ?> col-md-6 col-lg-7 order-2 <?php else: ?> col-md-10 order-1 <?php endif; ?>">
 <div class="about-company">
 <?php echo $company_description; ?>

 </div>

 <?php if(trim($adv['YearOfEstablishment']) != "" || trim($adv['Directors']) != ""
 || trim($adv['NumberOfEmployees']) != "" || trim($adv['MemberOf']) != ""
 ): ?>
 <div class="table-responsive">
 <table class="table table-bordered">
 <thead>
 <tr>
 <th class="text-left" colspan="2">Company Information</th>
 </tr>
 </thead>
 <tbody>
 <?php if(trim($adv['YearOfEstablishment']) != ""): ?>
 <tr>
 <td class="text-bold text-nowrap">Year of Establishment</td>
 <td class="col-md-8"><?php echo $adv['YearOfEstablishment']; ?></td>
 </tr>
 <?php endif; ?>
 <?php if(trim($adv['Directors']) != ""): ?>
 <tr>
 <td class="text-bold text-nowrap">Directors</td>
 <td class="col-md-8"><?php echo $adv['Directors']; ?></td>
 </tr>
 <?php endif; ?>
 <?php if(trim($adv['MemberOf']) != ""): ?>
 <tr>
 <td class="text-bold text-nowrap">Member of</td>
 <td class="col-md-8"><?php echo $adv['MemberOf']; ?></td>
 </tr>
 <?php endif; ?>
 <?php if(trim($adv['NumberOfEmployees']) != ""): ?>
 <tr>
 <td class="text-bold text-nowrap">Number of Employees</td>
 <td class="col-md-8"><?php echo $adv['NumberOfEmployees']; ?></td>
 </tr>
 <?php endif; ?>

 </tbody>
 </table>
 </div>
 <?php endif; ?>
 </div>
 <?php if($paying_advert): ?>
 <div class="col-md-4 col-lg-3 order-1">
 <?php if($paying_advert): ?>
 <img src="<?php echo static::e($company_logo['large']); ?>" alt="<?php echo static::e($company_name); ?> Logo" class="img-responsive" style="width: 100%; margin-bottom: 30px">
 <?php endif; ?>
 <?php /* Company Social Links*/ ?>
 <?php if(count($company_social_links)): ?>
 <div class="company-social-links effect aeneas">
 <?php $__currentLoopData = $company_social_links; $this->addLoop($__currentLoopData); foreach($__currentLoopData as $sp=>$sp_link): $this->incrementLoopIndices(); $loop = $this->getFirstLoop(); ?>
 <?php if($sp_link != null): ?>
 <a href="<?php echo $sp_link; ?>" name="<?php echo static::e($sp); ?>" id="<?php echo static::e($sp); ?>"
 target="_blank" rel="noopener"
 class="<?php echo static::e($social_platforms[$sp]['class']); ?>"
 title="<?php echo static::e($social_platforms[$sp]['name']); ?>">
 <i class="<?php echo static::e($social_platforms[$sp]['icon']); ?>" aria-hidden="true"></i>
 </a>
 <?php endif; ?>
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 <div class="ml-auto"><!--[/SocialShareButtons/]--></div>
 </div>
 <?php endif; ?>

 <?php /* Company Video */ ?>
 <?php if($company_video): ?>
 <div class="about-video">
 <?php echo $company_video; ?>

 </div>
 <?php endif; ?>


 </div>
 <?php endif; ?>
 </div>
 </div>
</section>

<?php /* IMAGE GALLERY */ ?>
<?php if($company_images): ?>
 <a name="gallery"></a>
 <section class="company-gallery section" id="gallery">
 <div class="container">
 <div class="section-head">
 <h2>Gallery</h2>
 <div class="section-divider">
 <span></span>
 </div>
 <?php /*<p>Lorem ipsum dolor sit amet, in quodsi vulputate pro. Ius illum vocent mediocritatem</p>*/ ?>
 </div>
 </div>
 <div class="container">
 <!-- The Gallery as lightbox dialog, should be a child element of the document body -->
 <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls">
 <div class="slides"></div>
 <span class="title"></span>
 <a class="prev">‹</a>
 <a class="next">›</a>
 <a class="close">×</a>
 <a class="play-pause"></a>
 <ol class="indicator"></ol>
 </div>

 <div id="company-gallery-links" class="company-gallery-images <?php if(count($company_images) == 1): ?> single <?php endif; ?> " data-company-gallery="company-gallery">
 <div class="company-unit-sizer"></div>
 <?php $__currentLoopData = $company_images; $this->addLoop($__currentLoopData); foreach($__currentLoopData as $img): $this->incrementLoopIndices(); $loop = $this->getFirstLoop(); ?>
 <?php if($img['main'] == 1): ?>
 <div class="company-unit company-unit-th">
 <div class="company-unit-content">
 <a href="<?php echo $img['src']; ?>" title="<?php echo static::e($img['title']); ?>">
 <img src="<?php echo $img['src_th']; ?>" alt="<?php echo static::e($img['title']); ?>">
 </a>
 </div>
 </div>
 <?php else: ?>
 <div class="company-unit company-unit-th">
 <div class="company-unit-content">
 <a href="<?php echo $img['src']; ?>" title="<?php echo static::e($img['title']); ?>">
 <img src="<?php echo $img['src_th']; ?>" alt="<?php echo static::e($img['title']); ?>">
 </a>
 </div>
 </div>
 <?php endif; ?>
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 </div>
 </div>
 </section>
<?php endif; ?>

<?php /* LOCATIONS */ ?>
<?php if($company_locations): ?>
 <a name="locations"></a>
 <section class="section" id="locations">
 <div class="container">
 <div class="section-head">
 <h2>Locations</h2>
 <div class="section-divider">
 <span></span>
 </div>
 <?php /*<p>Lorem ipsum dolor sit amet, in quodsi vulputate pro. Ius illum vocent mediocritatem</p>*/ ?>
 </div>

 <?php $__currentLoopData = $company_locations; $this->addLoop($__currentLoopData); foreach($__currentLoopData as $district_group=>$district_locations): $this->incrementLoopIndices(); $loop = $this->getFirstLoop(); ?>
 <?php if(is_array($district_locations)): ?>
 <section class="sub-section">
 <div class="section-head">
 <h3><?php echo static::e($district_group); ?></h3>
 </div>
 <?php $__currentLoopData = $district_locations; $this->addLoop($__currentLoopData); foreach($__currentLoopData as $location_id=>$data): $this->incrementLoopIndices(); $loop = $this->getFirstLoop(); ?>
 <?php echo $data['html']; ?>

 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 </section>
 <?php endif; ?>
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 </div>
 </section>
<?php endif; ?>

<?php if( 1==2 && $paying_advert): ?>
<?php /* CONTACT */ ?>
<a name="contact"></a>
<section class="section mb-4" id="contact">
 <div class="container">
 <div class="section-head">
 <h2>Contact</h2>
 <div class="section-divider">
 <span></span>
 </div>
 </div>

 <div class="row">
 <div class="col-md-3">
 <h3>Got a question? We would love to hear from you.</h3>
 <p>Send us a message and we will respond as soon as possible.</p>

 <?php if($show_contact_reply): ?>
 <?php if($show_contact_errors): ?>
 <div class="alert alert-danger alert-dismissible fade show mt-3 mb-3 mr-2">
 <h4><?php echo static::e($contact_message); ?></h4>
 <ul>
 <?php $__currentLoopData = $contact_errors; $this->addLoop($__currentLoopData); foreach($__currentLoopData as $err): $this->incrementLoopIndices(); $loop = $this->getFirstLoop(); ?>
 <li class="list-item"><?php echo static::e($err); ?></li>
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 </ul>
 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
 <span aria-hidden="true">&times;</span>
 </button>
 </div>
 <?php else: ?>
 <div class="alert alert-success alert-dismissible fade show mt-3 mb-3 mr-2">
 <h4><?php echo static::e($contact_message); ?></h4>
 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
 <span aria-hidden="true">&times;</span>
 </button>
 </div>

 <?php endif; ?>

 <?php endif; ?>
 </div>
 <div class="col-md-7 bg-gray-box mx-md-n3">

 <form method="post" action="<?php echo static::e($canonical_link); ?>">
 <input type="hidden" name="company_contact" value="1">
 <input type="hidden" name="csrf_token" value="<?php echo static::e($csrf_token); ?>"/>
 <div class="form-group row">
 <label for="vName" class="col-sm-10 col-form-label sr-only">What is your Name?</label>
 <div class="col-sm-10">
 <input type="text" class="form-control form-control-lg" id="vName" name="contact[name]" value="<?php echo static::e($contact_data['name']); ?>" placeholder="What is your Name?" required maxlength="128">
 </div>
 </div>
 <div class="form-group row">
 <label for="vEmail" class="col-sm-10 col-form-label sr-only">Your best contact email:</label>
 <div class="col-sm-10 input-group">
 <div class="input-group-prepend">
 <span class="input-group-text" id="basic-addon-email"><i class="fa fa-at fa-lg fa-fw"></i></span>
 </div>
 <input type="email" class="form-control form-control-lg" id="vEmail" name="contact[email]" value="<?php echo static::e($contact_data['email']); ?>" placeholder="Your best contact email" required>
 </div>
 </div>
 <div class="form-group row">
 <label for="vPhone" class="col-sm-10 col-form-label sr-only">Best contact number:</label>
 <div class="col-sm-10 input-group">
 <div class="input-group-prepend">
 <span class="input-group-text" id="basic-addon-phone"><i class="fa fa-phone fa-lg fa-fw"></i></span>
 </div>
 <input type="tel" class="form-control form-control-lg" id="vPhone" name="contact[phone]" value="<?php echo static::e($contact_data['phone']); ?>" placeholder="Best contact number" required>
 </div>
 </div>
 <div class="form-group row">
 <label for="vMessage" class="col-sm-10 col-form-label sr-only">How can we help?</label>
 <div class="col-sm-10">
 <textarea rows="6" class="form-control form-control-lg" id="vMessage" name="contact[message]" placeholder="How can we help?" required maxlength="1024"><?php echo static::e($contact_data['message']); ?></textarea>
 </div>
 </div>
 <div class="bd-highlight p-2">
 <div class="d-flex justify-content-center">
 <button type="submit" class="btn btn-outline-primary btn-lg px-5">Send</button>
 </div>
 </div>
 </form>
 </div>
 </div>

 </div>
</section>
<?php endif; ?>