12bb4cbc0bc37463d8630e46e7854c7b477d74cd.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?php $__env->startSection('meta_title'); ?><?php echo e($shop->meta_title); ?><?php $__env->stopSection(); ?>
  2. <?php $__env->startSection('meta_description'); ?><?php echo e($shop->meta_description); ?><?php $__env->stopSection(); ?>
  3. <?php $__env->startSection('meta'); ?>
  4. <!-- Schema.org markup for Google+ -->
  5. <meta itemprop="name" content="<?php echo e($shop->meta_title); ?>">
  6. <meta itemprop="description" content="<?php echo e($shop->meta_description); ?>">
  7. <meta itemprop="image" content="<?php echo e(uploaded_asset($shop->logo)); ?>">
  8. <!-- Twitter Card data -->
  9. <meta name="twitter:card" content="website">
  10. <meta name="twitter:site" content="@publisher_handle">
  11. <meta name="twitter:title" content="<?php echo e($shop->meta_title); ?>">
  12. <meta name="twitter:description" content="<?php echo e($shop->meta_description); ?>">
  13. <meta name="twitter:creator" content="@author_handle">
  14. <meta name="twitter:image" content="<?php echo e(uploaded_asset($shop->meta_img)); ?>">
  15. <!-- Open Graph data -->
  16. <meta property="og:title" content="<?php echo e($shop->meta_title); ?>" />
  17. <meta property="og:type" content="website" />
  18. <meta property="og:url" content="<?php echo e(route('shop.visit', $shop->slug)); ?>" />
  19. <meta property="og:image" content="<?php echo e(uploaded_asset($shop->logo)); ?>" />
  20. <meta property="og:description" content="<?php echo e($shop->meta_description); ?>" />
  21. <meta property="og:site_name" content="<?php echo e($shop->name); ?>" />
  22. <?php $__env->stopSection(); ?>
  23. <?php $__env->startSection('content'); ?>
  24. <section class="pt-5 mb-4 bg-white">
  25. <div class="container">
  26. <div class="row">
  27. <div class="col-md-6 mx-auto">
  28. <div class="d-flex justify-content-center">
  29. <img
  30. height="70"
  31. class="lazyload"
  32. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  33. data-src="<?php if($shop->logo !== null): ?> <?php echo e(uploaded_asset($shop->logo)); ?> <?php else: ?> <?php echo e(static_asset('assets/img/placeholder.jpg')); ?> <?php endif; ?>"
  34. alt="<?php echo e($shop->name); ?>"
  35. >
  36. <div class="pl-4 text-left">
  37. <h1 class="fw-600 h4 mb-0"><?php echo e($shop->name); ?>
  38. <?php if($shop->verification_status == 1): ?>
  39. <span class="ml-2"><i class="fa fa-check-circle" style="color:green"></i></span>
  40. <?php else: ?>
  41. <span class="ml-2"><i class="fa fa-times-circle" style="color:red"></i></span>
  42. <?php endif; ?>
  43. </h1>
  44. <div class="rating rating-sm mb-1">
  45. <?php echo e(renderStarRating($shop->rating)); ?>
  46. </div>
  47. <div class="location opacity-60"><?php echo e($shop->address); ?></div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="border-bottom mt-5"></div>
  53. <div class="row align-items-center">
  54. <div class="col-lg-6 order-2 order-lg-0">
  55. <ul class="list-inline mb-0 text-center text-lg-left">
  56. <li class="list-inline-item ">
  57. <a class="text-reset d-inline-block fw-600 fs-15 p-3 <?php if(!isset($type)): ?> border-bottom border-primary border-width-2 <?php endif; ?>" href="<?php echo e(route('shop.visit', $shop->slug)); ?>"><?php echo e(translate('Store Home')); ?></a>
  58. </li>
  59. <li class="list-inline-item ">
  60. <a class="text-reset d-inline-block fw-600 fs-15 p-3 <?php if(isset($type) && $type == 'top-selling'): ?> border-bottom border-primary border-width-2 <?php endif; ?>" href="<?php echo e(route('shop.visit.type', ['slug'=>$shop->slug, 'type'=>'top-selling'])); ?>"><?php echo e(translate('Top Selling')); ?></a>
  61. </li>
  62. <li class="list-inline-item ">
  63. <a class="text-reset d-inline-block fw-600 fs-15 p-3 <?php if(isset($type) && $type == 'all-products'): ?> border-bottom border-primary border-width-2 <?php endif; ?>" href="<?php echo e(route('shop.visit.type', ['slug'=>$shop->slug, 'type'=>'all-products'])); ?>"><?php echo e(translate('All Products')); ?></a>
  64. </li>
  65. </ul>
  66. </div>
  67. <div class="col-lg-6 order-1 order-lg-0">
  68. <ul class="text-center text-lg-right mt-4 mt-lg-0 social colored list-inline mb-0">
  69. <?php if($shop->facebook != null): ?>
  70. <li class="list-inline-item">
  71. <a href="<?php echo e($shop->facebook); ?>" class="facebook" target="_blank">
  72. <i class="lab la-facebook-f"></i>
  73. </a>
  74. </li>
  75. <?php endif; ?>
  76. <?php if($shop->instagram != null): ?>
  77. <li class="list-inline-item">
  78. <a href="<?php echo e($shop->instagram); ?>" class="instagram" target="_blank">
  79. <i class="lab la-instagram"></i>
  80. </a>
  81. </li>
  82. <?php endif; ?>
  83. <?php if($shop->twitter != null): ?>
  84. <li class="list-inline-item">
  85. <a href="<?php echo e($shop->twitter); ?>" class="twitter" target="_blank">
  86. <i class="lab la-twitter"></i>
  87. </a>
  88. </li>
  89. <?php endif; ?>
  90. <?php if($shop->google != null): ?>
  91. <li class="list-inline-item">
  92. <a href="<?php echo e($shop->google); ?>" class="google-plus" target="_blank">
  93. <i class="lab la-google"></i>
  94. </a>
  95. </li>
  96. <?php endif; ?>
  97. <?php if($shop->youtube != null): ?>
  98. <li class="list-inline-item">
  99. <a href="<?php echo e($shop->youtube); ?>" class="youtube" target="_blank">
  100. <i class="lab la-youtube"></i>
  101. </a>
  102. </li>
  103. <?php endif; ?>
  104. </ul>
  105. </div>
  106. </div>
  107. </div>
  108. </section>
  109. <?php if(!isset($type)): ?>
  110. <section class="mb-5">
  111. <div class="container">
  112. <div class="aiz-carousel dots-inside-bottom mobile-img-auto-height" data-arrows="true" data-dots="true" data-autoplay="true">
  113. <?php if($shop->sliders != null): ?>
  114. <?php $__currentLoopData = explode(',',$shop->sliders); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  115. <div class="carousel-box">
  116. <img class="d-block w-100 lazyload rounded h-200px h-lg-380px img-fit" src="<?php echo e(static_asset('assets/img/placeholder-rect.jpg')); ?>" data-src="<?php echo e(uploaded_asset($slide)); ?>" alt="<?php echo e($key); ?> offer">
  117. </div>
  118. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  119. <?php endif; ?>
  120. </div>
  121. </div>
  122. </section>
  123. <section class="mb-4">
  124. <div class="container">
  125. <div class="text-center mb-4">
  126. <h3 class="h3 fw-600 border-bottom">
  127. <span class="border-bottom border-primary border-width-2 pb-3 d-inline-block"><?php echo e(translate('Featured Products')); ?></span>
  128. </h3>
  129. </div>
  130. <div class="row">
  131. <div class="col">
  132. <div class="aiz-carousel gutters-10" data-items="6" data-xl-items="5" data-lg-items="4" data-md-items="3" data-sm-items="2" data-xs-items="2" data-autoplay='true' data-infinute="true" data-dots="true">
  133. <?php $__currentLoopData = $shop->user->products->where('published', 1)->where('approved', 1)->where('seller_featured', 1); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  134. <div class="carousel-box">
  135. <?php echo $__env->make('frontend.partials.product_box_1',['product' => $product], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  136. </div>
  137. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </section>
  143. <?php endif; ?>
  144. <section class="mb-4">
  145. <div class="container">
  146. <div class="mb-4">
  147. <h3 class="h3 fw-600 border-bottom">
  148. <span class="border-bottom border-primary border-width-2 pb-3 d-inline-block">
  149. <?php if(!isset($type)): ?>
  150. <?php echo e(translate('New Arrival Products')); ?>
  151. <?php elseif($type == 'top-selling'): ?>
  152. <?php echo e(translate('Top Selling')); ?>
  153. <?php elseif($type == 'all-products'): ?>
  154. <?php echo e(translate('All Products')); ?>
  155. <?php endif; ?>
  156. </span>
  157. </h3>
  158. </div>
  159. <div class="row gutters-5 row-cols-xxl-5 row-cols-lg-4 row-cols-md-3 row-cols-2">
  160. <?php
  161. if (!isset($type)){
  162. $products = \App\Models\Product::where('user_id', $shop->user->id)->where('published', 1)->where('approved', 1)->orderBy('created_at', 'desc')->paginate(24);
  163. }
  164. elseif ($type == 'top-selling'){
  165. $products = \App\Models\Product::where('user_id', $shop->user->id)->where('published', 1)->where('approved', 1)->orderBy('num_of_sale', 'desc')->paginate(24);
  166. }
  167. elseif ($type == 'all-products'){
  168. $products = \App\Models\Product::where('user_id', $shop->user->id)->where('published', 1)->where('approved', 1)->paginate(24);
  169. }
  170. ?>
  171. <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  172. <div class="col mb-3">
  173. <?php echo $__env->make('frontend.partials.product_box_1',['product' => $product], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  174. </div>
  175. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  176. </div>
  177. <div class="aiz-pagination aiz-pagination-center mb-4">
  178. <?php echo e($products->links()); ?>
  179. </div>
  180. </div>
  181. </section>
  182. <?php $__env->stopSection(); ?>
  183. <?php echo $__env->make('frontend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/seller_shop.blade.php ENDPATH**/ ?>