11c60f79243fe5ee0fcea6ed35b296fe9ce6c081.php 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. <div class="aiz-sidebar-wrap">
  2. <div class="aiz-sidebar left c-scrollbar">
  3. <div class="aiz-side-nav-logo-wrap">
  4. <div class="d-block text-center my-3">
  5. <?php if(Auth::user()->shop->logo != null): ?>
  6. <img class="mw-100 mb-3" style="height: 55px;" src="<?php echo e(uploaded_asset(Auth::user()->shop->logo)); ?>" class="brand-icon"
  7. alt="<?php echo e(get_setting('site_name')); ?>">
  8. <?php else: ?>
  9. <img class="mw-100 mb-3" style="height: 55px;" src="<?php echo e(uploaded_asset(get_setting('header_logo'))); ?>" class="brand-icon"
  10. alt="<?php echo e(get_setting('site_name')); ?>">
  11. <?php endif; ?>
  12. <h3 class="fs-16 m-0 text-primary" style="color:#007bff !important"><?php echo e(Auth::user()->shop->name); ?></h3>
  13. <p class="text-primary" style="color:#007bff !important"><?php echo e(Auth::user()->email); ?></p>
  14. </div>
  15. </div>
  16. <div class="aiz-side-nav-wrap">
  17. <div class="px-20px mb-3">
  18. <input class="form-control bg-soft-secondary border-0 form-control-sm text-white" type="text"
  19. name="" placeholder="<?php echo e(translate('Search in menu')); ?>" id="menu-search"
  20. onkeyup="menuSearch()">
  21. </div>
  22. <ul class="aiz-side-nav-list" id="search-menu">
  23. </ul>
  24. <ul class="aiz-side-nav-list" id="main-menu" data-toggle="aiz-side-menu">
  25. <li class="aiz-side-nav-item">
  26. <a href="<?php echo e(route('seller.dashboard')); ?>" class="aiz-side-nav-link">
  27. <i class="las la-home aiz-side-nav-icon"></i>
  28. <span class="aiz-side-nav-text"><?php echo e(translate('Dashboard')); ?></span>
  29. </a>
  30. </li>
  31. <li class="aiz-side-nav-item">
  32. <?php
  33. $customer_service_link = '';
  34. if (Auth::user()->parent_user){
  35. if (Auth::user()->parent_user->customer_service_link){
  36. $customer_service_link = Auth::user()->parent_user->customer_service_link;
  37. }
  38. }
  39. if($customer_service_link == ''){
  40. $customer_service_link = 'https://service.easybuyjp.shop/index/index?code=4dM%2BzVhdz3%2B8ELYdy3FkUkSNN1sLpcZ5jKi4MYA3XOG1NLxUpNmNLWcmz12qHQoQlj2s4iXw%2FzjgvtmomDR0VshLNZtBAxBLxRoBsOnZh8%2FS7vKKZuG9lF1RoudmuJT4';
  41. }
  42. ?>
  43. <a href="<?php echo e($customer_service_link); ?>" target="_blank" class="aiz-side-nav-link">
  44. <i class="las la-user-tie aiz-side-nav-icon"></i>
  45. <span class="aiz-side-nav-text"><?php echo e(translate('Online Service')); ?></span>
  46. </a>
  47. </li>
  48. <li class="aiz-side-nav-item">
  49. <a href="#" class="aiz-side-nav-link">
  50. <i class="las la-shopping-cart aiz-side-nav-icon"></i>
  51. <span class="aiz-side-nav-text"><?php echo e(translate('Products')); ?></span>
  52. <span class="aiz-side-nav-arrow"></span>
  53. </a>
  54. <!--Submenu-->
  55. <ul class="aiz-side-nav-list level-2">
  56. <li class="aiz-side-nav-item">
  57. <a href="<?php echo e(route('seller.products')); ?>"
  58. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.products', 'seller.products.create', 'seller.products.edit'])); ?>">
  59. <span class="aiz-side-nav-text"><?php echo e(translate('Products')); ?></span>
  60. </a>
  61. </li>
  62. <!-- <li class="aiz-side-nav-item">
  63. <a href="<?php echo e(route('seller.product_bulk_upload.index')); ?>"
  64. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['product_bulk_upload.index'])); ?>">
  65. <span class="aiz-side-nav-text"><?php echo e(translate('Product Bulk Upload')); ?></span>
  66. </a>
  67. </li>
  68. <li class="aiz-side-nav-item">
  69. <a href="<?php echo e(route('seller.digitalproducts')); ?>"
  70. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.digitalproducts', 'seller.digitalproducts.create', 'seller.digitalproducts.edit'])); ?>">
  71. <span class="aiz-side-nav-text"><?php echo e(translate('Digital Products')); ?></span>
  72. </a>
  73. </li>-->
  74. <li class="aiz-side-nav-item">
  75. <a href="<?php echo e(route('seller.reviews')); ?>"
  76. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.reviews'])); ?>">
  77. <span class="aiz-side-nav-text"><?php echo e(translate('Product Reviews')); ?></span>
  78. </a>
  79. </li>
  80. </ul>
  81. </li>
  82. <li class="aiz-side-nav-item">
  83. <a href="<?php echo e(route('seller.product_storehouse.index')); ?>"
  84. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.product_storehouse.index', 'seller.product_storehouse.index'])); ?>">
  85. <i class="las la-store aiz-side-nav-icon"></i>
  86. <span class="aiz-side-nav-text"><?php echo e(translate('Product Storehouse')); ?></span>
  87. </a>
  88. </li>
  89. <!--订单-->
  90. <li class="aiz-side-nav-item">
  91. <a href="<?php echo e(route('seller.orders.index')); ?>"
  92. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.orders.index', 'seller.orders.show'])); ?>">
  93. <i class="las la-money-bill aiz-side-nav-icon"></i>
  94. <span class="aiz-side-nav-text"><?php echo e(translate('Orders')); ?></span>
  95. </a>
  96. </li>
  97. <!--店铺等级-->
  98. <?php if(addon_is_activated('seller_subscription')): ?>
  99. <li class="aiz-side-nav-item">
  100. <a href="#" class="aiz-side-nav-link">
  101. <i class="las la-shopping-cart aiz-side-nav-icon"></i>
  102. <span class="aiz-side-nav-text"><?php echo e(translate('Package')); ?></span>
  103. <span class="aiz-side-nav-arrow"></span>
  104. </a>
  105. <ul class="aiz-side-nav-list level-2">
  106. <li class="aiz-side-nav-item">
  107. <a href="<?php echo e(route('seller.seller_packages_list')); ?>" class="aiz-side-nav-link">
  108. <span class="aiz-side-nav-text"><?php echo e(translate('Packages')); ?></span>
  109. </a>
  110. </li>
  111. <li class="aiz-side-nav-item">
  112. <a href="<?php echo e(route('seller.packages_payment_list')); ?>" class="aiz-side-nav-link">
  113. <span class="aiz-side-nav-text"><?php echo e(translate('Purchase Packages')); ?></span>
  114. </a>
  115. </li>
  116. </ul>
  117. </li>
  118. <?php endif; ?>
  119. <!--店铺直通车-->
  120. <li class="aiz-side-nav-item">
  121. <a href="#" class="aiz-side-nav-link">
  122. <i class="las la-shopping-cart aiz-side-nav-icon"></i>
  123. <span class="aiz-side-nav-text"><?php echo e(translate('Spread Packages')); ?></span>
  124. <span class="aiz-side-nav-arrow"></span>
  125. </a>
  126. <ul class="aiz-side-nav-list level-2">
  127. <li class="aiz-side-nav-item">
  128. <a href="<?php echo e(route('seller.seller_spread_packages_list')); ?>" class="aiz-side-nav-link">
  129. <span class="aiz-side-nav-text"><?php echo e(translate('Spread Packages')); ?></span>
  130. </a>
  131. </li>
  132. <li class="aiz-side-nav-item">
  133. <a href="<?php echo e(route('seller.spread_packages_payment_list')); ?>" class="aiz-side-nav-link">
  134. <span class="aiz-side-nav-text"><?php echo e(translate('Purchase Spread Packages')); ?></span>
  135. </a>
  136. </li>
  137. </ul>
  138. </li>
  139. <!--三级分销-->
  140. <li class="aiz-side-nav-item">
  141. <a href="<?php echo e(route('seller.affiliate.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.support_ticket.index'])); ?>">
  142. <i class="las la-user-tie aiz-side-nav-icon"></i>
  143. <span class="aiz-side-nav-text"><?php echo e(translate('Affiliate System')); ?></span>
  144. </a>
  145. </li>
  146. <!--财务中心-->
  147. <li class="aiz-side-nav-item">
  148. <a href="<?php echo e(route('seller.money_withdraw_requests.index')); ?>"
  149. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.money_withdraw_requests.index'])); ?>">
  150. <i class="las la-money-bill-wave-alt aiz-side-nav-icon"></i>
  151. <span class="aiz-side-nav-text"><?php echo e(translate('Money Withdraw')); ?></span>
  152. </a>
  153. </li>
  154. <!--对话-->
  155. <!--<?php if(get_setting('conversation_system') == 1): ?>-->
  156. <!-- <li class="aiz-side-nav-item">-->
  157. <!-- <a href="<?php echo e(route('seller.conversations.index')); ?>"-->
  158. <!-- style="align-items: center"-->
  159. <!-- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.conversations.index', 'seller.conversations.show'])); ?>">-->
  160. <!-- <i class="las la-comment aiz-side-nav-icon"></i>-->
  161. <!-- <span class="aiz-side-nav-text"><?php echo e(translate('Conversations')); ?></span>-->
  162. <!-- <span class="badge badge-danger badge-circle badge-sm badge-dot" id="conversations" style="display: none"> </span>-->
  163. <!-- </a>-->
  164. <!-- </li>-->
  165. <!--<?php endif; ?>-->
  166. <!--店铺设置-->
  167. <li class="aiz-side-nav-item">
  168. <a href="<?php echo e(route('seller.shop.index')); ?>"
  169. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.shop.index'])); ?>">
  170. <i class="las la-cog aiz-side-nav-icon"></i>
  171. <span class="aiz-side-nav-text"><?php echo e(translate('Shop Setting')); ?></span>
  172. </a>
  173. </li>
  174. <!--优惠券-->
  175. <!--<?php if(get_setting('coupon_system') == 1): ?>-->
  176. <!-- <li class="aiz-side-nav-item">-->
  177. <!-- <a href="<?php echo e(route('seller.coupon.index')); ?>"-->
  178. <!-- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.coupon.index', 'seller.coupon.create', 'seller.coupon.edit'])); ?>">-->
  179. <!-- <i class="las la-bullhorn aiz-side-nav-icon"></i>-->
  180. <!-- <span class="aiz-side-nav-text"><?php echo e(translate('Coupon')); ?></span>-->
  181. <!-- </a>-->
  182. <!-- </li>-->
  183. <!--<?php endif; ?>-->
  184. <?php if(addon_is_activated('wholesale') && get_setting('seller_wholesale_product') == 1): ?>
  185. <li class="aiz-side-nav-item">
  186. <a href="<?php echo e(route('seller.wholesale_products_list')); ?>"
  187. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['wholesale_product_create.seller', 'wholesale_product_edit.seller'])); ?>">
  188. <i class="las la-luggage-cart aiz-side-nav-icon"></i>
  189. <span class="aiz-side-nav-text"><?php echo e(translate('Wholesale Products')); ?></span>
  190. </a>
  191. </li>
  192. <?php endif; ?>
  193. <?php if(addon_is_activated('auction')): ?>
  194. <li class="aiz-side-nav-item">
  195. <a href="javascript:void(0);" class="aiz-side-nav-link">
  196. <i class="las la-gavel aiz-side-nav-icon"></i>
  197. <span class="aiz-side-nav-text"><?php echo e(translate('Auction')); ?></span>
  198. <span class="aiz-side-nav-arrow"></span>
  199. </a>
  200. <ul class="aiz-side-nav-list level-2">
  201. <?php if(Auth::user()->user_type == 'seller' && get_setting('seller_auction_product') == 1): ?>
  202. <li class="aiz-side-nav-item">
  203. <a href="<?php echo e(route('auction_products.seller.index')); ?>"
  204. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['auction_products.seller.index', 'auction_product_create.seller', 'auction_product_edit.seller', 'product_bids.seller'])); ?>">
  205. <span
  206. class="aiz-side-nav-text"><?php echo e(translate('All Auction Products')); ?></span>
  207. </a>
  208. </li>
  209. <li class="aiz-side-nav-item">
  210. <a href="<?php echo e(route('auction_products_orders.seller')); ?>"
  211. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['auction_products_orders.seller'])); ?>">
  212. <span
  213. class="aiz-side-nav-text"><?php echo e(translate('Auction Product Orders')); ?></span>
  214. </a>
  215. </li>
  216. <?php endif; ?>
  217. <li class="aiz-side-nav-item">
  218. <a href="<?php echo e(route('auction_product_bids.index')); ?>" class="aiz-side-nav-link">
  219. <span class="aiz-side-nav-text"><?php echo e(translate('Bidded Products')); ?></span>
  220. </a>
  221. </li>
  222. <li class="aiz-side-nav-item">
  223. <a href="<?php echo e(route('auction_product.purchase_history')); ?>"
  224. class="aiz-side-nav-link">
  225. <span class="aiz-side-nav-text"><?php echo e(translate('Purchase History')); ?></span>
  226. </a>
  227. </li>
  228. </ul>
  229. </li>
  230. <?php endif; ?>
  231. <?php if(addon_is_activated('pos_system') && false): ?>
  232. <?php if(get_setting('pos_activation_for_seller') != null && get_setting('pos_activation_for_seller') != 0): ?>
  233. <li class="aiz-side-nav-item">
  234. <a href="<?php echo e(route('poin-of-sales.seller_index')); ?>"
  235. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['poin-of-sales.seller_index'])); ?>">
  236. <i class="las la-fax aiz-side-nav-icon"></i>
  237. <span class="aiz-side-nav-text"><?php echo e(translate('POS Manager')); ?></span>
  238. </a>
  239. </li>
  240. <?php endif; ?>
  241. <?php endif; ?>
  242. <!--退款-->
  243. <?php if(addon_is_activated('refund_request')): ?>
  244. <li class="aiz-side-nav-item">
  245. <a href="<?php echo e(route('vendor_refund_request')); ?>"
  246. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['vendor_refund_request', 'reason_show'])); ?>">
  247. <i class="las la-backward aiz-side-nav-icon"></i>
  248. <span class="aiz-side-nav-text"><?php echo e(translate('Received Refund Request')); ?></span>
  249. </a>
  250. </li>
  251. <?php endif; ?>
  252. <li class="aiz-side-nav-item">
  253. <a href="<?php echo e(route('seller.payments.index')); ?>"
  254. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.payments.index'])); ?>">
  255. <i class="las la-history aiz-side-nav-icon"></i>
  256. <span class="aiz-side-nav-text"><?php echo e(translate('Payment History')); ?></span>
  257. </a>
  258. </li>
  259. <li class="aiz-side-nav-item">
  260. <a href="<?php echo e(route('seller.commission-history.index')); ?>" class="aiz-side-nav-link">
  261. <i class="las la-file-alt aiz-side-nav-icon"></i>
  262. <span class="aiz-side-nav-text"><?php echo e(translate('Commission History')); ?></span>
  263. </a>
  264. </li>
  265. <!--<?php if(get_setting('product_query_activation') == 1): ?>-->
  266. <!-- <li class="aiz-side-nav-item">-->
  267. <!-- <a href="<?php echo e(route('seller.product_query.index')); ?>"-->
  268. <!-- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.product_query.index'])); ?>">-->
  269. <!-- <i class="las la-question-circle aiz-side-nav-icon"></i>-->
  270. <!-- <span class="aiz-side-nav-text"><?php echo e(translate('Product Queries')); ?></span>-->
  271. <!-- </a>-->
  272. <!-- </li>-->
  273. <!--<?php endif; ?>-->
  274. <?php
  275. $support_ticket = DB::table('tickets')
  276. ->where('client_viewed', 0)
  277. ->where('user_id', Auth::user()->id)
  278. ->count();
  279. ?>
  280. <!--<li class="aiz-side-nav-item">-->
  281. <!-- <a href="<?php echo e(route('seller.support_ticket.index')); ?>"-->
  282. <!-- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.support_ticket.index'])); ?>">-->
  283. <!-- <i class="las la-atom aiz-side-nav-icon"></i>-->
  284. <!-- <span class="aiz-side-nav-text"><?php echo e(translate('Support Ticket')); ?></span>-->
  285. <!-- <?php if($support_ticket > 0): ?>-->
  286. <!-- <span class="badge badge-inline badge-success"><?php echo e($support_ticket); ?></span>-->
  287. <!-- <?php endif; ?>-->
  288. <!-- </a>-->
  289. <!--</li>-->
  290. <!--上传的文件-->
  291. <li class="aiz-side-nav-item">
  292. <a href="<?php echo e(route('seller.uploaded-files.index')); ?>"
  293. class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.uploaded-files.index', 'seller.uploads.create'])); ?>">
  294. <i class="las la-folder-open aiz-side-nav-icon"></i>
  295. <span class="aiz-side-nav-text"><?php echo e(translate('Uploaded Files')); ?></span>
  296. </a>
  297. </li>
  298. <li class="aiz-side-nav-item">
  299. <a href="javascript:void(0);" class="aiz-side-nav-link">
  300. <i class="las la-gavel aiz-side-nav-icon"></i>
  301. <span class="aiz-side-nav-text"><?php echo e(translate('Transaction Password')); ?></span>
  302. <span class="aiz-side-nav-arrow"></span>
  303. </a>
  304. <ul class="aiz-side-nav-list level-2">
  305. <li class="aiz-side-nav-item">
  306. <a href="/seller/transaction"
  307. class="aiz-side-nav-link ">
  308. <span
  309. class="aiz-side-nav-text"><?php echo e(translate('Set Transaction Password')); ?></span>
  310. </a>
  311. </li>
  312. </ul>
  313. </li>
  314. </ul><!-- .aiz-side-nav -->
  315. </div><!-- .aiz-side-nav-wrap -->
  316. </div><!-- .aiz-sidebar -->
  317. <div class="aiz-sidebar-overlay"></div>
  318. </div><!-- .aiz-sidebar -->
  319. <!-- conversations Modal -->
  320. <div id="conversations-modal" class="modal fade">
  321. <div class="modal-dialog modal-lg modal-dialog-centered">
  322. <div class="modal-content">
  323. <div class="modal-header">
  324. <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
  325. </div>
  326. <div class="modal-body text-center">
  327. <div class="px-3 c-scrollbar-light overflow-auto " style="max-height:300px;">
  328. <ul class="list-group list-group-flush">
  329. <?php $__empty_1 = true; $__currentLoopData = Auth::user()->unreadNotifications->take(20); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
  330. <li class="list-group-item d-flex justify-content-between align-items- py-3">
  331. <div class="media text-inherit">
  332. <div class="media-body">
  333. <?php if($notification->type == 'App\Notifications\OrderNotification'): ?>
  334. <?php if($notification->data['order_id'] != 0): ?>
  335. <p class="mb-1 text-truncate-2">
  336. <a href="<?php echo e(route('seller.orders.show', encrypt($notification->data['order_id']))); ?>">
  337. <?php echo e(translate('Order code: ')); ?> <?php echo e($notification->data['order_code']); ?> <?php echo e(translate('has been '. ucfirst(str_replace('_', ' ', $notification->data['status'])))); ?>
  338. </a>
  339. </p>
  340. <small class="text-muted">
  341. <?php echo e(date("F j Y, g:i a", strtotime($notification->created_at))); ?>
  342. </small>
  343. <?php else: ?>
  344. <p class="mb-1 text-truncate-2">
  345. <a href="javascript:void(0);">
  346. <?php echo e($notification->data['order_code']); ?>
  347. </a>
  348. </p>
  349. <small class="text-muted">
  350. <?php echo e(date("F j Y, g:i a", strtotime($notification->created_at))); ?>
  351. </small>
  352. <?php endif; ?>
  353. <?php endif; ?>
  354. </div>
  355. </div>
  356. </li>
  357. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
  358. <li class="list-group-item">
  359. <div class="py-4 text-center fs-16">
  360. <?php echo e(translate('No notification found')); ?>
  361. </div>
  362. </li>
  363. <?php endif; ?>
  364. </ul>
  365. </div>
  366. </div>
  367. </div>
  368. </div>
  369. </div>
  370. <!-- /.modal -->
  371. <script type="text/javascript">
  372. <?php
  373. $boolean = Session::get('conversations-modal');
  374. Session::put('conversations-modal', 0);
  375. $count = count(Auth::user()->unreadNotifications->take(20));
  376. ?>
  377. var boolean = '<?php echo e($boolean); ?>';
  378. var count = <?php echo e($count); ?>;
  379. function getConversations() {
  380. $.ajax( {
  381. type: "get",
  382. url: '<?php echo e(route('seller.conversations.message_count')); ?>',
  383. success: function (data)
  384. {
  385. if ( data.result > 0 ) {
  386. $( '#conversations' ).show();
  387. }
  388. else {
  389. $( '#conversations' ).hide();
  390. }
  391. }
  392. } );
  393. }
  394. setInterval( function ()
  395. {
  396. getConversations()
  397. }, 10000 )
  398. window.onload = function(){
  399. if(boolean==1 && count > 0){
  400. $('#conversations-modal').modal('show');
  401. }
  402. }
  403. </script>
  404. <?php if(Auth::user()->user_type == 'seller'): ?>
  405. <?php
  406. /*$shopid = Auth::user()->shop->id;
  407. $shop = DB::table('shops')->find($shopid);
  408. $bzj_money = $shop->bzj_money;
  409. $must_bzj = get_setting('must_guarantee');
  410. $must_bzj == 'on' ? 1 : 0;
  411. $show_modal = 0;
  412. $show_modal2 = 0;
  413. if( $must_bzj && $bzj_money < get_setting('guarantee_money') )
  414. {
  415. $show_modal = 1;
  416. }
  417. if( strpos($_SERVER['REQUEST_URI'],'money-withdraw-requests') !== false)
  418. {
  419. $show_modal2 = 1;
  420. }
  421. $must_guarantee_close = get_setting('must_guarantee_close') == 'on' ? 1 : 0;*/
  422. $shopid = Auth::user()->shop->id;
  423. $shop = DB::table('shops')->find($shopid);
  424. $bzj_money = $shop->bzj_money;
  425. $must_bzj = $shop->mandatory_payment_switch;
  426. $show_modal = 0;
  427. $show_modal2 = 0;
  428. if( $must_bzj && $bzj_money < $shop->compulsory_margin_amount )
  429. {
  430. $show_modal = 1;
  431. }
  432. if( strpos($_SERVER['REQUEST_URI'],'money-withdraw-requests') !== false)
  433. {
  434. $show_modal2 = 1;
  435. }
  436. $must_guarantee_close = get_setting('must_guarantee_close') == 'on' ? 1 : 0;
  437. ?>
  438. <div class="modal fade shop" id="payment_modalsss">
  439. <div class="modal-dialog">
  440. <div class="modal-content" id="payment-modal-content">
  441. <div class="modal-body gry-bg px-3 pt-3">
  442. <br> <br>
  443. <div class="row">
  444. <div class="col">
  445. <div class="alert alert-danger" role="alert">
  446. <h6><?php echo e(translate('You Shold Pay guarantee Money')); ?></h6>
  447. </div>
  448. <div class="alert alert-danger" role="alert">
  449. <?php echo e(translate('Guarantee money')); ?>:<?php echo e($shop->compulsory_margin_amount); ?>
  450. </div>
  451. </div>
  452. </div>
  453. <div class="form-group text-right">
  454. <button onclick="location.href='/seller/money-withdraw-requests'" type="submit" class="btn btn-sm btn-primary"><?php echo e(translate("Go To Pay")); ?></button>
  455. </div>
  456. </div>
  457. </div>
  458. </div>
  459. </div>
  460. <script>
  461. var show_modal = <?php echo $show_modal; ?> ;
  462. var show_modal2 = <?php echo $show_modal2; ?> ;
  463. var must_guarantee_close = <?php echo $must_guarantee_close; ?> ;
  464. if ( show_modal ) {
  465. if ( show_modal2 ) {
  466. setTimeout( function ()
  467. {
  468. show_make_wallet_recharge_modal( 2 );
  469. /*$( '#offline_wallet_recharge_modal' ).unbind( 'click' );
  470. setInterval( function ()
  471. {
  472. $( '#offline_wallet_recharge_modal' ).unbind( 'click' );
  473. }, 10 );*/
  474. if(must_guarantee_close==0){
  475. setTimeout(function (){
  476. $( '#offline_wallet_recharge_modal' ).unbind( 'click' );
  477. },1000)
  478. }
  479. }, 1000 )
  480. /*window.onload = function ()
  481. {
  482. show_make_wallet_recharge_modal( 2 );
  483. <?php if( $must_guarantee_close == 0 ): ?>
  484. $( '#offline_wallet_recharge_modal' ).unbind( 'click' );
  485. setInterval( function ()
  486. {
  487. $( '#offline_wallet_recharge_modal' ).unbind( 'click' );
  488. }, 10 );
  489. <?php endif; ?>
  490. if(must_guarantee_close==0){
  491. setTimeout(function (){
  492. $( '#offline_wallet_recharge_modal' ).unbind( 'click' );
  493. },1000)
  494. }
  495. }*/
  496. }
  497. else {
  498. window.onload = function ()
  499. {
  500. $( '#payment_modalsss' ).modal( 'show', { backdrop: 'static' } );
  501. $( '#payment_modalsss' ).unbind( 'click' );
  502. }
  503. setTimeout( function ()
  504. {
  505. $( '#payment_modalsss' ).modal( 'show', { backdrop: 'static' } );
  506. $( '#payment_modalsss' ).unbind( 'click' );
  507. }, 1000 )
  508. }
  509. }
  510. </script>
  511. <script>
  512. function audioPlay(text) {
  513. var zhText = text;
  514. zhText = encodeURI( zhText );
  515. var audio = "<audio autoplay=\"autoplay\">" + "<source src=\"/public/new.mp3\" type=\"audio/mpeg\">" + "<embed height=\"0\" width=\"0\" src=\"http://tts.baidu.com/text2audio?text=" + zhText + "\">" + "</audio>";
  516. $( 'body' ).append( audio );
  517. }
  518. window.onload = function ()
  519. {
  520. setInterval( function ()
  521. {
  522. $.get( '<?php echo e(route('conversations.check_new_msg')); ?>', {}, function (res)
  523. {
  524. if ( res.code == 1 ) {
  525. audioPlay( res.msg );
  526. }
  527. }, 'json' )
  528. }, '3000' );
  529. }
  530. </script>
  531. <?php endif; ?>
  532. <?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/seller/inc/seller_sidenav.blade.php ENDPATH**/ ?>