<?php
    $types = \App\Models\SpaceType::where('status', 1)->get();
?>

<section class="td-services-2">
    <div class="container">
        <div class="td-services-2-tabs">
            <div class="title">
                <div class="section-title-2">
                    <div class="section-title-2-top">
                        <img src="<?php echo e(asset('frontend/default/img/icon/icon-2/title-icon.svg')); ?>">
                        <p><?php echo e($data['space_subtitle']); ?></p>
                    </div>
                    <div class="section-title-2-bottom wow img-custom-anim-left" data-wow-duration="1.5s"
                        data-wow-delay="0.1s">
                        <h2><?php echo e($data['service_title']); ?></h2>
                    </div>
                </div>
            </div>
            <div class="full-tab">
                <div class="full-tab-content">
                    <div class="full-tab-content-buttons" id="v-pills-tab" role="tablist" aria-orientation="vertical">
                        <?php $__currentLoopData = $types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <button class="<?php echo \Illuminate\Support\Arr::toCssClasses(['tab-button', 'active' => $loop->first]); ?>" id="<?php echo e($type->id); ?>-tab" data-bs-toggle="tab"
                                data-bs-target="#space-<?php echo e($type->id); ?>" type="button" role="tab"
                                aria-controls="office" aria-selected="true">
                                <?php echo e($type->name); ?>

                            </button>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    <div class="full-tab-content-cards tab-content" id="v-pills-tabContent">
                        <?php $__currentLoopData = $types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="<?php echo \Illuminate\Support\Arr::toCssClasses(['tab-pane fade', 'show active' => $loop->first]); ?>" id="space-<?php echo e($type->id); ?>" role="tabpanel"
                                aria-labelledby="<?php echo e($type->id); ?>-tab">
                                <?php
                                    $spaces = App\Models\Space::with('location')
                                        ->where('type_id', $type->id)
                                        ->where('status', true)
                                        ->latest()
                                        ->get();
                                ?>
                                <div class="office-space-content">
                                    <div class="row gy-4 gy-md-0 gx-4">
                                        <?php $__currentLoopData = $spaces; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $space): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <div class="col-sm-6 col-md-4">
                                                <div class="tab-service-card">
                                                    <a href="<?php echo e(route('service.details', encrypt($space->id))); ?>"
                                                        class="image-container">
                                                        <div class="img">
                                                            <img src="<?php echo e(asset($space->banner_image)); ?>"
                                                                alt="<?php echo e($space->title); ?>">
                                                        </div>
                                                        <?php if(multiLocationEnabled()): ?>
                                                            <div class="location">
                                                                <img src="<?php echo e(asset('frontend/default/img/service-images/location-icon-black.svg')); ?>"
                                                                    alt="<?php echo e($space->location?->name); ?>">
                                                                <?php echo e($space->location?->name); ?>

                                                            </div>
                                                        <?php endif; ?>
                                                    </a>
                                                    <a href="<?php echo e(route('service.details', encrypt($space->id))); ?>"
                                                        class="title">
                                                        <?php echo e($space->title); ?>

                                                    </a>
                                                </div>
                                            </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="td-services-2-element">
        <img src="<?php echo e(asset('frontend/default/img/service-images/service-images-2/service-element.svg')); ?>"
            alt="">
    </div>
</section>
<!-- services section end -->
<?php /**PATH /www/wwwroot/mxawfis.atharvatek.com/app/Providers/../../resources/views/frontend/spaceify/home/include/__services.blade.php ENDPATH**/ ?>