item-details.blade.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. @extends('views.layouts.master')
  2. <link rel="stylesheet" href="{{ csset('/themes/pro/modunawa/resources/css/product-details.css') }}">
  3. @section('content')
  4. @php
  5. $itemThmMedia[0] = array_merge($listType1Book['Book'][1]['Page'][0] ?? [], [ 'MediaId' => $itemDetails['C1'] ]);
  6. $preItem = $listType1Book['Book'][3]['Page'];
  7. $nextItem = $listType1Book['Book'][4]['Page'];
  8. $refund = $listType1Book['Book'][6]['Page'][0];
  9. @endphp
  10. @push('meta')
  11. <x-seo-meta-component :metas="$itemDetails['C10']" />
  12. @endpush
  13. <!--=====================================
  14. BANNER PART START
  15. =======================================-->
  16. <section class="single-banner inner-section">
  17. <div class="container">
  18. <h2>{{ $itemDetails['C3'] }}</h2>
  19. <ol class="breadcrumb">
  20. <li class="breadcrumb-item"><a href="/">Home</a></li>
  21. <li class="breadcrumb-item active" aria-current="page">{{ $itemDetails['C3'] }}</li>
  22. </ol>
  23. </div>
  24. </section>
  25. <!--=====================================
  26. BANNER PART END
  27. =======================================-->
  28. <!--=====================================
  29. PRODUCT DETAILS PART START
  30. =======================================-->
  31. <section class="inner-section shop detail">
  32. <div class="container">
  33. <div class="row">
  34. <div class="col-lg-6">
  35. <div class="details-gallery">
  36. <div class="details-label-group">
  37. <label class="details-label new">new</label>
  38. <!--<label class="details-label off">-10%</label>-->
  39. </div>
  40. <ul class="details-preview">
  41. @forelse ($itemThmMedia ?? [] as $itemThm)
  42. @foreach(['MediaId', 'C1', 'C2', 'C3', 'C4', 'C5'] as $key)
  43. @if(isset($itemThm[$key]) && $itemThm[$key] !== '')
  44. <li><img src="{{ env('MEDIA_URL') . $itemThm[$key] }}" alt="product"></li>
  45. @endif
  46. @endforeach
  47. @empty
  48. @endforelse
  49. </ul>
  50. <ul class="details-thumb">
  51. @forelse ($itemThmMedia ?? [] as $itemThm)
  52. @foreach(['MediaId', 'C1', 'C2', 'C3', 'C4', 'C5'] as $key)
  53. @if(isset($itemThm[$key]) && $itemThm[$key] !== '')
  54. <li><img src="{{ env('MEDIA_URL') . $itemThm[$key] }}" alt="product"></li>
  55. @endif
  56. @endforeach
  57. @empty
  58. @endforelse
  59. </ul>
  60. </div>
  61. </div>
  62. <div class="col-lg-6">
  63. <ul class="product-navigation">
  64. <li class="product-nav-prev">
  65. @if ($preItem)
  66. <a href="{{ route('item-details', $preItem[0]['C7'] ?: $preItem[0]['Id']) }}">
  67. <i class="icofont-arrow-left"></i> prev product <span class="product-nav-popup">
  68. <img src="{{ env('MEDIA_URL') . $preItem[0]['C1'] }}" alt="product">
  69. <small>{{ $preItem[0]['C5'] }}</small> </span>
  70. </a>
  71. @endif
  72. </li>
  73. <li class="product-nav-next">
  74. @if ($nextItem)
  75. <a href="{{ route('item-details', $nextItem[0]['C7'] ?: $nextItem[0]['Id']) }}"> next product <i class="icofont-arrow-right"></i> <span class="product-nav-popup">
  76. <img src="{{ env('MEDIA_URL') . $nextItem[0]['C1'] }}" alt="product">
  77. <small>{{ $nextItem[0]['C5'] }}</small> </span>
  78. </a>
  79. @endif
  80. </li>
  81. </ul>
  82. <div class="details-content">
  83. <h3 class="details-name"><a href="#">{{ $itemDetails['C5'] }}</a></h3>
  84. <div class="details-meta">
  85. <p>SKU:<span>{{ $itemDetails['C4'] }}</span></p>
  86. <p>BRAND:<a href="#">{{ $itemDetails['C6'] }}</a></p>
  87. </div>
  88. <h3 class="details-price">
  89. <span>{{ number_format($itemDetails['C7']) }} 원</span> </h3>
  90. <div class="cre_box">
  91. <table>
  92. <tr>
  93. <th>결제계획</th>
  94. <th>사용가능 P2UP</th>
  95. <th>잔액결제</th>
  96. <th>단위</th>
  97. </tr>
  98. @if($shopPayMethodSetup['IsCrypto1'])
  99. <tr>
  100. <td class="td_head">A Type</td>
  101. <td>{{ number_format($pointPayrate['crypto1']['p2up']) }}({{ $pointPayrate['crypto1']['p2up_percent'] }}%)</td>
  102. <td>{{ number_format($pointPayrate['crypto1']['msqxp']) }}</td>
  103. <td>MSQXP</td>
  104. </tr>
  105. @endif
  106. @if($shopPayMethodSetup['IsCrypto2'])
  107. <tr>
  108. <td class="td_head">B Type</td>
  109. <td>{{ number_format($pointPayrate['crypto2']['p2up']) }}({{ $pointPayrate['crypto2']['p2up_percent'] }}%)</td>
  110. <td>{{ number_format($pointPayrate['crypto2']['cash']) }}</td>
  111. <td>원</td>
  112. </tr>
  113. @endif
  114. </table>
  115. </div>
  116. <form class="details-action-group form-prevent-multiple-submits mb-3" id="wish-list-form" action="{{ route('wish-list.favorite') }}" method="POST">
  117. @csrf
  118. <input type="hidden" name="item_id" value="{{ $itemDetails['Id'] }}">
  119. @if (empty($itemDetails['BdPage']))
  120. <button type="submit" class="button-prevent-multiple-submits details-wish wish w-100">
  121. <i class="far fa-heart mr-2"></i>
  122. 찜하기
  123. </button>
  124. @else
  125. <button type="submit" class="button-prevent-multiple-submits details-wish wish w-100">
  126. <input type="hidden" name="_method" value="delete" />
  127. <i class="fas fa-heart mr-2"></i>
  128. 찜삭제
  129. </button>
  130. @endif
  131. </form>
  132. {{-- <p class="details-desc mb-3">{{ $itemDetails['C6'] }}</p>--}}
  133. <form class="btn_group form-prevent-multiple-submits" id="cart-form" action="{{ route('cart.store') }}" method="POST">
  134. @csrf
  135. <input type="hidden" name="item_id" value="{{ $itemDetails['Id'] }}">
  136. {{-- <div class="details-action-group">--}}
  137. {{-- <a class="details-wish wish" href="/wish-list" title="Add Your Wishlist">--}}
  138. {{-- <i class="icofont-heart"></i> <span>찜하기</span>--}}
  139. {{-- </a>--}}
  140. {{-- </div>--}}
  141. <div class="product-action">
  142. <button type="button" class="action-minus" title="Quantity Minus"><i class="icofont-minus"></i></button>
  143. <input class="action-input" id="item-qty-txt" title="Quantity Number" type="text" name="cart_qty" value="1">
  144. <button type="button" class="action-plus" title="Quantity Plus"><i class="icofont-plus"></i></button>
  145. </div>
  146. <div class="details-add-group">
  147. <button type="submit" class="product-add button-prevent-multiple-submits" title="Add to Cart"> <i class="fas fa-shopping-basket"></i>
  148. <span>
  149. 장바구니 담기
  150. </span>
  151. </button>
  152. </div>
  153. <button type="button" onclick="click_buy_btn(this)" class="details-buy buy button-prevent-multiple-submits" title="구매하기"> <i class="fas fa-check"></i>
  154. <span>구매하기</span>
  155. </button>
  156. </form>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. </section>
  162. <!--=====================================
  163. PRODUCT DETAILS PART END
  164. =======================================-->
  165. <!--=====================================
  166. PRODUCT TAB PART START
  167. =======================================-->
  168. <section class="item_detail inner-section">
  169. <div class="container">
  170. <div class="row">
  171. <div class="col-lg-12">
  172. <ul class="nav nav-tabs">
  173. <li><a href="#tab-desc" class="tab-link active" data-bs-toggle="tab">상품상세</a></li>
  174. <li><a href="#tab-refund" class="tab-link" data-bs-toggle="tab">배송/교환/반품 안내</a></li>
  175. {{-- <li><a href="#tab-spec" class="tab-link" data-bs-toggle="tab">Specifications</a></li>--}}
  176. {{-- <li><a href="#tab-reve" class="tab-link" data-bs-toggle="tab">reviews (2)</a></li>--}}
  177. </ul>
  178. </div>
  179. </div>
  180. <div class="tab-pane fade show active" id="tab-desc">
  181. <div class="row">
  182. <div class="col-lg-12">
  183. <div class="product-details-frame">
  184. <div class="tab-descrip">
  185. {!! $itemDetails['C8'] !!}
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. <div class="tab-pane fade" id="tab-refund">
  192. <div class="row">
  193. <div class="col-lg-12">
  194. <div class="product-details-frame">
  195. {!! $refund['C2'] ?? '' !!}
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <div class="tab-pane fade" id="tab-spec">
  201. <div class="row">
  202. <div class="col-lg-12">
  203. <div class="product-details-frame">
  204. <table class="table table-bordered">
  205. <tbody>
  206. <tr>
  207. <th scope="row">Product code</th>
  208. <td>SKU: 101783</td>
  209. </tr>
  210. <tr>
  211. <th scope="row">Weight</th>
  212. <td>1kg, 2kg</td>
  213. </tr>
  214. <tr>
  215. <th scope="row">Styles</th>
  216. <td>@Girly</td>
  217. </tr>
  218. <tr>
  219. <th scope="row">Properties</th>
  220. <td>Short Dress</td>
  221. </tr>
  222. </tbody>
  223. </table>
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. <div class="tab-pane fade" id="tab-reve">
  229. <div class="row">
  230. <div class="col-lg-12">
  231. <div class="product-details-frame">
  232. <ul class="review-list">
  233. <li class="review-item">
  234. <div class="review-media"> <a class="review-avatar" href="#"> <img src="{{ '/themes/pro/modunawa/resources/images/avatar/01.jpg'}}" alt="review"> </a>
  235. <h5 class="review-meta"> <a href="#">miron mahmud</a> <span>June 02, 2020</span> </h5>
  236. </div>
  237. <ul class="review-rating">
  238. <li class="icofont-ui-rating"></li>
  239. <li class="icofont-ui-rating"></li>
  240. <li class="icofont-ui-rating"></li>
  241. <li class="icofont-ui-rating"></li>
  242. <li class="icofont-ui-rate-blank"></li>
  243. </ul>
  244. <p class="review-desc">Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus hic amet qui velit, molestiae suscipit perferendis, autem doloremque blanditiis dolores nulla excepturi ea nobis!</p>
  245. <form class="review-reply">
  246. <input type="text" placeholder="reply your thoughts">
  247. <button type="button"><i class="icofont-reply"></i>reply</button>
  248. </form>
  249. <ul class="review-reply-list">
  250. <li class="review-reply-item">
  251. <div class="review-media"> <a class="review-avatar" href="#"> <img src="{{ '/themes/pro/modunawa/resources/images/avatar/02.jpg'}}" alt="review"> </a>
  252. <h5 class="review-meta"> <a href="#">labonno khan</a> <span><b>author -</b> June 02, 2020</span> </h5>
  253. </div>
  254. <p class="review-desc">Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus hic amet qui velit, molestiae suscipit perferendis, autem doloremque blanditiis dolores nulla excepturi ea nobis!</p>
  255. <form class="review-reply">
  256. <input type="text" placeholder="reply your thoughts">
  257. <button type="button"><i class="icofont-reply"></i>reply</button>
  258. </form>
  259. </li>
  260. <li class="review-reply-item">
  261. <div class="review-media"> <a class="review-avatar" href="#"> <img src="{{ '/themes/pro/modunawa/resources/images/avatar/03.jpg'}}" alt="review"> </a>
  262. <h5 class="review-meta"> <a href="#">tahmina bonny</a> <span>June 02, 2020</span> </h5>
  263. </div>
  264. <p class="review-desc">Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus hic amet qui velit, molestiae suscipit perferendis, autem doloremque blanditiis dolores nulla excepturi ea nobis!</p>
  265. <form class="review-reply">
  266. <input type="text" placeholder="reply your thoughts">
  267. <button type="button"><i class="icofont-reply"></i>reply</button>
  268. </form>
  269. </li>
  270. </ul>
  271. </li>
  272. <li class="review-item">
  273. <div class="review-media"> <a class="review-avatar" href="#"> <img src="{{ '/themes/pro/modunawa/resources/images/avatar/04.jpg'}}" alt="review"> </a>
  274. <h5 class="review-meta"> <a href="#">shipu shikdar</a> <span>June 02, 2020</span> </h5>
  275. </div>
  276. <ul class="review-rating">
  277. <li class="icofont-ui-rating"></li>
  278. <li class="icofont-ui-rating"></li>
  279. <li class="icofont-ui-rating"></li>
  280. <li class="icofont-ui-rating"></li>
  281. <li class="icofont-ui-rate-blank"></li>
  282. </ul>
  283. <p class="review-desc">Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus hic amet qui velit, molestiae suscipit perferendis, autem doloremque blanditiis dolores nulla excepturi ea nobis!</p>
  284. <form class="review-reply">
  285. <input type="text" placeholder="reply your thoughts">
  286. <button type="button"><i class="icofont-reply"></i>reply</button>
  287. </form>
  288. </li>
  289. </ul>
  290. </div>
  291. <div class="product-details-frame">
  292. <h3 class="frame-title">add your review</h3>
  293. <form class="review-form">
  294. <div class="row">
  295. <div class="col-lg-12">
  296. <div class="star-rating">
  297. <input type="radio" name="rating" id="star-1">
  298. <label for="star-1"></label>
  299. <input type="radio" name="rating" id="star-2">
  300. <label for="star-2"></label>
  301. <input type="radio" name="rating" id="star-3">
  302. <label for="star-3"></label>
  303. <input type="radio" name="rating" id="star-4">
  304. <label for="star-4"></label>
  305. <input type="radio" name="rating" id="star-5">
  306. <label for="star-5"></label>
  307. </div>
  308. </div>
  309. <div class="col-lg-12">
  310. <div class="form-group">
  311. <textarea class="form-control" placeholder="Describe"></textarea>
  312. </div>
  313. </div>
  314. <div class="col-lg-6">
  315. <div class="form-group">
  316. <input type="text" class="form-control" placeholder="Name">
  317. </div>
  318. </div>
  319. <div class="col-lg-6">
  320. <div class="form-group">
  321. <input type="email" class="form-control" placeholder="Email">
  322. </div>
  323. </div>
  324. <div class="col-lg-12">
  325. <button type="button" class="btn btn-inline"> <i class="icofont-water-drop"></i> <span>drop your review</span> </button>
  326. </div>
  327. </div>
  328. </form>
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. </section>
  335. <!--=====================================
  336. PRODUCT TAB PART END
  337. =======================================-->
  338. <!--=====================================
  339. PRODUCT RELATED PART START
  340. =======================================-->
  341. <section class="detail_rel inner-section">
  342. <div class="container">
  343. <div class="row">
  344. <div class="col">
  345. <div class="section-heading">
  346. <h2>연관상품</h2>
  347. </div>
  348. </div>
  349. </div>
  350. <div class="row row-cols-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-5">
  351. @forelse ($relatedItemGallery ?? [] as $item)
  352. <div class="col">
  353. <form class="product-card" action="{{ route('wish-list.favorite') }}" method="POST">
  354. @csrf
  355. <input type="hidden" name="item_id" value="{{ $item['Id'] }}">
  356. <div class="product-media">
  357. <div class="product-label">
  358. {{-- <label class="label-text sale">sale</label>--}}
  359. <label class="label-text new">new</label>
  360. </div>
  361. @if (empty($item['BdPage']))
  362. <button type="submit" class="product-wish wish">
  363. <i class="far fa-heart"></i>
  364. </button>
  365. @else
  366. <button type="submit" class="product-wish wish">
  367. <input type="hidden" name="_method" value="delete" />
  368. <i class="fas fa-heart"></i>
  369. </button>
  370. @endif
  371. <a class="product-image" href="{{ route('item-details', $item['C9'] ?: $item['Id']) }}"> <img src="{{ env('MEDIA_URL') . $item['C1'] }}" alt="product" onerror="this.src='/images/folder.jpg'"> </a>
  372. </div>
  373. <div class="product-content">
  374. <h6 class="product-name"> <a href="{{ route('item-details', $item['C9'] ?: $item['Id']) }}">{{ $item['C5'] }}</a> </h6>
  375. <h6 class="product-price">
  376. <span>{{ number_format($item['C7']) }} 원</span> </h6>
  377. {{-- <button class="product-add" title="Add to Cart"> <i class="fas fa-shopping-basket"></i> <span>장바구니 담기</span> </button>--}}
  378. </div>
  379. </form>
  380. </div>
  381. @empty
  382. @endforelse
  383. {{-- <div class="col">--}}
  384. {{-- <div class="product-card product-disable">--}}
  385. {{-- <div class="product-media">--}}
  386. {{-- <div class="product-label">--}}
  387. {{-- <label class="label-text sale">sale</label>--}}
  388. {{-- </div>--}}
  389. {{-- <button class="product-wish wish"> <i class="far fa-heart"></i> </button>--}}
  390. {{-- <a class="product-image" href="item-detail.html"> <img src="{{ '/themes/pro/modunawa/resources/images/product/pic8.jpg'}}" alt="product"> </a>--}}
  391. {{-- </div>--}}
  392. {{-- <div class="product-content">--}}
  393. {{-- <h6 class="product-name"> <a href="item-detail.html">fresh green chilis</a> </h6>--}}
  394. {{-- <h6 class="product-price">--}}
  395. {{-- <span>000,000,000 원</span> </h6>--}}
  396. {{-- <button class="product-add" title="Add to Cart"> <i class="fas fa-shopping-basket"></i> <span>장바구니 담기</span> </button>--}}
  397. {{-- <div class="product-action">--}}
  398. {{-- <button class="action-minus" title="Quantity Minus"><i class="icofont-minus"></i></button>--}}
  399. {{-- <input class="action-input" title="Quantity Number" type="text" name="quantity" value="1">--}}
  400. {{-- <button class="action-plus" title="Quantity Plus"><i class="icofont-plus"></i></button>--}}
  401. {{-- </div>--}}
  402. {{-- </div>--}}
  403. {{-- </div>--}}
  404. {{-- </div>--}}
  405. </div>
  406. {{-- <div class="row">--}}
  407. {{-- <div class="col-lg-12">--}}
  408. {{-- <div class="section-btn-25"> <a href="http://point2u.daboryhost.com/item-gallery" class="btn_more btn btn-outline"> <span>더보기 <img src="{{ '/themes/pro/modunawa/resources/images/home/icn_arrow.png'}}"></span> </a> </div>--}}
  409. {{-- </div>--}}
  410. {{-- </div>--}}
  411. </div>
  412. </section>
  413. <!--=====================================
  414. PRODUCT RELATED PART END
  415. =======================================-->
  416. @endsection
  417. @push('js')
  418. <script>
  419. $(document).ready(function() {
  420. gtag("event", "view_item", {
  421. "items": [{
  422. "item_id": "9bdd2",
  423. "item_name": "Compton T-Shirt",
  424. "price": "44.00",
  425. "item_brand": "Compton",
  426. "item_category": "T-Shirts",
  427. "index": 0
  428. }],
  429. "currency": "USD"
  430. });
  431. });
  432. $('#cart-form').on('submit', function (event) {
  433. event.preventDefault()
  434. gtag("event", "add_to_cart", {
  435. "currency": "USD",
  436. "value": 25000,
  437. "items": [{
  438. "item_id": "9bdd2",
  439. "item_name": "Compton T-Shirt",
  440. "price": "25000.00",
  441. "quantity": 1,
  442. "item_brand": "Compton",
  443. "item_category": "T-Shirts",
  444. "item_variant": "red",
  445. "index": 0,
  446. "size": "M"
  447. }]
  448. });
  449. this.submit()
  450. });
  451. $('#wish-list-form').on('submit', function (event) {
  452. event.preventDefault()
  453. $(this).append($('<input>', { 'type': 'hidden', 'name': 'wish_qty', 'value': $('#cart-form').find('#item-qty-txt').val() }))
  454. this.submit()
  455. });
  456. function click_buy_btn($this) {
  457. const $form = $this.closest('form')
  458. $($form).find('.button-prevent-multiple-submits').attr('disabled', true)
  459. $($form).append($('<input>', { 'type': 'hidden', 'name': 'purchase', 'value': true }))
  460. $form.submit()
  461. }
  462. </script>
  463. @endpush