seller_shop.blade.php 10 KB

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