<?php
    $navbar = 'nav-main-theme';
?>
 <!--  Extends App Layout -->
<?php $__env->startSection('title', 'الخدمات - ' . $service->title); ?> <!-- Tilte -->

<?php $__env->startSection('css'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/pages/services/show.css')); ?>?v=<?php echo time(); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Start Content -->

    <?php if(count($rows) != 0): ?>
        <header>
            <div class="h-content">
                <div class=" d-flex justify-content-start align-items-center mb-0">
                    <div class="container">
                        <h1 class="pt-4"><?php echo e($service->title); ?></h1>
                    </div>
                </div>
            </div>
            <div class="overlay"></div>
        </header><!-- end header -->

        <section id="services" class="mb-5">



            <div class="container">

                <h2 class="line-after section-title my-5">نقدم التالي</h2>
                <div class="row">
                    <?php $__currentLoopData = $rows; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php

                            if (!function_exists('removeFirstBr')) {
                                function removeFirstBr($string)
                                {
                                    return preg_replace('/<br>/', '', $string, 1);
                                }
                            }

                            $desc = str_replace('-', '<br> -', $row->desc);
                            $desc = removeFirstBr($desc);
                        ?>
                        <div class="col-md-6 mb-4">
                            <div class="box mb-0 h-100 p-lg-5 p-4">
                                <div class="service-icon">
                                    <img src="<?php echo e(largeAsset('services/details/' . $row->icon_image)); ?>" alt="">
                                </div>

                                <h3 class="service-name"><?php echo e($row->title); ?></h3>

                                <p class="service-desc"><?php echo $desc; ?></p>
                                <div class="shapes">
                                    <div class="count">
                                        <?php if($loop->index < 9): ?>
                                            <?php echo e('0' . $loop->index + 1); ?>

                                        <?php else: ?>
                                            <?php echo e($loop->index + 1); ?>

                                        <?php endif; ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>

            </div>


        </section>
    <?php else: ?>
        <div class="container pt-5 pb-4">
            <div class="box mt-5 py-5 text-center">
                <img style="min-width: 180px" class="w-25" src="<?php echo e(asset('assets/images/empty.jpg')); ?>" alt="">
                <h3 class=" font-20 text-center my-4">هذه الصفحة فارغة في الوقت الحالي، سنقوم بإضافة كافة التفاصيل حول
                    خدمة <?php echo e($service->title); ?> قريبًا!</h3>
                <a href="<?php echo e(url('')); ?>#services" class="btn btn-main">عرض جميع الخدمات</a>
            </div>
        </div>
    <?php endif; ?>
<?php $__env->stopSection(); ?> <!-- End Content -->

<?php echo $__env->make('main.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\wjhatna\resources\views/main/services/show.blade.php ENDPATH**/ ?>