79 lines
4.7 KiB
PHP
79 lines
4.7 KiB
PHP
<?php if($page->children->count() > 1): ?>
|
|
<?php
|
|
$servicepage = $page->children[1];
|
|
$totalServices = $services->count(); // total number of service items
|
|
?>
|
|
<!--Services One Start -->
|
|
<section class="services-one section-pd">
|
|
<div class="container">
|
|
<div class="section-title text-center">
|
|
<div class="section-title__tagline-box">
|
|
<span class="section-title__tagline"><?php echo e($servicepage->title); ?></span>
|
|
</div>
|
|
<h2 class="section-title__title">
|
|
<?php echo implode(' ', array_slice(explode(' ', $servicepage->short_description), 0, 4)) . '<br>' .
|
|
implode(' ', array_slice(explode(' ', $servicepage->short_description), 4)); ?>
|
|
|
|
</h2>
|
|
</div>
|
|
<div class="services-one__inner">
|
|
<div class="owl-carousel thm-owl__carousel--range owl-theme services-one__carousel"
|
|
data-owl-options='{
|
|
"loop": false,
|
|
"nav": true,
|
|
"autoWidth": false,
|
|
"navText": ["<span class=\"icon-prev\"></span>","<span class=\"icon-next\"></span>"],
|
|
"dots": false,
|
|
"margin": 30,
|
|
"items": <?php echo e($totalServices >= 3 ? 3 : $totalServices); ?>,
|
|
"smartSpeed": 700,
|
|
"responsive": {
|
|
"0": { "items": 1, "margin": 20 },
|
|
"768": { "items": <?php echo e($totalServices >= 2 ? 2 : 1); ?>, "margin": 20 },
|
|
"992": { "items": <?php echo e($totalServices >= 2 ? 2 : 1); ?>, "margin": 30 },
|
|
"1200": { "items": <?php echo e($totalServices >= 3 ? 3 : $totalServices); ?>, "margin": 30 }
|
|
}
|
|
}'>
|
|
<?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div class="item">
|
|
<div class="services-one__single">
|
|
<div class="services-one__img-box">
|
|
<div class="services-one__img">
|
|
<img class="service1-img" src="<?php echo e($service->image); ?>" alt="">
|
|
</div>
|
|
</div>
|
|
<div class="services-one__content">
|
|
<div class="services-one__icon">
|
|
<span class="<?php echo e($service->icon_class); ?>"></span>
|
|
</div>
|
|
<h3 class="services-one__title">
|
|
<a href="<?php echo e(route('service.single', $service->slug)); ?>"><?php echo e($service->title); ?></a>
|
|
</h3>
|
|
<div class="services-one__hover-content">
|
|
<h3 class="services-one__hover-title">
|
|
<a href="<?php echo e(route('service.single', $service->slug)); ?>"><?php echo e($service->title); ?></a>
|
|
</h3>
|
|
<p class="services-one__hover-text">
|
|
<?php echo e(\Illuminate\Support\Str::words($service->short_description, 30, '...')); ?>
|
|
|
|
</p>
|
|
<a href="<?php echo e(route('service.single', $service->slug)); ?>" class="services-one__btn">
|
|
<span class="icon-right-arrow-11"></span>Read More
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</div>
|
|
<?php if($totalServices > 3): ?>
|
|
<div class="thm-owl__carousel--range__input">
|
|
<input type="text" value="" name="range">
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!--Services One End -->
|
|
<?php endif; ?>
|
|
<?php /**PATH D:\installed\xampp\htdocs\bib\Consultancy-CCMS\resources\views/client/rohini/pages/partials/service.blade.php ENDPATH**/ ?>
|