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


<main>
        <!--start header-->
        <section class="pg-header">
            <div class="text text-center">
                <h4 class="mb-0">خدماتنا </h4>
            </div>
        </section>
         <!--start services-pg-->
        <section class="services-pg">
            <div class="container">
                <?php $__currentLoopData = $types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="nutrition">
                    <div class="row">
                        <div class="col-md-7 m-auto">
                            <div class="text text-center wow fadeInUp mb-5" data-wow-duration="2s">
                                <!-- <span>خدماتنا</span> -->
                                <h3> <?php echo e($type->name); ?></h3>
                                <p>
                                   <?php echo e($type->description); ?>

                                        </p>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <?php $__currentLoopData = services($type->id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        
                        <?php if(count(steps($row->id)) == 0): ?>
                        <div class="col-md-6">
                            <div class="item">
                                <div class="text">
                                    <h6><?php echo e($row->name); ?></h6>
                                    <p>
                                        <?php echo e($row->description); ?>

                                    </p>
                                    <div class="links">
                                        <a href="<?php echo e(url('requests')); ?>">احجز الآن</a>
                                        <a data-fancybox href="<?php echo e($row->youtube); ?>"> قصة نجاح</a>
                                    </div>
                                </div>
                                <div class="icon-container" data-wow-duration="2s">
                                    <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                </div>
                            </div>
                        </div>
                        <?php else: ?>
                         <div class="col-md-12">
                            <div class="item">
                                <div class="text">
                                    <h6><?php echo e($row->name); ?></h6>
                                    <h6>  الخطوات :</h6>
                                    <p>
                                        <?php $__currentLoopData = steps($row->id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $step): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        • <?php echo e($step->step); ?> <br>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </p>
                                    <div class="links">
                                        <a href="<?php echo e(url('requests')); ?>">احجز الآن</a>
                                        
                                    </div>
                                </div>
                                <div class="icon-container" data-wow-duration="2s">
                                    <img src="<?php echo e(asset($row->image)); ?>" alt="">
                                </div>
                            </div>
                        </div>
                        <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </section>
    </main>
    
    <?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/green_apple/resources/views/web/pages/services.blade.php ENDPATH**/ ?>