<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $servicesByCategory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $categoryId => $serviceCards): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
  <?php
    $categoryName = $serviceCards->first()['category_name'] ?? 'More';
    $categoryFilterId = (int) $categoryId;
    $viewAllParams = $categoryFilterId > 0 ? ['category_id' => $categoryFilterId] : ['q' => $categoryName];
  ?>

  <div class="d-flex justify-content-between align-items-center category-head">
    <h4 class="category-title"><?php echo e($categoryName); ?></h4>
    <a href="<?php echo e(route('subscriptions.index', $viewAllParams)); ?>" class="category-view-all">View all &gt;&gt;</a>
  </div>

  <div class="row g-3 mb-4">
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $serviceCards; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $card): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      <div class="col-lg-4 col-md-4 col-sm-6">
        <a href="<?php echo e(route('subscriptions.show', $card['target_subscription_id'])); ?>" class="market-card">
          <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($card['has_incentive_badge']): ?>
            
          <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

          <div class="d-flex align-items-start">
            <div class="service-logo">
              <span class="service-logo-fallback"><?php echo e(strtoupper(substr($card['service_name'], 0, 3))); ?></span>
              <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($card['logo'])): ?>
                <img src="<?php echo e(asset($card['logo'])); ?>" alt="<?php echo e($card['service_name']); ?>" onerror="this.remove()">
              <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            <div class="profile-stack">
              <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $card['profiles']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $profile): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <span class="profile-dot" title="<?php echo e($profile['name']); ?>"><?php echo e($profile['initials']); ?></span>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
              <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($card['extra_profiles'] > 0): ?>
                <span class="profile-more">+<?php echo e($card['extra_profiles']); ?></span>
              <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>
          </div>

          <div class="mt-3 fw-semibold"><?php echo e($card['service_name']); ?></div>
          <p class="minimum-text">Minimum per month</p>
          <div class="minimum-price"><?php echo e(number_format($card['min_price'], 2)); ?> &euro;</div>
        </a>
      </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
  </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
  <div class="card">
    <div class="card-body py-5 text-center">
      No subscriptions found.
    </div>
  </div>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<?php /**PATH /home/wwwlifelinehealt/public_html/marketplace.lifelinehealthcare.com.pk/resources/views/subscriptions/partials/results.blade.php ENDPATH**/ ?>