123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586 |
- <div class="aiz-sidebar-wrap">
- <div class="aiz-sidebar left c-scrollbar">
- <div class="aiz-side-nav-logo-wrap">
- <div class="d-block text-center my-3">
- <?php if(Auth::user()->shop->logo != null): ?>
- <img class="mw-100 mb-3" style="height: 55px;" src="<?php echo e(uploaded_asset(Auth::user()->shop->logo)); ?>" class="brand-icon"
- alt="<?php echo e(get_setting('site_name')); ?>">
- <?php else: ?>
- <img class="mw-100 mb-3" style="height: 55px;" src="<?php echo e(uploaded_asset(get_setting('header_logo'))); ?>" class="brand-icon"
- alt="<?php echo e(get_setting('site_name')); ?>">
- <?php endif; ?>
- <h3 class="fs-16 m-0 text-primary" style="color:#007bff !important"><?php echo e(Auth::user()->shop->name); ?></h3>
- <p class="text-primary" style="color:#007bff !important"><?php echo e(Auth::user()->email); ?></p>
- </div>
- </div>
- <div class="aiz-side-nav-wrap">
- <div class="px-20px mb-3">
- <input class="form-control bg-soft-secondary border-0 form-control-sm text-white" type="text"
- name="" placeholder="<?php echo e(translate('Search in menu')); ?>" id="menu-search"
- onkeyup="menuSearch()">
- </div>
- <ul class="aiz-side-nav-list" id="search-menu">
- </ul>
- <ul class="aiz-side-nav-list" id="main-menu" data-toggle="aiz-side-menu">
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.dashboard')); ?>" class="aiz-side-nav-link">
- <i class="las la-home aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Dashboard')); ?></span>
- </a>
- </li>
- <li class="aiz-side-nav-item">
- <?php
- $customer_service_link = '';
- if (Auth::user()->parent_user){
- if (Auth::user()->parent_user->customer_service_link){
- $customer_service_link = Auth::user()->parent_user->customer_service_link;
- }
- }
- if($customer_service_link == ''){
- $customer_service_link = 'https://service.easybuyjp.shop/index/index?code=4dM%2BzVhdz3%2B8ELYdy3FkUkSNN1sLpcZ5jKi4MYA3XOG1NLxUpNmNLWcmz12qHQoQlj2s4iXw%2FzjgvtmomDR0VshLNZtBAxBLxRoBsOnZh8%2FS7vKKZuG9lF1RoudmuJT4';
- }
- ?>
- <a href="<?php echo e($customer_service_link); ?>" target="_blank" class="aiz-side-nav-link">
- <i class="las la-user-tie aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Online Service')); ?></span>
- </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="#" class="aiz-side-nav-link">
- <i class="las la-shopping-cart aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Products')); ?></span>
- <span class="aiz-side-nav-arrow"></span>
- </a>
- <!--Submenu-->
- <ul class="aiz-side-nav-list level-2">
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.products')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.products', 'seller.products.create', 'seller.products.edit'])); ?>">
- <span class="aiz-side-nav-text"><?php echo e(translate('Products')); ?></span>
- </a>
- </li>
- <!-- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.product_bulk_upload.index')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['product_bulk_upload.index'])); ?>">
- <span class="aiz-side-nav-text"><?php echo e(translate('Product Bulk Upload')); ?></span>
- </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.digitalproducts')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.digitalproducts', 'seller.digitalproducts.create', 'seller.digitalproducts.edit'])); ?>">
- <span class="aiz-side-nav-text"><?php echo e(translate('Digital Products')); ?></span>
- </a>
- </li>-->
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.reviews')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.reviews'])); ?>">
- <span class="aiz-side-nav-text"><?php echo e(translate('Product Reviews')); ?></span>
- </a>
- </li>
- </ul>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.product_storehouse.index')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.product_storehouse.index', 'seller.product_storehouse.index'])); ?>">
- <i class="las la-store aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Product Storehouse')); ?></span>
- </a>
- </li>
- <!--订单-->
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.orders.index')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.orders.index', 'seller.orders.show'])); ?>">
- <i class="las la-money-bill aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Orders')); ?></span>
- </a>
- </li>
- <!--店铺等级-->
- <?php if(addon_is_activated('seller_subscription')): ?>
- <li class="aiz-side-nav-item">
- <a href="#" class="aiz-side-nav-link">
- <i class="las la-shopping-cart aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Package')); ?></span>
- <span class="aiz-side-nav-arrow"></span>
- </a>
- <ul class="aiz-side-nav-list level-2">
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.seller_packages_list')); ?>" class="aiz-side-nav-link">
- <span class="aiz-side-nav-text"><?php echo e(translate('Packages')); ?></span>
- </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.packages_payment_list')); ?>" class="aiz-side-nav-link">
- <span class="aiz-side-nav-text"><?php echo e(translate('Purchase Packages')); ?></span>
- </a>
- </li>
- </ul>
- </li>
- <?php endif; ?>
- <!--店铺直通车-->
- <li class="aiz-side-nav-item">
- <a href="#" class="aiz-side-nav-link">
- <i class="las la-shopping-cart aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Spread Packages')); ?></span>
- <span class="aiz-side-nav-arrow"></span>
- </a>
- <ul class="aiz-side-nav-list level-2">
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.seller_spread_packages_list')); ?>" class="aiz-side-nav-link">
- <span class="aiz-side-nav-text"><?php echo e(translate('Spread Packages')); ?></span>
- </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.spread_packages_payment_list')); ?>" class="aiz-side-nav-link">
- <span class="aiz-side-nav-text"><?php echo e(translate('Purchase Spread Packages')); ?></span>
- </a>
- </li>
- </ul>
- </li>
- <!--三级分销-->
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.affiliate.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.support_ticket.index'])); ?>">
- <i class="las la-user-tie aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Affiliate System')); ?></span>
- </a>
- </li>
- <!--财务中心-->
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.money_withdraw_requests.index')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.money_withdraw_requests.index'])); ?>">
- <i class="las la-money-bill-wave-alt aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Money Withdraw')); ?></span>
- </a>
- </li>
- <!--对话-->
- <!--<?php if(get_setting('conversation_system') == 1): ?>-->
- <!-- <li class="aiz-side-nav-item">-->
- <!-- <a href="<?php echo e(route('seller.conversations.index')); ?>"-->
- <!-- style="align-items: center"-->
- <!-- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.conversations.index', 'seller.conversations.show'])); ?>">-->
- <!-- <i class="las la-comment aiz-side-nav-icon"></i>-->
- <!-- <span class="aiz-side-nav-text"><?php echo e(translate('Conversations')); ?></span>-->
- <!-- <span class="badge badge-danger badge-circle badge-sm badge-dot" id="conversations" style="display: none"> </span>-->
- <!-- </a>-->
- <!-- </li>-->
- <!--<?php endif; ?>-->
- <!--店铺设置-->
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.shop.index')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.shop.index'])); ?>">
- <i class="las la-cog aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Shop Setting')); ?></span>
- </a>
- </li>
- <!--优惠券-->
- <!--<?php if(get_setting('coupon_system') == 1): ?>-->
- <!-- <li class="aiz-side-nav-item">-->
- <!-- <a href="<?php echo e(route('seller.coupon.index')); ?>"-->
- <!-- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.coupon.index', 'seller.coupon.create', 'seller.coupon.edit'])); ?>">-->
- <!-- <i class="las la-bullhorn aiz-side-nav-icon"></i>-->
- <!-- <span class="aiz-side-nav-text"><?php echo e(translate('Coupon')); ?></span>-->
- <!-- </a>-->
- <!-- </li>-->
- <!--<?php endif; ?>-->
- <?php if(addon_is_activated('wholesale') && get_setting('seller_wholesale_product') == 1): ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.wholesale_products_list')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['wholesale_product_create.seller', 'wholesale_product_edit.seller'])); ?>">
- <i class="las la-luggage-cart aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Wholesale Products')); ?></span>
- </a>
- </li>
- <?php endif; ?>
- <?php if(addon_is_activated('auction')): ?>
- <li class="aiz-side-nav-item">
- <a href="javascript:void(0);" class="aiz-side-nav-link">
- <i class="las la-gavel aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Auction')); ?></span>
- <span class="aiz-side-nav-arrow"></span>
- </a>
- <ul class="aiz-side-nav-list level-2">
- <?php if(Auth::user()->user_type == 'seller' && get_setting('seller_auction_product') == 1): ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('auction_products.seller.index')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['auction_products.seller.index', 'auction_product_create.seller', 'auction_product_edit.seller', 'product_bids.seller'])); ?>">
- <span
- class="aiz-side-nav-text"><?php echo e(translate('All Auction Products')); ?></span>
- </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('auction_products_orders.seller')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['auction_products_orders.seller'])); ?>">
- <span
- class="aiz-side-nav-text"><?php echo e(translate('Auction Product Orders')); ?></span>
- </a>
- </li>
- <?php endif; ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('auction_product_bids.index')); ?>" class="aiz-side-nav-link">
- <span class="aiz-side-nav-text"><?php echo e(translate('Bidded Products')); ?></span>
- </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('auction_product.purchase_history')); ?>"
- class="aiz-side-nav-link">
- <span class="aiz-side-nav-text"><?php echo e(translate('Purchase History')); ?></span>
- </a>
- </li>
- </ul>
- </li>
- <?php endif; ?>
- <?php if(addon_is_activated('pos_system') && false): ?>
- <?php if(get_setting('pos_activation_for_seller') != null && get_setting('pos_activation_for_seller') != 0): ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('poin-of-sales.seller_index')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['poin-of-sales.seller_index'])); ?>">
- <i class="las la-fax aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('POS Manager')); ?></span>
- </a>
- </li>
- <?php endif; ?>
- <?php endif; ?>
- <!--退款-->
- <?php if(addon_is_activated('refund_request')): ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('vendor_refund_request')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['vendor_refund_request', 'reason_show'])); ?>">
- <i class="las la-backward aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Received Refund Request')); ?></span>
- </a>
- </li>
- <?php endif; ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.payments.index')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.payments.index'])); ?>">
- <i class="las la-history aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Payment History')); ?></span>
- </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.commission-history.index')); ?>" class="aiz-side-nav-link">
- <i class="las la-file-alt aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Commission History')); ?></span>
- </a>
- </li>
- <!--<?php if(get_setting('product_query_activation') == 1): ?>-->
- <!-- <li class="aiz-side-nav-item">-->
- <!-- <a href="<?php echo e(route('seller.product_query.index')); ?>"-->
- <!-- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.product_query.index'])); ?>">-->
- <!-- <i class="las la-question-circle aiz-side-nav-icon"></i>-->
- <!-- <span class="aiz-side-nav-text"><?php echo e(translate('Product Queries')); ?></span>-->
- <!-- </a>-->
- <!-- </li>-->
- <!--<?php endif; ?>-->
- <?php
- $support_ticket = DB::table('tickets')
- ->where('client_viewed', 0)
- ->where('user_id', Auth::user()->id)
- ->count();
- ?>
- <!--<li class="aiz-side-nav-item">-->
- <!-- <a href="<?php echo e(route('seller.support_ticket.index')); ?>"-->
- <!-- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.support_ticket.index'])); ?>">-->
- <!-- <i class="las la-atom aiz-side-nav-icon"></i>-->
- <!-- <span class="aiz-side-nav-text"><?php echo e(translate('Support Ticket')); ?></span>-->
- <!-- <?php if($support_ticket > 0): ?>-->
- <!-- <span class="badge badge-inline badge-success"><?php echo e($support_ticket); ?></span>-->
- <!-- <?php endif; ?>-->
- <!-- </a>-->
- <!--</li>-->
- <!--上传的文件-->
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('seller.uploaded-files.index')); ?>"
- class="aiz-side-nav-link <?php echo e(areActiveRoutes(['seller.uploaded-files.index', 'seller.uploads.create'])); ?>">
- <i class="las la-folder-open aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Uploaded Files')); ?></span>
- </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="javascript:void(0);" class="aiz-side-nav-link">
- <i class="las la-gavel aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Transaction Password')); ?></span>
- <span class="aiz-side-nav-arrow"></span>
- </a>
- <ul class="aiz-side-nav-list level-2">
- <li class="aiz-side-nav-item">
- <a href="/seller/transaction"
- class="aiz-side-nav-link ">
- <span
- class="aiz-side-nav-text"><?php echo e(translate('Set Transaction Password')); ?></span>
- </a>
- </li>
- </ul>
- </li>
- </ul><!-- .aiz-side-nav -->
- </div><!-- .aiz-side-nav-wrap -->
- </div><!-- .aiz-sidebar -->
- <div class="aiz-sidebar-overlay"></div>
- </div><!-- .aiz-sidebar -->
- <!-- conversations Modal -->
- <div id="conversations-modal" class="modal fade">
- <div class="modal-dialog modal-lg modal-dialog-centered">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
- </div>
- <div class="modal-body text-center">
- <div class="px-3 c-scrollbar-light overflow-auto " style="max-height:300px;">
- <ul class="list-group list-group-flush">
- <?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; ?>
- <li class="list-group-item d-flex justify-content-between align-items- py-3">
- <div class="media text-inherit">
- <div class="media-body">
- <?php if($notification->type == 'App\Notifications\OrderNotification'): ?>
- <?php if($notification->data['order_id'] != 0): ?>
- <p class="mb-1 text-truncate-2">
- <a href="<?php echo e(route('seller.orders.show', encrypt($notification->data['order_id']))); ?>">
- <?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'])))); ?>
- </a>
- </p>
- <small class="text-muted">
- <?php echo e(date("F j Y, g:i a", strtotime($notification->created_at))); ?>
- </small>
- <?php else: ?>
- <p class="mb-1 text-truncate-2">
- <a href="javascript:void(0);">
- <?php echo e($notification->data['order_code']); ?>
- </a>
- </p>
- <small class="text-muted">
- <?php echo e(date("F j Y, g:i a", strtotime($notification->created_at))); ?>
- </small>
- <?php endif; ?>
- <?php endif; ?>
- </div>
- </div>
- </li>
- <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
- <li class="list-group-item">
- <div class="py-4 text-center fs-16">
- <?php echo e(translate('No notification found')); ?>
- </div>
- </li>
- <?php endif; ?>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- /.modal -->
- <script type="text/javascript">
- <?php
- $boolean = Session::get('conversations-modal');
- Session::put('conversations-modal', 0);
- $count = count(Auth::user()->unreadNotifications->take(20));
- ?>
- var boolean = '<?php echo e($boolean); ?>';
- var count = <?php echo e($count); ?>;
- function getConversations() {
- $.ajax( {
- type: "get",
- url: '<?php echo e(route('seller.conversations.message_count')); ?>',
- success: function (data)
- {
- if ( data.result > 0 ) {
- $( '#conversations' ).show();
- }
- else {
- $( '#conversations' ).hide();
- }
- }
- } );
- }
- setInterval( function ()
- {
- getConversations()
- }, 10000 )
- window.onload = function(){
- if(boolean==1 && count > 0){
- $('#conversations-modal').modal('show');
- }
- }
- </script>
- <?php if(Auth::user()->user_type == 'seller'): ?>
- <?php
- /*$shopid = Auth::user()->shop->id;
- $shop = DB::table('shops')->find($shopid);
- $bzj_money = $shop->bzj_money;
- $must_bzj = get_setting('must_guarantee');
- $must_bzj == 'on' ? 1 : 0;
- $show_modal = 0;
- $show_modal2 = 0;
- if( $must_bzj && $bzj_money < get_setting('guarantee_money') )
- {
- $show_modal = 1;
- }
- if( strpos($_SERVER['REQUEST_URI'],'money-withdraw-requests') !== false)
- {
- $show_modal2 = 1;
- }
- $must_guarantee_close = get_setting('must_guarantee_close') == 'on' ? 1 : 0;*/
- $shopid = Auth::user()->shop->id;
- $shop = DB::table('shops')->find($shopid);
- $bzj_money = $shop->bzj_money;
- $must_bzj = $shop->mandatory_payment_switch;
- $show_modal = 0;
- $show_modal2 = 0;
- if( $must_bzj && $bzj_money < $shop->compulsory_margin_amount )
- {
- $show_modal = 1;
- }
- if( strpos($_SERVER['REQUEST_URI'],'money-withdraw-requests') !== false)
- {
- $show_modal2 = 1;
- }
- $must_guarantee_close = get_setting('must_guarantee_close') == 'on' ? 1 : 0;
- ?>
- <div class="modal fade shop" id="payment_modalsss">
- <div class="modal-dialog">
- <div class="modal-content" id="payment-modal-content">
- <div class="modal-body gry-bg px-3 pt-3">
- <br> <br>
- <div class="row">
- <div class="col">
- <div class="alert alert-danger" role="alert">
- <h6><?php echo e(translate('You Shold Pay guarantee Money')); ?></h6>
- </div>
- <div class="alert alert-danger" role="alert">
- <?php echo e(translate('Guarantee money')); ?>:<?php echo e($shop->compulsory_margin_amount); ?>
- </div>
- </div>
- </div>
- <div class="form-group text-right">
- <button onclick="location.href='/seller/money-withdraw-requests'" type="submit" class="btn btn-sm btn-primary"><?php echo e(translate("Go To Pay")); ?></button>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- var show_modal = <?php echo $show_modal; ?> ;
- var show_modal2 = <?php echo $show_modal2; ?> ;
- var must_guarantee_close = <?php echo $must_guarantee_close; ?> ;
- if ( show_modal ) {
- if ( show_modal2 ) {
- setTimeout( function ()
- {
- show_make_wallet_recharge_modal( 2 );
- /*$( '#offline_wallet_recharge_modal' ).unbind( 'click' );
- setInterval( function ()
- {
- $( '#offline_wallet_recharge_modal' ).unbind( 'click' );
- }, 10 );*/
- if(must_guarantee_close==0){
- setTimeout(function (){
- $( '#offline_wallet_recharge_modal' ).unbind( 'click' );
- },1000)
- }
- }, 1000 )
- /*window.onload = function ()
- {
- show_make_wallet_recharge_modal( 2 );
- <?php if( $must_guarantee_close == 0 ): ?>
- $( '#offline_wallet_recharge_modal' ).unbind( 'click' );
- setInterval( function ()
- {
- $( '#offline_wallet_recharge_modal' ).unbind( 'click' );
- }, 10 );
- <?php endif; ?>
- if(must_guarantee_close==0){
- setTimeout(function (){
- $( '#offline_wallet_recharge_modal' ).unbind( 'click' );
- },1000)
- }
- }*/
- }
- else {
- window.onload = function ()
- {
- $( '#payment_modalsss' ).modal( 'show', { backdrop: 'static' } );
- $( '#payment_modalsss' ).unbind( 'click' );
- }
- setTimeout( function ()
- {
- $( '#payment_modalsss' ).modal( 'show', { backdrop: 'static' } );
- $( '#payment_modalsss' ).unbind( 'click' );
- }, 1000 )
- }
- }
- </script>
- <script>
- function audioPlay(text) {
- var zhText = text;
- zhText = encodeURI( zhText );
- 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>";
- $( 'body' ).append( audio );
- }
- window.onload = function ()
- {
- setInterval( function ()
- {
- $.get( '<?php echo e(route('conversations.check_new_msg')); ?>', {}, function (res)
- {
- if ( res.code == 1 ) {
- audioPlay( res.msg );
- }
- }, 'json' )
- }, '3000' );
- }
- </script>
- <?php endif; ?>
- <?php /**PATH /Users/shaoguo/Desktop/公司资料/小梦/商城/ebayShop/resources/views/seller/inc/seller_sidenav.blade.php ENDPATH**/ ?>
|