d20bf391be58acc9945ca5f9efb6fcff845fa31f.php 80 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151
  1. <?php $__env->startSection('meta_title'); ?><?php echo e($detailedProduct->meta_title); ?><?php $__env->stopSection(); ?>
  2. <?php $__env->startSection('meta_description'); ?><?php echo e($detailedProduct->meta_description); ?><?php $__env->stopSection(); ?>
  3. <?php $__env->startSection('meta_keywords'); ?><?php echo e($detailedProduct->tags); ?><?php $__env->stopSection(); ?>
  4. <?php $__env->startSection('meta'); ?>
  5. <!-- Schema.org markup for Google+ -->
  6. <meta itemprop="name" content="<?php echo e($detailedProduct->meta_title); ?>">
  7. <meta itemprop="description" content="<?php echo e($detailedProduct->meta_description); ?>">
  8. <meta itemprop="image" content="<?php echo e(uploaded_asset($detailedProduct->meta_img)); ?>">
  9. <!-- Twitter Card data -->
  10. <meta name="twitter:card" content="product">
  11. <meta name="twitter:site" content="@publisher_handle">
  12. <meta name="twitter:title" content="<?php echo e($detailedProduct->meta_title); ?>">
  13. <meta name="twitter:description" content="<?php echo e($detailedProduct->meta_description); ?>">
  14. <meta name="twitter:creator" content="@author_handle">
  15. <meta name="twitter:image" content="<?php echo e(uploaded_asset($detailedProduct->meta_img)); ?>">
  16. <meta name="twitter:data1" content="<?php echo e(single_price($detailedProduct->unit_price)); ?>">
  17. <meta name="twitter:label1" content="Price">
  18. <!-- Open Graph data -->
  19. <meta property="og:title" content="<?php echo e($detailedProduct->meta_title); ?>" />
  20. <meta property="og:type" content="og:product" />
  21. <meta property="og:url" content="<?php echo e(route('product', $detailedProduct->slug)); ?>" />
  22. <meta property="og:image" content="<?php echo e(uploaded_asset($detailedProduct->meta_img)); ?>" />
  23. <meta property="og:description" content="<?php echo e($detailedProduct->meta_description); ?>" />
  24. <meta property="og:site_name" content="<?php echo e(get_setting('meta_title')); ?>" />
  25. <meta property="og:price:amount" content="<?php echo e(single_price($detailedProduct->unit_price)); ?>" />
  26. <meta property="product:price:currency"
  27. content="<?php echo e(\App\Models\Currency::findOrFail(get_setting('system_default_currency'))->code); ?>" />
  28. <meta property="fb:app_id" content="<?php echo e(env('FACEBOOK_PIXEL_ID')); ?>">
  29. <?php $__env->stopSection(); ?>
  30. <?php $__env->startSection('content'); ?>
  31. <section class="mb-4 pt-3">
  32. <div class="container">
  33. <div class="bg-white shadow-sm rounded p-3">
  34. <div class="row">
  35. <div class="col-xl-5 col-lg-6 mb-4">
  36. <div class="sticky-top z-3 row gutters-10">
  37. <?php
  38. $photos = explode(',', $detailedProduct->photos);
  39. ?>
  40. <div class="col order-1 order-md-2">
  41. <div class="aiz-carousel product-gallery" data-nav-for='.product-gallery-thumb'
  42. data-fade='true' data-auto-height='true'>
  43. <?php $__currentLoopData = $photos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  44. <div class="carousel-box img-zoom rounded">
  45. <img class="img-fluid lazyload"
  46. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  47. data-src="<?php echo e(uploaded_asset($photo)); ?>"
  48. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';">
  49. </div>
  50. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  51. <?php $__currentLoopData = $detailedProduct->stocks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $stock): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  52. <?php if($stock->image != null): ?>
  53. <div class="carousel-box img-zoom rounded">
  54. <img class="img-fluid lazyload"
  55. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  56. data-src="<?php echo e(uploaded_asset($stock->image)); ?>"
  57. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';">
  58. </div>
  59. <?php endif; ?>
  60. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  61. </div>
  62. </div>
  63. <div class="col-12 col-md-auto w-md-80px order-2 order-md-1 mt-3 mt-md-0">
  64. <div class="aiz-carousel product-gallery-thumb" data-items='5'
  65. data-nav-for='.product-gallery' data-vertical='true' data-vertical-sm='false'
  66. data-focus-select='true' data-arrows='true'>
  67. <?php $__currentLoopData = $photos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $photo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  68. <div class="carousel-box c-pointer border p-1 rounded">
  69. <img class="lazyload mw-100 size-50px mx-auto"
  70. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  71. data-src="<?php echo e(uploaded_asset($photo)); ?>"
  72. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';">
  73. </div>
  74. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  75. <?php $__currentLoopData = $detailedProduct->stocks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $stock): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  76. <?php if($stock->image != null): ?>
  77. <div class="carousel-box c-pointer border p-1 rounded"
  78. data-variation="<?php echo e($stock->variant); ?>">
  79. <img class="lazyload mw-100 size-50px mx-auto"
  80. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  81. data-src="<?php echo e(uploaded_asset($stock->image)); ?>"
  82. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';">
  83. </div>
  84. <?php endif; ?>
  85. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="col-xl-7 col-lg-6">
  91. <div class="text-left">
  92. <h1 class="mb-2 fs-20 fw-600">
  93. <?php echo e($detailedProduct->getTranslation('name')); ?>
  94. </h1>
  95. <div class="row align-items-center">
  96. <div class="col-12">
  97. <?php
  98. $total = 0;
  99. $total += $detailedProduct->reviews->count();
  100. ?>
  101. <span class="rating">
  102. <?php echo e(renderStarRating($detailedProduct->rating)); ?>
  103. </span>
  104. <span class="ml-1 opacity-50">(<?php echo e($total); ?>
  105. <?php echo e(translate('reviews')); ?>)</span>
  106. </div>
  107. <?php if($detailedProduct->est_shipping_days): ?>
  108. <div class="col-auto ml">
  109. <small class="mr-2 opacity-50"><?php echo e(translate('Estimate Shipping Time')); ?>:
  110. </small><?php echo e($detailedProduct->est_shipping_days); ?> <?php echo e(translate('Days')); ?>
  111. </div>
  112. <!-\u6b63\u7248\u0071\u0071\u0034\u0039\u0035\u0032\u0020\u0038\u0038\u0038\u0037->
  113. <?php endif; ?>
  114. </div>
  115. <hr>
  116. <div class="row align-items-center">
  117. <div class="col-auto">
  118. <small class="mr-2 opacity-50"><?php echo e(translate('Sold by')); ?>: </small><br>
  119. <?php if($detailedProduct->added_by == 'seller' && get_setting('vendor_system_activation') == 1): ?>
  120. <a href="<?php echo e(route('shop.visit', $detailedProduct->user->shop->slug)); ?>"
  121. class="text-reset"><?php echo e($detailedProduct->user->shop->name); ?></a>
  122. <?php else: ?>
  123. <?php echo e(translate('Inhouse product')); ?>
  124. <?php endif; ?>
  125. </div>
  126. <?php if(get_setting('conversation_system') == 1): ?>
  127. <div class="col-auto">
  128. <button class="btn btn-sm btn-soft-primary"
  129. onclick="show_chat_modal()"><?php echo e(translate('Message Seller')); ?></button>
  130. </div>
  131. <?php endif; ?>
  132. <?php if($detailedProduct->user->shop && $detailedProduct->user->shop->online_ervice): ?>
  133. <a target="_blank" href="<?php echo e($detailedProduct->user->shop->online_ervice); ?>" class="col-auto" style="padding-right: 0px;">
  134. <button class="btn btn-sm btn-soft-primary" ><?php echo e(translate('Online Service')); ?></button>
  135. </a>
  136. <?php endif; ?>
  137. <?php if($detailedProduct->brand != null): ?>
  138. <div class="col-auto">
  139. <a href="<?php echo e(route('products.brand', $detailedProduct->brand->slug)); ?>">
  140. <img src="<?php echo e(uploaded_asset($detailedProduct->brand->logo)); ?>"
  141. alt="<?php echo e($detailedProduct->brand->getTranslation('name')); ?>"
  142. height="30">
  143. </a>
  144. </div>
  145. <?php endif; ?>
  146. </div>
  147. <hr>
  148. <?php if($detailedProduct->wholesale_product): ?>
  149. <table class="table mb-0">
  150. <thead>
  151. <tr>
  152. <th><?php echo e(translate('Min Qty')); ?></th>
  153. <th><?php echo e(translate('Max Qty')); ?></th>
  154. <th><?php echo e(translate('Unit Price')); ?></th>
  155. </tr>
  156. </thead>
  157. <tbody>
  158. <?php $__currentLoopData = $detailedProduct->stocks->first()->wholesalePrices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $wholesalePrice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  159. <tr>
  160. <td><?php echo e($wholesalePrice->min_qty); ?></td>
  161. <td><?php echo e($wholesalePrice->max_qty); ?></td>
  162. <td><?php echo e(single_price($wholesalePrice->price)); ?></td>
  163. </tr>
  164. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  165. </tbody>
  166. </table>
  167. <?php else: ?>
  168. <?php if(home_price($detailedProduct) != home_discounted_price($detailedProduct)): ?>
  169. <div class="row no-gutters mt-3">
  170. <div class="col-sm-2">
  171. <div class="opacity-50 my-2"><?php echo e(translate('Price')); ?>:</div>
  172. </div>
  173. <div class="col-sm-10">
  174. <div class="fs-20 opacity-60">
  175. <del>
  176. <?php echo e(home_price($detailedProduct)); ?>
  177. <?php if($detailedProduct->unit != null): ?>
  178. <span>/<?php echo e($detailedProduct->getTranslation('unit')); ?></span>
  179. <?php endif; ?>
  180. </del>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="row no-gutters my-2">
  185. <div class="col-sm-2">
  186. <div class="opacity-50"><?php echo e(translate('Discount Price')); ?>:</div>
  187. </div>
  188. <div class="col-sm-10">
  189. <div class="">
  190. <strong class="h2 fw-600 text-primary">
  191. <?php echo e(home_discounted_price($detailedProduct)); ?>
  192. </strong>
  193. <?php if($detailedProduct->unit != null): ?>
  194. <span
  195. class="opacity-70">/<?php echo e($detailedProduct->getTranslation('unit')); ?></span>
  196. <?php endif; ?>
  197. </div>
  198. </div>
  199. </div>
  200. <?php else: ?>
  201. <div class="row no-gutters mt-3">
  202. <div class="col-sm-2">
  203. <div class="opacity-50 my-2"><?php echo e(translate('Price')); ?>:</div>
  204. </div>
  205. <div class="col-sm-10">
  206. <div class="">
  207. <strong class="h2 fw-600 text-primary">
  208. <?php echo e(home_discounted_price($detailedProduct)); ?>
  209. </strong>
  210. <?php if($detailedProduct->unit != null): ?>
  211. <span
  212. class="opacity-70">/<?php echo e($detailedProduct->getTranslation('unit')); ?></span>
  213. <?php endif; ?>
  214. </div>
  215. </div>
  216. </div>
  217. <?php endif; ?>
  218. <?php endif; ?>
  219. <?php if(addon_is_activated('club_point') && $detailedProduct->earn_point > 0): ?>
  220. <div class="row no-gutters mt-4">
  221. <div class="col-sm-2">
  222. <div class="opacity-50 my-2"><?php echo e(translate('Club Point')); ?>:</div>
  223. </div>
  224. <div class="col-sm-10">
  225. <div
  226. class="d-inline-block rounded px-2 bg-soft-primary border-soft-primary border">
  227. <span class="strong-700"><?php echo e($detailedProduct->earn_point); ?></span>
  228. </div>
  229. </div>
  230. </div>
  231. <?php endif; ?>
  232. <hr>
  233. <form id="option-choice-form">
  234. <?php echo csrf_field(); ?>
  235. <input type="hidden" name="id" value="<?php echo e($detailedProduct->id); ?>">
  236. <?php if($detailedProduct->choice_options != null): ?>
  237. <?php $__currentLoopData = json_decode($detailedProduct->choice_options); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $choice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  238. <div class="row no-gutters">
  239. <div class="col-sm-2">
  240. <div class="opacity-50 my-2">
  241. <?php echo e(\App\Models\Attribute::find($choice->attribute_id)->getTranslation('name')); ?>:
  242. </div>
  243. </div>
  244. <div class="col-sm-10">
  245. <div class="aiz-radio-inline">
  246. <?php $__currentLoopData = $choice->values; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  247. <label class="aiz-megabox pl-0 mr-2">
  248. <input type="radio"
  249. name="attribute_id_<?php echo e($choice->attribute_id); ?>"
  250. value="<?php echo e($value); ?>"
  251. <?php if($key == 0): ?> checked <?php endif; ?>>
  252. <span
  253. class="aiz-megabox-elem rounded d-flex align-items-center justify-content-center py-2 px-3 mb-2">
  254. <?php echo e($value); ?>
  255. </span>
  256. </label>
  257. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  258. </div>
  259. </div>
  260. </div>
  261. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  262. <?php endif; ?>
  263. <?php if(count(json_decode($detailedProduct->colors)) > 0): ?>
  264. <div class="row no-gutters">
  265. <div class="col-sm-2">
  266. <div class="opacity-50 my-2"><?php echo e(translate('Color')); ?>:</div>
  267. </div>
  268. <div class="col-sm-10">
  269. <div class="aiz-radio-inline">
  270. <?php $__currentLoopData = json_decode($detailedProduct->colors); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $color): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  271. <label class="aiz-megabox pl-0 mr-2" data-toggle="tooltip"
  272. data-title="<?php echo e(\App\Models\Color::where('code', $color)->first()->name); ?>">
  273. <input type="radio" name="color"
  274. value="<?php echo e(\App\Models\Color::where('code', $color)->first()->name); ?>"
  275. <?php if($key == 0): ?> checked <?php endif; ?>>
  276. <span
  277. class="aiz-megabox-elem rounded d-flex align-items-center justify-content-center p-1 mb-2">
  278. <span class="size-30px d-inline-block rounded"
  279. style="background: <?php echo e($color); ?>;"></span>
  280. </span>
  281. </label>
  282. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  283. </div>
  284. </div>
  285. </div>
  286. <hr>
  287. <?php endif; ?>
  288. <!-- Quantity + Add to cart -->
  289. <div class="row no-gutters">
  290. <div class="col-sm-2">
  291. <div class="opacity-50 my-2"><?php echo e(translate('Quantity')); ?>:</div>
  292. </div>
  293. <div class="col-sm-10">
  294. <div class="product-quantity d-flex align-items-center">
  295. <div class="row no-gutters align-items-center aiz-plus-minus mr-3"
  296. style="width: 130px;">
  297. <button class="btn col-auto btn-icon btn-sm btn-circle btn-light"
  298. type="button" data-type="minus" data-field="quantity"
  299. disabled="">
  300. <i class="las la-minus"></i>
  301. </button>
  302. <input type="number" name="quantity"
  303. class="col border-0 text-center flex-grow-1 fs-16 input-number"
  304. placeholder="1" value="<?php echo e($detailedProduct->min_qty); ?>"
  305. min="<?php echo e($detailedProduct->min_qty); ?>" max="10"
  306. lang="en" onchange="getVariantPrice()">
  307. <button class="btn col-auto btn-icon btn-sm btn-circle btn-light"
  308. type="button" data-type="plus" data-field="quantity">
  309. <i class="las la-plus"></i>
  310. </button>
  311. </div>
  312. <?php
  313. $qty = 0;
  314. foreach ($detailedProduct->stocks as $key => $stock) {
  315. $qty += $stock->qty;
  316. }
  317. ?>
  318. <div class="avialable-amount opacity-60">
  319. <?php if($detailedProduct->stock_visibility_state == 'quantity'): ?>
  320. (<span id="available-quantity"><?php echo e($qty); ?></span>
  321. <?php echo e(translate('available')); ?>)
  322. <?php elseif($detailedProduct->stock_visibility_state == 'text' && $qty >= 1): ?>
  323. (<span id="available-quantity"><?php echo e(translate('In Stock')); ?></span>)
  324. <?php endif; ?>
  325. </div>
  326. </div>
  327. </div>
  328. </div>
  329. <hr>
  330. <div class="row no-gutters pb-3 d-none" id="chosen_price_div">
  331. <div class="col-sm-2">
  332. <div class="opacity-50 my-2"><?php echo e(translate('Total Price')); ?>:</div>
  333. </div>
  334. <div class="col-sm-10">
  335. <div class="product-price">
  336. <strong id="chosen_price" class="h4 fw-600 text-primary">
  337. </strong>
  338. </div>
  339. </div>
  340. </div>
  341. </form>
  342. <div class="mt-3">
  343. <?php if($detailedProduct->external_link != null): ?>
  344. <a type="button" class="btn btn-primary buy-now fw-600"
  345. href="<?php echo e($detailedProduct->external_link); ?>">
  346. <i class="la la-share"></i> <?php echo e(translate($detailedProduct->external_link_btn)); ?>
  347. </a>
  348. <?php else: ?>
  349. <button type="button" class="btn btn-soft-primary mr-2 add-to-cart fw-600"
  350. onclick="addToCart()">
  351. <i class="las la-shopping-bag"></i>
  352. <span class="d-none d-md-inline-block"> <?php echo e(translate('Add to cart')); ?></span>
  353. </button>
  354. <button type="button" class="btn btn-primary buy-now fw-600" onclick="buyNow()">
  355. <i class="la la-shopping-cart"></i> <?php echo e(translate('Buy Now')); ?>
  356. </button>
  357. <?php endif; ?>
  358. <button type="button" class="btn btn-secondary out-of-stock fw-600 d-none" disabled>
  359. <i class="la la-cart-arrow-down"></i> <?php echo e(translate('Out of Stock')); ?>
  360. </button>
  361. </div>
  362. <div class="d-table width-100 mt-3">
  363. <div class="d-table-cell">
  364. <!-- Add to wishlist button -->
  365. <button type="button" class="btn pl-0 btn-link fw-600"
  366. onclick="addToWishList(<?php echo e($detailedProduct->id); ?>)">
  367. <?php echo e(translate('Add to wishlist')); ?>
  368. </button>
  369. <!-- Add to compare button -->
  370. <button type="button" class="btn btn-link btn-icon-left fw-600"
  371. onclick="addToCompare(<?php echo e($detailedProduct->id); ?>)">
  372. <?php echo e(translate('Add to compare')); ?>
  373. </button>
  374. <?php if(Auth::check() && addon_is_activated('affiliate_system') && (\App\Models\AffiliateOption::where('type', 'product_sharing')->first()->status || \App\Models\AffiliateOption::where('type', 'category_wise_affiliate')->first()->status) && Auth::user()->affiliate_user != null && Auth::user()->affiliate_user->status): ?>
  375. <?php
  376. if (Auth::check()) {
  377. if (Auth::user()->referral_code == null) {
  378. Auth::user()->referral_code = substr(Auth::user()->id . Str::random(10), 0, 10);
  379. Auth::user()->save();
  380. }
  381. $referral_code = Auth::user()->referral_code;
  382. $referral_code_url = URL::to('/product') . '/' . $detailedProduct->slug . "?product_referral_code=$referral_code";
  383. }
  384. ?>
  385. <div>
  386. <button type=button id="ref-cpurl-btn" class="btn btn-sm btn-secondary"
  387. data-attrcpy="<?php echo e(translate('Copied')); ?>"
  388. onclick="CopyToClipboard(this)"
  389. data-url="<?php echo e($referral_code_url); ?>"><?php echo e(translate('Copy the Promote Link')); ?></button>
  390. </div>
  391. <?php endif; ?>
  392. </div>
  393. </div>
  394. <?php
  395. $refund_sticker = get_setting('refund_sticker');
  396. ?>
  397. <?php if(addon_is_activated('refund_request')): ?>
  398. <div class="row no-gutters mt-3">
  399. <div class="col-2">
  400. <div class="opacity-50 mt-2"><?php echo e(translate('Refund')); ?>:</div>
  401. </div>
  402. <div class="col-10">
  403. <a href="<?php echo e(route('returnpolicy')); ?>" target="_blank">
  404. <?php if($refund_sticker != null): ?>
  405. <img src="<?php echo e(uploaded_asset($refund_sticker)); ?>" height="36">
  406. <?php else: ?>
  407. <img src="<?php echo e(static_asset('assets/img/refund-sticker.jpg')); ?>"
  408. height="36">
  409. <?php endif; ?>
  410. </a>
  411. <a href="<?php echo e(route('returnpolicy')); ?>" class="ml-2"
  412. target="_blank"><?php echo e(translate('View Policy')); ?></a>
  413. </div>
  414. </div>
  415. <?php endif; ?>
  416. <div class="row no-gutters mt-4">
  417. <div class="col-sm-2">
  418. <div class="opacity-50 my-2"><?php echo e(translate('Share')); ?>:</div>
  419. </div>
  420. <div class="col-sm-10">
  421. <div class="aiz-share"></div>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. </div>
  427. </div>
  428. </div>
  429. </section>
  430. <section class="mb-4">
  431. <div class="container">
  432. <div class="row gutters-10">
  433. <div class="col-xl-3 order-1 order-xl-0">
  434. <?php if($detailedProduct->added_by == 'seller' && $detailedProduct->user->shop != null): ?>
  435. <div class="bg-white shadow-sm mb-3">
  436. <div class="position-relative p-3 text-left">
  437. <?php if($detailedProduct->user->shop->verification_status): ?>
  438. <div class="absolute-top-right p-2 bg-white z-1">
  439. <svg version="1.1" xmlns="http://www.w3.org/2000/svg"
  440. xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"
  441. viewBox="0 0 287.5 442.2" width="22" height="34">
  442. <polygon style="fill:#F8B517;"
  443. points="223.4,442.2 143.8,376.7 64.1,442.2 64.1,215.3 223.4,215.3 " />
  444. <circle style="fill:#FBD303;" cx="143.8" cy="143.8"
  445. r="143.8" />
  446. <circle style="fill:#F8B517;" cx="143.8" cy="143.8"
  447. r="93.6" />
  448. <polygon style="fill:#FCFCFD;"
  449. points="143.8,55.9 163.4,116.6 227.5,116.6 175.6,154.3 195.6,215.3 143.8,177.7 91.9,215.3 111.9,154.3
  450. 60,116.6 124.1,116.6 " />
  451. </svg>
  452. </div>
  453. <?php endif; ?>
  454. <div class="opacity-50 fs-12 border-bottom"><?php echo e(translate('Sold by')); ?></div>
  455. <a href="<?php echo e(route('shop.visit', $detailedProduct->user->shop->slug)); ?>"
  456. class="text-reset d-block fw-600">
  457. <?php echo e($detailedProduct->user->shop->name); ?>
  458. <?php if($detailedProduct->user->shop->verification_status == 1): ?>
  459. <span class="ml-2"><i class="fa fa-check-circle"
  460. style="color:green"></i></span>
  461. <?php else: ?>
  462. <span class="ml-2"><i class="fa fa-times-circle" style="color:red"></i></span>
  463. <?php endif; ?>
  464. </a>
  465. <div class="location opacity-70"><?php echo e($detailedProduct->user->shop->address); ?></div>
  466. <div class="text-center border rounded p-2 mt-3">
  467. <div class="rating">
  468. <?php if($total > 0): ?>
  469. <?php echo e(renderStarRating($detailedProduct->user->shop->rating)); ?>
  470. <?php else: ?>
  471. <?php echo e(renderStarRating(0)); ?>
  472. <?php endif; ?>
  473. </div>
  474. <div class="opacity-60 fs-12">(<?php echo e(count($lists)); ?>
  475. <?php echo e(translate('customer reviews')); ?>)</div>
  476. </div>
  477. </div>
  478. <div class="row no-gutters align-items-center border-top">
  479. <div class="col">
  480. <a href="<?php echo e(route('shop.visit', $detailedProduct->user->shop->slug)); ?>"
  481. class="d-block btn btn-soft-primary rounded-0"><?php echo e(translate('Visit Store')); ?></a>
  482. </div>
  483. <div class="col">
  484. <ul class="social list-inline mb-0">
  485. <li class="list-inline-item mr-0">
  486. <a href="<?php echo e($detailedProduct->user->shop->facebook); ?>" class="facebook"
  487. target="_blank">
  488. <i class="lab la-facebook-f opacity-60"></i>
  489. </a>
  490. </li>
  491. <li class="list-inline-item mr-0">
  492. <a href="<?php echo e($detailedProduct->user->shop->google); ?>" class="google"
  493. target="_blank">
  494. <i class="lab la-google opacity-60"></i>
  495. </a>
  496. </li>
  497. <li class="list-inline-item mr-0">
  498. <a href="<?php echo e($detailedProduct->user->shop->twitter); ?>" class="twitter"
  499. target="_blank">
  500. <i class="lab la-twitter opacity-60"></i>
  501. </a>
  502. </li>
  503. <li class="list-inline-item">
  504. <a href="<?php echo e($detailedProduct->user->shop->youtube); ?>" class="youtube"
  505. target="_blank">
  506. <i class="lab la-youtube opacity-60"></i>
  507. </a>
  508. </li>
  509. </ul>
  510. </div>
  511. </div>
  512. </div>
  513. <?php endif; ?>
  514. <div class="bg-white rounded shadow-sm mb-3">
  515. <div class="p-3 border-bottom fs-16 fw-600">
  516. <?php echo e(translate('Top Selling Products')); ?>
  517. </div>
  518. <div class="p-3">
  519. <ul class="list-group list-group-flush">
  520. <?php $__currentLoopData = filter_products(\App\Models\Product::query()->from("products as p")->where('user_id', $detailedProduct->user_id)->orderBy('num_of_sale', 'desc'))->limit(6)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $top_product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  521. <li class="py-3 px-0 list-group-item border-light">
  522. <div class="row gutters-10 align-items-center">
  523. <div class="col-5">
  524. <a href="<?php echo e(route('product', $top_product->slug)); ?>"
  525. class="d-block text-reset">
  526. <img class="img-fit lazyload h-xxl-110px h-xl-80px h-120px"
  527. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  528. data-src="<?php echo e(uploaded_asset($top_product->thumbnail_img)); ?>"
  529. alt="<?php echo e($top_product->getTranslation('name')); ?>"
  530. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';">
  531. </a>
  532. </div>
  533. <div class="col-7 text-left">
  534. <h4 class="fs-13 text-truncate-2">
  535. <a href="<?php echo e(route('product', $top_product->slug)); ?>"
  536. class="d-block text-reset"><?php echo e($top_product->getTranslation('name')); ?></a>
  537. </h4>
  538. <div class="rating rating-sm mt-1">
  539. <?php echo e(renderStarRating($top_product->rating)); ?>
  540. </div>
  541. <div class="mt-2">
  542. <span
  543. class="fs-17 fw-600 text-primary"><?php echo e(home_discounted_base_price($top_product)); ?></span>
  544. </div>
  545. </div>
  546. </div>
  547. </li>
  548. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  549. </ul>
  550. </div>
  551. </div>
  552. </div>
  553. <div class="col-xl-9 order-0 order-xl-1">
  554. <div class="bg-white mb-3 shadow-sm rounded">
  555. <div class="nav border-bottom aiz-nav-tabs">
  556. <a href="#tab_default_1" data-toggle="tab"
  557. class="p-3 fs-16 fw-600 text-reset active show"><?php echo e(translate('Description')); ?></a>
  558. <?php if($detailedProduct->video_link != null): ?>
  559. <a href="#tab_default_2" data-toggle="tab"
  560. class="p-3 fs-16 fw-600 text-reset"><?php echo e(translate('Video')); ?></a>
  561. <?php endif; ?>
  562. <?php if($detailedProduct->pdf != null): ?>
  563. <a href="#tab_default_3" data-toggle="tab"
  564. class="p-3 fs-16 fw-600 text-reset"><?php echo e(translate('Downloads')); ?></a>
  565. <?php endif; ?>
  566. <a href="#tab_default_4" data-toggle="tab"
  567. class="p-3 fs-16 fw-600 text-reset"><?php echo e(translate('Reviews')); ?></a>
  568. </div>
  569. <div class="tab-content pt-0">
  570. <div class="tab-pane fade active show" id="tab_default_1">
  571. <div class="p-4">
  572. <div class="mw-100 overflow-hidden text-left aiz-editor-data">
  573. <?php echo $detailedProduct->getTranslation('description'); ?>
  574. </div>
  575. </div>
  576. </div>
  577. <div class="tab-pane fade" id="tab_default_2">
  578. <div class="p-4">
  579. <div class="embed-responsive embed-responsive-16by9">
  580. <?php if($detailedProduct->video_provider == 'youtube' && isset(explode('=', $detailedProduct->video_link)[1])): ?>
  581. <iframe class="embed-responsive-item"
  582. src="https://www.youtube.com/embed/<?php echo e(get_url_params($detailedProduct->video_link, 'v')); ?>"></iframe>
  583. <?php elseif($detailedProduct->video_provider == 'dailymotion' && isset(explode('video/', $detailedProduct->video_link)[1])): ?>
  584. <iframe class="embed-responsive-item"
  585. src="https://www.dailymotion.com/embed/video/<?php echo e(explode('video/', $detailedProduct->video_link)[1]); ?>"></iframe>
  586. <?php elseif($detailedProduct->video_provider == 'vimeo' && isset(explode('vimeo.com/', $detailedProduct->video_link)[1])): ?>
  587. <iframe
  588. src="https://player.vimeo.com/video/<?php echo e(explode('vimeo.com/', $detailedProduct->video_link)[1]); ?>"
  589. width="500" height="281" frameborder="0" webkitallowfullscreen
  590. mozallowfullscreen allowfullscreen></iframe>
  591. <?php endif; ?>
  592. </div>
  593. </div>
  594. </div>
  595. <div class="tab-pane fade" id="tab_default_3">
  596. <div class="p-4 text-center ">
  597. <a href="<?php echo e(uploaded_asset($detailedProduct->pdf)); ?>"
  598. class="btn btn-primary"><?php echo e(translate('Download')); ?></a>
  599. </div>
  600. </div>
  601. <div class="tab-pane fade" id="tab_default_4">
  602. <div class="p-4">
  603. <ul class="list-group list-group-flush">
  604. <?php $__currentLoopData = $lists; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  605. <li class="media list-group-item d-flex">
  606. <span class="avatar avatar-md mr-3">
  607. <?php if($review['author_portrait']!=''): ?>
  608. <img class="lazyload" src="https://s-cf-tw.shopeesz.com/file/<?=$review['author_portrait']?>" >
  609. <?php else: ?>
  610. <img class="lazyload" src="https://xiapi.xiapibuy.com/deo/shopee/shopee-mobilemall-live-sg/f88abc3256846ba9a4af91621bc3f9c4.png" >
  611. <?php endif; ?>
  612. </span>
  613. <div class="media-body text-left">
  614. <div class="d-flex justify-content-between">
  615. <h3 class="fs-15 fw-600 mb-0">
  616. <?=$review['author_username']?>
  617. </h3>
  618. <span class="rating rating-sm">
  619. <?php for($i = 0; $i < $review['rating_star']; $i++): ?>
  620. <i class="las la-star active"></i>
  621. <?php endfor; ?>
  622. <?php for($i = 0; $i < 5 - $review['rating_star']; $i++): ?>
  623. <i class="las la-star"></i>
  624. <?php endfor; ?>
  625. </span>
  626. </div>
  627. <div class="opacity-60 mb-2">
  628. <?=$review['comment']?></div>
  629. <p class="comment-text">
  630. <?=date('Y-m-d H:i:s',$review['mtime'])?>
  631. </p>
  632. </div>
  633. </li>
  634. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  635. <?php $__currentLoopData = $detailedProduct->reviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  636. <?php if($review->user != null): ?>
  637. <li class="media list-group-item d-flex">
  638. <span class="avatar avatar-md mr-3">
  639. <img class="lazyload"
  640. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  641. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';"
  642. <?php if($review->user->avatar_original != null): ?> data-src="<?php echo e(uploaded_asset($review->user->avatar_original)); ?>"
  643. <?php else: ?>
  644. data-src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>" <?php endif; ?>>
  645. </span>
  646. <div class="media-body text-left">
  647. <div class="d-flex justify-content-between">
  648. <h3 class="fs-15 fw-600 mb-0"><?php echo e($review->user->name); ?>
  649. </h3>
  650. <span class="rating rating-sm">
  651. <?php for($i = 0; $i < $review->rating; $i++): ?>
  652. <i class="las la-star active"></i>
  653. <?php endfor; ?>
  654. <?php for($i = 0; $i < 5 - $review->rating; $i++): ?>
  655. <i class="las la-star"></i>
  656. <?php endfor; ?>
  657. </span>
  658. </div>
  659. <div class="opacity-60 mb-2">
  660. <?php echo e(date('d-m-Y', strtotime($review->created_at))); ?></div>
  661. <p class="comment-text">
  662. <?php echo e($review->comment); ?>
  663. </p>
  664. </div>
  665. </li>
  666. <?php endif; ?>
  667. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  668. </ul>
  669. <?php if(count($lists) <= 0): ?>
  670. <div class="text-center fs-18 opacity-70">
  671. <?php echo e(translate('There have been no reviews for this product yet.')); ?>
  672. </div>
  673. <?php endif; ?>
  674. <!--\u76d7\u7248\u9632\u62a4\u0020\u0020\u0071\u0069\u0020\u0065\u0020\u0034\u0039\u0035\u0032\u0020\u0038\u0038\u0038\u0037-->
  675. </div>
  676. </div>
  677. </div>
  678. </div>
  679. <div class="bg-white rounded shadow-sm">
  680. <div class="border-bottom p-3">
  681. <h3 class="fs-16 fw-600 mb-0">
  682. <span class="mr-4"><?php echo e(translate('Related products')); ?></span>
  683. </h3>
  684. </div>
  685. <div class="p-3">
  686. <div class="aiz-carousel gutters-5 half-outside-arrow" data-items="5" data-xl-items="3"
  687. data-lg-items="4" data-md-items="3" data-sm-items="2" data-xs-items="2"
  688. data-arrows='true' data-infinite='true'>
  689. <?php $__currentLoopData = filter_products(\App\Models\Product::query()->from("products as p")->where('category_id', $detailedProduct->category_id)->where('id', '!=', $detailedProduct->id))->limit(10)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $related_product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  690. <div class="carousel-box">
  691. <div
  692. class="aiz-card-box border border-light rounded hov-shadow-md my-2 has-transition">
  693. <div class="">
  694. <a href="<?php echo e(route('product', $related_product->slug)); ?>"
  695. class="d-block">
  696. <img class="img-fit lazyload mx-auto h-140px h-md-210px"
  697. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  698. data-src="<?php echo e(uploaded_asset($related_product->thumbnail_img)); ?>"
  699. alt="<?php echo e($related_product->getTranslation('name')); ?>"
  700. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';">
  701. </a>
  702. </div>
  703. <div class="p-md-3 p-2 text-left">
  704. <div class="fs-15">
  705. <?php if(home_base_price($related_product) != home_discounted_base_price($related_product)): ?>
  706. <del
  707. class="fw-600 opacity-50 mr-1"><?php echo e(home_base_price($related_product)); ?></del>
  708. <?php endif; ?>
  709. <span
  710. class="fw-700 text-primary"><?php echo e(home_discounted_base_price($related_product)); ?></span>
  711. </div>
  712. <div class="rating rating-sm mt-1">
  713. <?php echo e(renderStarRating($related_product->rating)); ?>
  714. </div>
  715. <h3 class="fw-600 fs-13 text-truncate-2 lh-1-4 mb-0 h-35px">
  716. <a href="<?php echo e(route('product', $related_product->slug)); ?>"
  717. class="d-block text-reset"><?php echo e($related_product->getTranslation('name')); ?></a>
  718. </h3>
  719. <?php if(addon_is_activated('club_point')): ?>
  720. <div
  721. class="rounded px-2 mt-2 bg-soft-primary border-soft-primary border">
  722. <?php echo e(translate('Club Point')); ?>:
  723. <span
  724. class="fw-700 float-right"><?php echo e($related_product->earn_point); ?></span>
  725. </div>
  726. <?php endif; ?>
  727. </div>
  728. </div>
  729. </div>
  730. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  731. </div>
  732. </div>
  733. </div>
  734. <?php if(get_setting('product_query_activation') == 1): ?>
  735. <div class="bg-white rounded shadow-sm mt-3">
  736. <div class="border-bottom p-3">
  737. <h3 class="fs-18 fw-600 mb-0">
  738. <span><?php echo e(translate(' Product Queries ')); ?> (<?php echo e($total_query); ?>)</span>
  739. </h3>
  740. </div>
  741. <?php if(auth()->guard()->guest()): ?>
  742. <p class="fs-14 fw-400 mb-0 ml-3 mt-2"><a
  743. href="<?php echo e(route('user.login')); ?>"><?php echo e(translate('Login')); ?></a> or <a class="mr-1"
  744. href="<?php echo e(route('user.registration')); ?>"><?php echo e(translate('Register ')); ?></a><?php echo e(translate(' to submit your questions to seller')); ?>
  745. </p>
  746. <?php endif; ?>
  747. <?php if(auth()->guard()->check()): ?>
  748. <div class="query form p-3">
  749. <?php if($errors->any()): ?>
  750. <div class="alert alert-danger">
  751. <ul>
  752. <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  753. <li><?php echo e($error); ?></li>
  754. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  755. </ul>
  756. </div>
  757. <?php endif; ?>
  758. <form action="<?php echo e(route('product-queries.store')); ?>" method="POST">
  759. <?php echo csrf_field(); ?>
  760. <input type="hidden" name="product" value="<?php echo e($detailedProduct->id); ?>">
  761. <div class="form-group">
  762. <textarea class="form-control" rows="3" cols="40" name="question"
  763. placeholder="Write your question here..." style="resize: none;"></textarea>
  764. </div>
  765. <button type="submit" class="btn btn-primary">Submit</button>
  766. </form>
  767. </div>
  768. <?php
  769. $own_product_queries = Auth::user()->product_queries->where('product_id',$detailedProduct->id);
  770. ?>
  771. <?php if($own_product_queries->count() > 0): ?>
  772. <div class="question-area my-4 mb-0 ml-3">
  773. <div class="border-bottom py-3">
  774. <h3 class="fs-18 fw-600 mb-0">
  775. <span class="mr-4"><?php echo e(translate('My Questions')); ?></span>
  776. </h3>
  777. </div>
  778. <?php $__currentLoopData = $own_product_queries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product_query): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  779. <div class="produc-queries border-bottom">
  780. <div class="query d-flex my-4">
  781. <span class="mt-1"><svg xmlns="http://www.w3.org/2000/svg" width="24.994"
  782. height="24.981" viewBox="0 0 24.994 24.981">
  783. <g id="Group_23909" data-name="Group 23909"
  784. transform="translate(18392.496 11044.037)">
  785. <path id="Subtraction_90" data-name="Subtraction 90"
  786. d="M1830.569-117.742a.4.4,0,0,1-.158-.035.423.423,0,0,1-.252-.446c0-.84,0-1.692,0-2.516v-2.2a5.481,5.481,0,0,1-2.391-.745,5.331,5.331,0,0,1-2.749-4.711c-.034-2.365-.018-4.769,0-7.094l0-.649a5.539,5.539,0,0,1,4.694-5.513,5.842,5.842,0,0,1,.921-.065q3.865,0,7.73,0l5.035,0a5.539,5.539,0,0,1,5.591,5.57c.01,2.577.01,5.166,0,7.693a5.54,5.54,0,0,1-4.842,5.506,6.5,6.5,0,0,1-.823.046l-3.225,0c-1.454,0-2.753,0-3.97,0a.555.555,0,0,0-.435.182c-1.205,1.214-2.435,2.445-3.623,3.636l-.062.062-1.005,1.007-.037.037-.069.069A.464.464,0,0,1,1830.569-117.742Zm7.37-11.235h0l1.914,1.521.817-.754-1.621-1.273a3.517,3.517,0,0,0,1.172-1.487,5.633,5.633,0,0,0,.418-2.267v-.58a5.629,5.629,0,0,0-.448-2.323,3.443,3.443,0,0,0-1.282-1.525,3.538,3.538,0,0,0-1.93-.53,3.473,3.473,0,0,0-1.905.534,3.482,3.482,0,0,0-1.288,1.537,5.582,5.582,0,0,0-.454,2.314v.654a5.405,5.405,0,0,0,.471,2.261,3.492,3.492,0,0,0,1.287,1.5,3.492,3.492,0,0,0,1.9.527,3.911,3.911,0,0,0,.947-.112Zm-.948-.9a2.122,2.122,0,0,1-1.812-.9,4.125,4.125,0,0,1-.652-2.457v-.667a4.008,4.008,0,0,1,.671-2.4,2.118,2.118,0,0,1,1.78-.863,2.138,2.138,0,0,1,1.824.869,4.145,4.145,0,0,1,.639,2.473v.673a4.07,4.07,0,0,1-.655,2.423A2.125,2.125,0,0,1,1836.991-129.881Z"
  787. transform="translate(-20217 -10901.814)" fill="#e62e04"
  788. stroke="rgba(0,0,0,0)" stroke-miterlimit="10"
  789. stroke-width="1" />
  790. </g>
  791. </svg></span>
  792. <div class="ml-3">
  793. <div class="fs-14"><?php echo e(strip_tags($product_query->question)); ?></div>
  794. <span class="text-secondary"><?php echo e($product_query->user->name); ?> </span>
  795. </div>
  796. </div>
  797. <div class="answer d-flex my-4">
  798. <span class="mt-1"> <svg xmlns="http://www.w3.org/2000/svg" width="24.99"
  799. height="24.98" viewBox="0 0 24.99 24.98">
  800. <g id="Group_23908" data-name="Group 23908"
  801. transform="translate(17952.169 11072.5)">
  802. <path id="Subtraction_89" data-name="Subtraction 89"
  803. d="M2162.9-146.2a.4.4,0,0,1-.159-.035.423.423,0,0,1-.251-.446q0-.979,0-1.958V-151.4a5.478,5.478,0,0,1-2.39-.744,5.335,5.335,0,0,1-2.75-4.712c-.034-2.355-.018-4.75,0-7.065l0-.678a5.54,5.54,0,0,1,4.7-5.513,5.639,5.639,0,0,1,.92-.064c2.527,0,5.029,0,7.437,0l5.329,0a5.538,5.538,0,0,1,5.591,5.57c.01,2.708.01,5.224,0,7.692a5.539,5.539,0,0,1-4.843,5.506,6,6,0,0,1-.822.046l-3.234,0c-1.358,0-2.691,0-3.96,0a.556.556,0,0,0-.436.182c-1.173,1.182-2.357,2.367-3.5,3.514l-1.189,1.192-.047.048-.058.059A.462.462,0,0,1,2162.9-146.2Zm5.115-12.835h3.559l.812,2.223h1.149l-3.25-8.494h-.98l-3.244,8.494h1.155l.8-2.222Zm3.226-.915h-2.888l1.441-3.974,1.447,3.972Z"
  804. transform="translate(-20109 -10901.815)" fill="#f7941d"
  805. stroke="rgba(0,0,0,0)" stroke-miterlimit="10"
  806. stroke-width="1" />
  807. </g>
  808. </svg></span>
  809. <div class="ml-3">
  810. <div class="fs-14">
  811. <?php echo e(strip_tags($product_query->reply ? $product_query->reply : translate('Seller did not respond yet'))); ?>
  812. </div>
  813. <span class=" text-secondary">
  814. <?php echo e($product_query->product->user->name); ?> </span>
  815. </div>
  816. </div>
  817. </div>
  818. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  819. </div>
  820. <?php endif; ?>
  821. <?php endif; ?>
  822. <div class="pagination-area my-4 mb-0 ml-3">
  823. <?php echo $__env->make('frontend.partials.product_query_pagination', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  824. </div>
  825. </div>
  826. <?php endif; ?>
  827. </div>
  828. </div>
  829. </div>
  830. </section>
  831. <?php $__env->stopSection(); ?>
  832. <?php $__env->startSection('modal'); ?>
  833. <div class="modal fade" id="chat_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
  834. aria-hidden="true">
  835. <div class="modal-dialog modal-dialog-centered modal-dialog-zoom product-modal" id="modal-size" role="document">
  836. <div class="modal-content position-relative">
  837. <div class="modal-header">
  838. <h5 class="modal-title fw-600 h5"><?php echo e(translate('Any query about this product')); ?></h5>
  839. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  840. <span aria-hidden="true">&times;</span>
  841. </button>
  842. </div>
  843. <form class="" action="<?php echo e(route('conversations.store')); ?>" method="POST"
  844. enctype="multipart/form-data">
  845. <?php echo csrf_field(); ?>
  846. <input type="hidden" name="product_id" value="<?php echo e($detailedProduct->id); ?>">
  847. <div class="modal-body gry-bg px-3 pt-3">
  848. <div class="form-group">
  849. <input type="text" class="form-control mb-3" name="title"
  850. value="<?php echo e($detailedProduct->name); ?>" placeholder="<?php echo e(translate('Product Name')); ?>"
  851. required>
  852. </div>
  853. <div class="form-group">
  854. <textarea class="form-control" rows="8" name="message" required
  855. placeholder="<?php echo e(translate('Your Question')); ?>"><?php echo e(route('product', $detailedProduct->slug)); ?></textarea>
  856. </div>
  857. </div>
  858. <div class="modal-footer">
  859. <button type="button" class="btn btn-outline-primary fw-600"
  860. data-dismiss="modal"><?php echo e(translate('Cancel')); ?></button>
  861. <button type="submit" class="btn btn-primary fw-600"><?php echo e(translate('Send')); ?></button>
  862. </div>
  863. </form>
  864. </div>
  865. </div>
  866. </div>
  867. <!-- Modal -->
  868. <div class="modal fade" id="login_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
  869. aria-hidden="true">
  870. <div class="modal-dialog modal-dialog-zoom" role="document">
  871. <div class="modal-content">
  872. <div class="modal-header">
  873. <h6 class="modal-title fw-600"><?php echo e(translate('Login')); ?></h6>
  874. <button type="button" class="close" data-dismiss="modal">
  875. <span aria-hidden="true"></span>
  876. </button>
  877. </div>
  878. <div class="modal-body">
  879. <div class="p-3">
  880. <form class="form-default" role="form" action="<?php echo e(route('cart.login.submit')); ?>"
  881. method="POST">
  882. <?php echo csrf_field(); ?>
  883. <div class="form-group">
  884. <?php if(addon_is_activated('otp_system')): ?>
  885. <input type="text"
  886. class="form-control h-auto form-control-lg <?php echo e($errors->has('email') ? ' is-invalid' : ''); ?>"
  887. value="<?php echo e(old('email')); ?>" placeholder="<?php echo e(translate('Email Or Phone')); ?>"
  888. name="email" id="email">
  889. <?php else: ?>
  890. <input type="email"
  891. class="form-control h-auto form-control-lg <?php echo e($errors->has('email') ? ' is-invalid' : ''); ?>"
  892. value="<?php echo e(old('email')); ?>" placeholder="<?php echo e(translate('Email')); ?>"
  893. name="email">
  894. <?php endif; ?>
  895. <?php if(addon_is_activated('otp_system')): ?>
  896. <span class="opacity-60"><?php echo e(translate('Use country code before number')); ?></span>
  897. <?php endif; ?>
  898. </div>
  899. <div class="form-group">
  900. <input type="password" name="password" class="form-control h-auto form-control-lg"
  901. placeholder="<?php echo e(translate('Password')); ?>">
  902. </div>
  903. <div class="row mb-2">
  904. <div class="col-6">
  905. <label class="aiz-checkbox">
  906. <input type="checkbox" name="remember" <?php echo e(old('remember') ? 'checked' : ''); ?>>
  907. <span class=opacity-60><?php echo e(translate('Remember Me')); ?></span>
  908. <span class="aiz-square-check"></span>
  909. </label>
  910. </div>
  911. <div class="col-6 text-right">
  912. <a href="<?php echo e(route('password.request')); ?>"
  913. class="text-reset opacity-60 fs-14"><?php echo e(translate('Forgot password?')); ?></a>
  914. </div>
  915. </div>
  916. <div class="mb-5">
  917. <button type="submit"
  918. class="btn btn-primary btn-block fw-600"><?php echo e(translate('Login')); ?></button>
  919. </div>
  920. </form>
  921. <div class="text-center mb-3">
  922. <p class="text-muted mb-0"><?php echo e(translate('Dont have an account?')); ?></p>
  923. <a href="<?php echo e(route('user.registration')); ?>"><?php echo e(translate('Register Now')); ?></a>
  924. </div>
  925. <?php if(get_setting('google_login') == 1 || get_setting('facebook_login') == 1 || get_setting('twitter_login') == 1): ?>
  926. <div class="separator mb-3">
  927. <span class="bg-white px-3 opacity-60"><?php echo e(translate('Or Login With')); ?></span>
  928. </div>
  929. <ul class="list-inline social colored text-center mb-5">
  930. <?php if(get_setting('facebook_login') == 1): ?>
  931. <li class="list-inline-item">
  932. <a href="<?php echo e(route('social.login', ['provider' => 'facebook'])); ?>"
  933. class="facebook">
  934. <i class="lab la-facebook-f"></i>
  935. </a>
  936. </li>
  937. <?php endif; ?>
  938. <?php if(get_setting('google_login') == 1): ?>
  939. <li class="list-inline-item">
  940. <a href="<?php echo e(route('social.login', ['provider' => 'google'])); ?>"
  941. class="google">
  942. <i class="lab la-google"></i>
  943. </a>
  944. </li>
  945. <?php endif; ?>
  946. <?php if(get_setting('twitter_login') == 1): ?>
  947. <li class="list-inline-item">
  948. <a href="<?php echo e(route('social.login', ['provider' => 'twitter'])); ?>"
  949. class="twitter">
  950. <i class="lab la-twitter"></i>
  951. </a>
  952. </li>
  953. <?php endif; ?>
  954. </ul>
  955. <?php endif; ?>
  956. </div>
  957. </div>
  958. </div>
  959. </div>
  960. </div>
  961. <?php $__env->stopSection(); ?>
  962. <?php $__env->startSection('script'); ?>
  963. <script type="text/javascript">
  964. $(document).ready(function() {
  965. getVariantPrice();
  966. <?php if($detailedProduct->source=="alibaba"): ?>
  967. imgReplace();
  968. <?php endif; ?>
  969. });
  970. function imgReplace(){
  971. $("#tab_default_1 img").each(function(index,element){
  972. var src = $(element).attr('data-src')
  973. if(src != undefined){
  974. $(element).attr('src', src)
  975. }
  976. })
  977. }
  978. function CopyToClipboard(e) {
  979. var url = $(e).data('url');
  980. var $temp = $("<input>");
  981. $("body").append($temp);
  982. $temp.val(url).select();
  983. try {
  984. document.execCommand("copy");
  985. AIZ.plugins.notify('success', '<?php echo e(translate('Link copied to clipboard')); ?>');
  986. } catch (err) {
  987. AIZ.plugins.notify('danger', '<?php echo e(translate('Oops, unable to copy')); ?>');
  988. }
  989. $temp.remove();
  990. // if (document.selection) {
  991. // var range = document.body.createTextRange();
  992. // range.moveToElementText(document.getElementById(containerid));
  993. // range.select().createTextRange();
  994. // document.execCommand("Copy");
  995. // } else if (window.getSelection) {
  996. // var range = document.createRange();
  997. // document.getElementById(containerid).style.display = "block";
  998. // range.selectNode(document.getElementById(containerid));
  999. // window.getSelection().addRange(range);
  1000. // document.execCommand("Copy");
  1001. // document.getElementById(containerid).style.display = "none";
  1002. // }
  1003. // AIZ.plugins.notify('success', 'Copied');
  1004. }
  1005. function show_chat_modal() {
  1006. <?php if(Auth::check()): ?>
  1007. $('#chat_modal').modal('show');
  1008. <?php else: ?>
  1009. $('#login_modal').modal('show');
  1010. <?php endif; ?>
  1011. }
  1012. // Pagination using ajax
  1013. $(window).on('hashchange', function() {
  1014. if (window.location.hash) {
  1015. var page = window.location.hash.replace('#', '');
  1016. if (page == Number.NaN || page <= 0) {
  1017. return false;
  1018. } else {
  1019. getQuestions(page);
  1020. }
  1021. }
  1022. });
  1023. $(document).ready(function() {
  1024. $(document).on('click', '.pagination a', function(e) {
  1025. getQuestions($(this).attr('href').split('page=')[1]);
  1026. e.preventDefault();
  1027. });
  1028. });
  1029. function getQuestions(page) {
  1030. $.ajax({
  1031. url: '?page=' + page,
  1032. dataType: 'json',
  1033. }).done(function(data) {
  1034. $('.pagination-area').html(data);
  1035. location.hash = page;
  1036. }).fail(function() {
  1037. alert('Something went worng! Questions could not be loaded.');
  1038. });
  1039. }
  1040. // Pagination end
  1041. </script>
  1042. <?php $__env->stopSection(); ?>
  1043. <?php echo $__env->make('frontend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/shaoguo/Desktop/公司资料/小梦/商城/ebayShop/resources/views/frontend/product_details.blade.php ENDPATH**/ ?>