
<?php $__env->startSection('title', __('Spaces')); ?>
<?php $__env->startSection('content'); ?>
    <!-- common page header start -->
    <div class="td-page-header">
        <div class="container">
            <div class="td-page-header-indicator">
                <ul>
                    <li>
                        <a href="<?php echo e(url('/')); ?>"><?php echo e(__('Home')); ?></a>
                    </li>
                    <li>
                        <a href="<?php echo e(request()->fullUrl()); ?>"><?php echo e(__('Spaces')); ?></a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="td-page-header-element">
            <img src="<?php echo e(asset('frontend/default/img/elements/header-shape.png')); ?>" alt="">
        </div>
        <div class="td-page-header-elementLeft">
            <img src="<?php echo e(asset('frontend/default/img/elements/header-shape-left.png')); ?>" alt="">
        </div>
    </div>
    <!-- common page header end -->
    <!-- our services start -->
    <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(__('Spaces')); ?></p>
                        </div>
                    </div>
                </div>
                <?php if(count($types) > 0): ?>
                    <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>
                <?php endif; ?>
            </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>
    <!-- our services end -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/mxawfis.atharvatek.com/app/Providers/../../resources/views/frontend/spaceify/pages/spaces.blade.php ENDPATH**/ ?>