61f417335ee8f35fd3111361c06279c7ee4ded5c.php 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <div class="">
  2. <?php if(sizeof($keywords) > 0): ?>
  3. <div class="px-2 py-1 text-uppercase fs-10 text-right text-muted bg-soft-secondary"><?php echo e(translate('Popular Suggestions')); ?></div>
  4. <ul class="list-group list-group-raw">
  5. <?php $__currentLoopData = $keywords; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $keyword): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  6. <li class="list-group-item py-1">
  7. <a class="text-reset hov-text-primary" href="<?php echo e(route('suggestion.search', $keyword)); ?>"><?php echo e($keyword); ?></a>
  8. </li>
  9. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  10. </ul>
  11. <?php endif; ?>
  12. </div>
  13. <div class="">
  14. <?php if(count($categories) > 0): ?>
  15. <div class="px-2 py-1 text-uppercase fs-10 text-right text-muted bg-soft-secondary"><?php echo e(translate('Category Suggestions')); ?></div>
  16. <ul class="list-group list-group-raw">
  17. <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  18. <li class="list-group-item py-1">
  19. <a class="text-reset hov-text-primary" href="<?php echo e(route('products.category', $category->slug)); ?>"><?php echo e($category->getTranslation('name')); ?></a>
  20. </li>
  21. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  22. </ul>
  23. <?php endif; ?>
  24. </div>
  25. <div class="">
  26. <?php if(count($products) > 0): ?>
  27. <div class="px-2 py-1 text-uppercase fs-10 text-right text-muted bg-soft-secondary"><?php echo e(translate('Products')); ?></div>
  28. <ul class="list-group list-group-raw">
  29. <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  30. <li class="list-group-item">
  31. <a class="text-reset" href="<?php echo e(route('product', $product->slug)); ?>">
  32. <div class="d-flex search-product align-items-center">
  33. <div class="mr-3">
  34. <img class="size-40px img-fit rounded" src="<?php echo e(uploaded_asset($product->thumbnail_img)); ?>">
  35. </div>
  36. <div class="flex-grow-1 overflow--hidden minw-0">
  37. <div class="product-name text-truncate fs-14 mb-5px">
  38. <?php echo e($product->getTranslation('name')); ?>
  39. </div>
  40. <div class="">
  41. <?php if(home_base_price($product) != home_discounted_base_price($product)): ?>
  42. <del class="opacity-60 fs-15"><?php echo e(home_base_price($product)); ?></del>
  43. <?php endif; ?>
  44. <span class="fw-600 fs-16 text-primary"><?php echo e(home_discounted_base_price($product)); ?></span>
  45. </div>
  46. </div>
  47. </div>
  48. </a>
  49. </li>
  50. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  51. </ul>
  52. <?php endif; ?>
  53. </div>
  54. <?php if(get_setting('vendor_system_activation') == 1): ?>
  55. <div class="">
  56. <?php if(count($shops) > 0): ?>
  57. <div class="px-2 py-1 text-uppercase fs-10 text-right text-muted bg-soft-secondary"><?php echo e(translate('Shops')); ?></div>
  58. <ul class="list-group list-group-raw">
  59. <?php $__currentLoopData = $shops; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $shop): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  60. <li class="list-group-item">
  61. <a class="text-reset" href="<?php echo e(route('shop.visit', $shop->slug)); ?>">
  62. <div class="d-flex search-product align-items-center">
  63. <div class="mr-3">
  64. <img class="size-40px img-fit rounded" src="<?php echo e(uploaded_asset($shop->logo)); ?>">
  65. </div>
  66. <div class="flex-grow-1 overflow--hidden">
  67. <div class="product-name text-truncate fs-14 mb-5px">
  68. <?php echo e($shop->name); ?>
  69. </div>
  70. <div class="opacity-60">
  71. <?php echo e($shop->address); ?>
  72. </div>
  73. </div>
  74. </div>
  75. </a>
  76. </li>
  77. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  78. </ul>
  79. <?php endif; ?>
  80. </div>
  81. <?php endif; ?>
  82. <?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/partials/search_content.blade.php ENDPATH**/ ?>