checkout.blade.php--지갑10-25 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. @extends('views.layouts.master')
  2. <link rel="stylesheet" href="/themes/pro/modunawa/resources/css/checkout.css">
  3. @section('content')
  4. <!--=====================================
  5. BANNER PART START
  6. =======================================-->
  7. <section class="inner-section single-banner" style="background: url(images/single-banner.jpg) no-repeat center;">
  8. <div class="container">
  9. <h2>결제하기</h2>
  10. <ol class="breadcrumb">
  11. <li class="breadcrumb-item"><a href="/">Home</a></li>
  12. <!--<li class="breadcrumb-item"><a href="shop-4column.html">shop grid</a></li>-->
  13. <li class="breadcrumb-item active" aria-current="page">결제하기</li>
  14. </ol>
  15. </div>
  16. </section>
  17. <!--=====================================
  18. BANNER PART END
  19. =======================================-->
  20. <!--=====================================
  21. CHECKOUT PART START
  22. =======================================-->
  23. <section class="inner-section checkout-part">
  24. <div class="container">
  25. <div class="row">
  26. <!--
  27. <div class="col-lg-12">
  28. <div class="alert-info">
  29. <p>Returning customer? <a href="login.html">Click here to login</a></p>
  30. </div>
  31. </div>
  32. -->
  33. <div class="col-lg-12 order">
  34. <div class="account-card">
  35. <div class="account-title">
  36. <h4>Your order</h4>
  37. </div>
  38. <div class="account-content">
  39. <div class="table-scroll">
  40. <table class="table-list">
  41. <thead>
  42. <tr>
  43. <th scope="col">Serial</th>
  44. <th scope="col">Product</th>
  45. <th scope="col">Name</th>
  46. <th scope="col">Price</th>
  47. <th scope="col">brand</th>
  48. <th scope="col">quantity</th>
  49. <th scope="col">action</th>
  50. </tr>
  51. </thead>
  52. <tbody>
  53. @forelse ($listType1Book['Book'][2]['Page'] ?? [] as $index => $cart)
  54. <tr>
  55. <td class="table-serial"><h6>{{ $cart['C1'] }}</h6></td>
  56. <td class="table-image"><img src="{{ env('MEDIA_URL') . $cart['C2'] }}" alt="product"></td>
  57. <td class="table-name"><h6>{{ $cart['C4'] }}</h6></td>
  58. <td class="table-price"><h6>{{ number_format($cart['C6']) }} 원<!--<small>/kilo</small>--></h6></td>
  59. <td class="table-brand"><h6>{{ $cart['C5'] }}</h6></td>
  60. <td class="table-quantity">
  61. <h6>
  62. <div class="product-action">
  63. <button type="button" class="action-minus" title="Quantity Minus"><i class="icofont-minus"></i></button>
  64. <input class="action-input" title="Quantity Number" onchange="cart_qty_update(this, {{ $cart['Id'] }})"
  65. type="text" name="quantity" min="1" value="{{ (int)$cart['C7'] }}">
  66. <button type="button" class="action-plus" title="Quantity Plus"><i class="icofont-plus"></i></button>
  67. </div>
  68. </h6>
  69. </td>
  70. <td class="table-action">
  71. {{-- <a class="view" href="#" title="Quick View" data-bs-toggle="modal" data-bs-target="#product-view"><i class="fas fa-eye"></i></a>--}}
  72. <button class="trash" onclick="cart_delete({{ $cart['Id'] }})" title="Remove Wishlist">
  73. <i class="icofont-trash"></i>
  74. </button>
  75. </td>
  76. </tr>
  77. @empty
  78. <tr>
  79. <td class="text-center" colspan="7">쇼핑카트가 비어있습니다</td>
  80. </tr>
  81. @endforelse
  82. </tbody>
  83. </table>
  84. </div>
  85. <div class="chekout-coupon">
  86. <button class="coupon-btn">쿠폰 코드가 있습니까?</button>
  87. <form class="coupon-form">
  88. <input type="text" placeholder="Enter your coupon code">
  89. <button type="submit"><span>확인</span></button>
  90. </form>
  91. </div>
  92. <div class="checkout-charge">
  93. <ul>
  94. <li>
  95. <span>Sub total</span>
  96. <span>{{ number_format($checkoutCharge['sub_total']) }} 원</span>
  97. </li>
  98. <li>
  99. <span>배송료</span>
  100. <span>{{ number_format($checkoutCharge['charge_amt']) }} 원</span>
  101. </li>
  102. <li>
  103. <span>할인</span>
  104. <span>0 원</span>
  105. </li>
  106. <li>
  107. <span>Total<small>(VAT 포함)</small></span>
  108. <span>{{ number_format($checkoutCharge['total']) }} 원</span>
  109. </li>
  110. </ul>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="col-lg-12">
  116. <div class="account-card">
  117. <div class="account-title">
  118. <h4>배송일정</h4>
  119. </div>
  120. <div class="account-content">
  121. <div class="row">
  122. <div class="col-md-6 col-lg-4 alert fade show">
  123. <div class="profile-card schedule active">
  124. <h6>express</h6>
  125. <p>90 min express delivery</p>
  126. </div>
  127. </div>
  128. <div class="col-md-6 col-lg-4 alert fade show">
  129. <div class="profile-card schedule">
  130. <h6>8am-10pm</h6>
  131. <p>8.00 AM - 10.00 PM</p>
  132. </div>
  133. </div>
  134. <div class="col-md-6 col-lg-4 alert fade show">
  135. <div class="profile-card schedule">
  136. <h6>Next day</h6>
  137. <p>Next day or Tomorrow</p>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. <div class="col-lg-12">
  145. <div class="account-card">
  146. <div class="account-title">
  147. <h4>연락처</h4>
  148. <button class="medium-btn" data-attr="{{ route('contact.index', [ 'seq_no' => $listType1Book['Book'][0]['Page'] ? (int)$listType1Book['Book'][0]['Page'][count($listType1Book['Book'][0]['Page']) - 1]['C1'] + 1 : 0 ]) }}">
  149. 연락처 추가
  150. </button>
  151. </div>
  152. <div class="account-content">
  153. <div class="row">
  154. @forelse ($listType1Book['Book'][0]['Page'] ?? [] as $contact)
  155. <div class="col-md-6 col-lg-4 alert fade show">
  156. <div class="profile-card contact">
  157. <h6>({{ DataConverter::execute($contact['C2'], "sort('company-contact-bd')") }}) {{ $contact['C3'] }}</h6>
  158. <p>{{ $contact['C4'] }}</p>
  159. <ul>
  160. <li><button class="edit icofont-edit medium-btn" title="Edit This" data-attr="{{ route('contact.show', $contact['Id']) }}"></button></li>
  161. <li><button class="trash icofont-ui-delete destroy-btn" title="Remove This" data-attr="{{ route('contact.destroy', $contact['Id']) }}"></button></li>
  162. </ul>
  163. </div>
  164. </div>
  165. @empty
  166. <div>
  167. 비어있습니다
  168. </div>
  169. @endforelse
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. <div class="col-lg-12">
  175. <div class="account-card">
  176. <div class="account-title">
  177. <h4>배송지</h4>
  178. <button class="medium-btn" data-attr="{{ route('address.index', [ 'seq_no' => $listType1Book['Book'][1]['Page'] ? (int)$listType1Book['Book'][1]['Page'][count($listType1Book['Book'][1]['Page']) - 1]['C1'] + 1 : 0 ]) }}">주소 추가</button>
  179. </div>
  180. <div class="account-content">
  181. <div class="row">
  182. @forelse ($listType1Book['Book'][1]['Page'] ?? [] as $index => $address)
  183. <div class="col-md-6 col-lg-4 alert fade show">
  184. <div class="profile-card address">
  185. <h6>{{ DataConverter::execute($address['C2'], "sort('company-destina-bd')") }}</h6>
  186. <p>({{ $address['C3'] }}) {{ $address['C4'] . $address['C5'] }}</p>
  187. <ul class="user-action">
  188. <li><button class="edit icofont-edit medium-btn" title="Edit This" data-attr="{{ route('address.show', $address['Id']) }}"></button></li>
  189. <li><button class="trash icofont-ui-delete destroy-btn" title="Remove This" data-attr="{{ route('address.destroy', $address['Id']) }}"></button></li>
  190. </ul>
  191. </div>
  192. </div>
  193. @empty
  194. <div>
  195. 비어있습니다
  196. </div>
  197. @endforelse
  198. </div>
  199. </div>
  200. </div>
  201. </div>
  202. <div class="col-lg-12">
  203. <div class="account-card page-pc">
  204. <div class="account-title">
  205. <h4>결제방법</h4>
  206. </div>
  207. <div class="account-content">
  208. <div class="d-flex align-items-center">
  209. @forelse ($codeTitle['paymethod']['sorder'] ?? [] as $key => $paymethod)
  210. @if ($paymethod['Code'] !== '')
  211. <div class="paymethod-div">
  212. <input type="radio" value="{{ $paymethod['Code'] }}" name="paymethod" id="paymethod-radio-{{ $key }}" {{ $key === 'RM' ? 'checked' : '' }}>
  213. <label for="paymethod-radio-{{ $key }}" class="form-label">{{ $paymethod['Title'] }}</label>
  214. </div>
  215. @endif
  216. @empty
  217. <div>
  218. 비어있습니다
  219. </div>
  220. @endforelse
  221. </div>
  222. <div class="virtual-account-payment pay-type-content">
  223. <p class="validate-message" style="display: none;"></p>
  224. <ul class="pay-type-sections">
  225. <li class="deposit-bank-wrap pay-type-section">
  226. <label for="depositBank" class="line-title">은행명</label>
  227. <div class="line-data">
  228. <select id="depositBank" class="" name="depositBank" onchange="change_remit_account(this)">
  229. <option value="" selected>선택</option>
  230. @forelse ($listType1Book['Book'][4]['Page'] ?? [] as $index => $setup)
  231. @php
  232. $remitAccountSetup = json_decode($setup['C1'], true);
  233. @endphp
  234. <option data-holder-name="{{ $remitAccountSetup['HolderName'] }}"
  235. value="{{ $remitAccountSetup['AccountNo'] }}">
  236. {{ $remitAccountSetup['BankName'] }}
  237. </option>
  238. @empty
  239. @endforelse
  240. </select>
  241. <p class="validate-message" style="display: none;">은행을 선택해 주세요</p>
  242. <p class="pay-box__deactivated-payment-notice" id="bank-name-txt"></p>
  243. </div>
  244. </li>
  245. <li class="payBox-section pay-type-section mt-2">
  246. <label class="line-title d-block">계좌번호</label>
  247. <input type="text" class="form-text" id="account-no-txt" disabled>
  248. </li>
  249. <li class="payBox-section pay-type-section mt-2">
  250. <label class="line-title d-block">예금주</label>
  251. <input type="text" class="form-text" id="holder-name-txt" disabled>
  252. </li>
  253. </ul>
  254. </div>
  255. <dl class="virtual-account-payment-explain mt-2">
  256. <dt class="mb-2">무통장입금 시 유의사항</dt>
  257. <dd>입금완료 후 상품품절로 인해 자동취소된 상품은 환불 처리해 드립니다.</dd>
  258. <dd>무통장입금 결제 시 부분취소가 불가하며 전체취소 후 다시 주문하시기 바랍니다.</dd>
  259. <dd>은행 이체 수수료가 발생될 수 있습니다. 입금시 수수료를 확인해주세요.</dd>
  260. </dl>
  261. </div>
  262. </div>
  263. </div>
  264. <div class="col-lg-12">
  265. <div class="account-card mb-0">
  266. <div class="account-title">
  267. <h4>결제수단</h4>
  268. <button data-bs-toggle="modal" data-bs-target="#payment-add">지갑 추가</button>
  269. </div>
  270. <div class="account-content">
  271. <div class="row">
  272. @forelse(session('wallet.main')['tokens'] ?? [] as $key => $token)
  273. <div class="col-md-6 col-lg-4 alert fade show">
  274. <div class="payment-card payment">
  275. <img src="{{ asset('/themes/pro/modunawa/resources/images/payment/png/' . strtolower($key) . '.png') }}" alt="payment">
  276. <h4>Current Balance</h4>
  277. <p>
  278. <span>{{ number_format($token) }}</span>
  279. <span>{{ $key }}</span>
  280. </p>
  281. <h5>{{ session('wallet.main')['walletAddress'] }}</h5>
  282. <button class="trash icofont-ui-delete" title="Remove This" data-bs-dismiss="alert"></button>
  283. </div>
  284. </div>
  285. @empty
  286. <div>
  287. 비어있습니다
  288. </div>
  289. @endforelse
  290. {{-- <div class="col-md-6 col-lg-4 alert fade show">--}}
  291. {{-- <div class="payment-card payment">--}}
  292. {{-- <img src="{{ '/themes/pro/modunawa/resources/images/payment/png/msqx.png' }}" alt="payment">--}}
  293. {{-- <h4>Current Balance</h4>--}}
  294. {{-- <p>--}}
  295. {{-- <span>35,672</span>--}}
  296. {{-- <span>MSQX</span>--}}
  297. {{-- </p>--}}
  298. {{-- <h5>0x4439e34ade78456793c743b98f3990bd295281f8</h5>--}}
  299. {{-- <button class="trash icofont-ui-delete" title="Remove This" data-bs-dismiss="alert"></button>--}}
  300. {{-- </div>--}}
  301. {{-- </div>--}}
  302. {{-- <div class="col-md-6 col-lg-4 alert fade show">--}}
  303. {{-- <div class="payment-card payment">--}}
  304. {{-- <img src="{{ '/themes/pro/modunawa/resources/images/payment/png/p2u.png' }}" alt="payment">--}}
  305. {{-- <h4>Current Balance</h4>--}}
  306. {{-- <p>--}}
  307. {{-- <span>35,672</span>--}}
  308. {{-- <span>P2U</span>--}}
  309. {{-- </p>--}}
  310. {{-- <h5>0x4439e34ade78456793c743b98f3990bd295281f8</h5>--}}
  311. {{-- <button class="trash icofont-ui-delete" title="Remove This" data-bs-dismiss="alert"></button>--}}
  312. {{-- </div>--}}
  313. {{-- </div>--}}
  314. </div>
  315. </div>
  316. {{-- <div class="account-content">--}}
  317. {{-- <div class="row">--}}
  318. {{-- <div class="col-md-6 col-lg-4 alert fade show">--}}
  319. {{-- <div class="payment-card payment">--}}
  320. {{-- <img src="{{ '/themes/pro/modunawa/resources/images/payment/png/01.png'}}" alt="payment">--}}
  321. {{-- <h4>카드번호</h4>--}}
  322. {{-- <p>--}}
  323. {{-- <span>****</span>--}}
  324. {{-- <span>****</span>--}}
  325. {{-- <span>****</span>--}}
  326. {{-- <sup>1876</sup>--}}
  327. {{-- </p>--}}
  328. {{-- <h5>miron mahmud</h5>--}}
  329. {{-- <button class="trash icofont-ui-delete" title="Remove This" data-bs-dismiss="alert"></button>--}}
  330. {{-- </div>--}}
  331. {{-- </div>--}}
  332. {{-- <div class="col-md-6 col-lg-4 alert fade show">--}}
  333. {{-- <div class="payment-card payment">--}}
  334. {{-- <img src="{{ '/themes/pro/modunawa/resources/images/payment/png/02.png'}}" alt="payment">--}}
  335. {{-- <h4>카드번호</h4>--}}
  336. {{-- <p>--}}
  337. {{-- <span>****</span>--}}
  338. {{-- <span>****</span>--}}
  339. {{-- <span>****</span>--}}
  340. {{-- <sup>1876</sup>--}}
  341. {{-- </p>--}}
  342. {{-- <h5>miron mahmud</h5>--}}
  343. {{-- <button class="trash icofont-ui-delete" title="Remove This" data-bs-dismiss="alert"></button>--}}
  344. {{-- </div>--}}
  345. {{-- </div>--}}
  346. {{-- <div class="col-md-6 col-lg-4 alert fade show">--}}
  347. {{-- <div class="payment-card payment">--}}
  348. {{-- <img src="{{ '/themes/pro/modunawa/resources/images/payment/png/03.png'}}" alt="payment">--}}
  349. {{-- <h4>카드번호</h4>--}}
  350. {{-- <p>--}}
  351. {{-- <span>****</span>--}}
  352. {{-- <span>****</span>--}}
  353. {{-- <span>****</span>--}}
  354. {{-- <sup>1876</sup>--}}
  355. {{-- </p>--}}
  356. {{-- <h5>miron mahmud</h5>--}}
  357. {{-- <button class="trash icofont-ui-delete" title="Remove This" data-bs-dismiss="alert"></button>--}}
  358. {{-- </div>--}}
  359. {{-- </div>--}}
  360. {{-- </div>--}}
  361. {{-- </div>--}}
  362. <div class="checkout-check">
  363. <input type="checkbox" id="checkout-check">
  364. <label for="checkout-check">약관동의 <a href="/policy-list">약관보기</a>.</label>
  365. </div>
  366. <div class="checkout-proced">
  367. <a href="/checkout-ok" class="btn btn-inline">결제하기</a>
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. </div>
  373. </section>
  374. <!--=====================================
  375. CHECKOUT PART END
  376. =======================================-->
  377. <!--=====================================
  378. MODAL ADD FORM START
  379. =======================================-->
  380. <!-- payment add form -->
  381. <div class="modal fade" id="payment-add">
  382. <div class="modal-dialog modal-dialog-centered">
  383. <div class="modal-content">
  384. <button class="modal-close" data-bs-dismiss="modal"><i class="icofont-close"></i></button>
  385. <form class="modal-form form-prevent-multiple-submits" action="{{ route('wallet.store') }}" method="POST">
  386. @csrf
  387. <div class="form-title">
  388. <h3>지갑 추가</h3>
  389. </div>
  390. <div class="form-group">
  391. <label class="form-label">토큰</label>
  392. <input class="form-control" name="token" type="text" placeholder="Enter your token number" required>
  393. </div>
  394. <button class="form-btn button-prevent-multiple-submits" type="submit">
  395. <i class="spinner fa fa-spinner fa-spin"></i>
  396. 저장
  397. </button>
  398. </form>
  399. </div>
  400. </div>
  401. </div>
  402. @endsection
  403. @push('modal')
  404. @include('views.modals.medium')
  405. @endpush
  406. @push('js')
  407. <script>
  408. function change_remit_account($this) {
  409. $('.pay-type-content #account-no-txt').val($($this).val())
  410. $('.pay-type-content #holder-name-txt').val($($this).find('option:selected').data('holder-name'))
  411. }
  412. </script>
  413. @endpush