123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <div class="aiz-user-sidenav-wrap position-relative z-1 shadow-sm">
- <div class="aiz-user-sidenav rounded overflow-auto c-scrollbar-light pb-5 pb-xl-0">
- <div class="p-4 text-xl-center mb-4 border-bottom bg-primary text-white position-relative" style="background-color: #007bff !important;">
- <span class="avatar avatar-md mb-3">
- <?php if(Auth::user()->avatar_original != null): ?>
- <img src="<?php echo e(uploaded_asset(Auth::user()->avatar_original)); ?>" onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/avatar-place.png')); ?>';">
- <?php else: ?>
- <img src="<?php echo e(static_asset('assets/img/avatar-place.png')); ?>" class="image rounded-circle" onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/avatar-place.png')); ?>';">
- <?php endif; ?>
- </span>
- <h4 class="h5 fs-16 mb-1 fw-600"><?php echo e(Auth::user()->name); ?></h4>
- <?php if(Auth::user()->phone != null): ?>
- <div class="text-truncate opacity-60"><?php echo e(Auth::user()->phone); ?></div>
- <?php else: ?>
- <div class="text-truncate opacity-60"><?php echo e(Auth::user()->email); ?></div>
- <?php endif; ?>
- </div>
- <div class="sidemnenu mb-3">
- <ul class="aiz-side-nav-list px-2" data-toggle="aiz-side-menu">
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('dashboard')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['dashboard'])); ?>">
- <i class="las la-home aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('my_store')); ?></span>
- </a>
- </li>
- <!--<?php if(Auth::user()->user_type == 'seller'): ?>-->
- <!-- <li class="aiz-side-nav-item">-->
- <!-- <a href="<?php echo e(route('shop.visit', Auth::user() -> shop -> slug)); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['shop.visit'])); ?>">-->
- <!-- <i class="las la-hourglass-half aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">-->
- <!-- <?php echo e(translate('Visit Shop')); ?> -->
- <!-- </span> </a>-->
- <!-- </li>-->
- <!--<?php endif; ?>-->
- <?php if(Auth::user()->user_type != 'salesman'): ?>
- <?php if(Auth::user()->user_type == 'delivery_boy'): ?>
-
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('assigned-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['completed-delivery'])); ?>">
- <i class="las la-hourglass-half aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
- <?php echo e(translate('Assigned Delivery')); ?>
- </span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('pickup-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['completed-delivery'])); ?>">
- <i class="las la-luggage-cart aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
- <?php echo e(translate('Pickup Delivery')); ?>
- </span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('on-the-way-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['completed-delivery'])); ?>">
- <i class="las la-running aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
- <?php echo e(translate('On The Way Delivery')); ?>
- </span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('completed-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['completed-delivery'])); ?>">
- <i class="las la-check-circle aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
- <?php echo e(translate('Completed Delivery')); ?>
- </span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('pending-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['pending-delivery'])); ?>">
- <i class="las la-clock aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
- <?php echo e(translate('Pending Delivery')); ?>
- </span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('cancelled-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['cancelled-delivery'])); ?>">
- <i class="las la-times-circle aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
- <?php echo e(translate('Cancelled Delivery')); ?>
- </span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('cancel-request-list')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['cancel-request-list'])); ?>">
- <i class="las la-times-circle aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
- <?php echo e(translate('Request Cancelled Delivery')); ?>
- </span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('total-collection')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['today-collection'])); ?>">
- <i class="las la-comment-dollar aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
- <?php echo e(translate('Total Collections')); ?>
- </span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('total-earnings')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['total-earnings'])); ?>">
- <i class="las la-comment-dollar aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
- <?php echo e(translate('Total Earnings')); ?>
- </span> </a>
- </li>
- <?php else: ?>
- <?php
- $delivery_viewed = App\Models\Order::where('user_id', Auth::user()->id)->where('delivery_viewed', 0)->get()->count();
- $payment_status_viewed = App\Models\Order::where('user_id', Auth::user()->id)->where('payment_status_viewed', 0)->get()->count();
- ?>
- <?php if(Auth::user()->user_type == 'customer'): ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('purchase_history.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['purchase_history.index','purchase_history.details'])); ?>">
- <i class="las la-file-alt aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Purchase History')); ?></span>
- <?php if($delivery_viewed > 0 || $payment_status_viewed > 0): ?>
- <span class="badge badge-inline badge-success"><?php echo e(translate('New')); ?></span><?php endif; ?>
- </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('digital_purchase_history.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['digital_purchase_history.index'])); ?>">
- <i class="las la-download aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Downloads')); ?></span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('registered_shop')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['registered_shop'])); ?>">
- <i class="las la-download aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Registered Shop')); ?></span> </a>
- </li>
- <?php endif; ?>
- <?php if(addon_is_activated('refund_request')): ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('customer_refund_request')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['customer_refund_request'])); ?>">
- <i class="las la-backward aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Sent Refund Request')); ?></span> </a>
- </li>
- <?php endif; ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('wishlists.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['wishlists.index'])); ?>">
- <i class="la la-heart-o aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Wishlist')); ?></span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('compare')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['compare'])); ?>">
- <i class="la la-refresh aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Compare')); ?></span> </a>
- </li>
- <?php if(get_setting('classified_product') == 1): ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('customer_products.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['customer_products.index', 'customer_products.create', 'customer_products.edit'])); ?>">
- <i class="lab la-sketch aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Classified Products')); ?></span> </a>
- </li>
- <?php endif; ?>
- <?php if(get_setting('conversation_system') == 1): ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('conversations.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['conversations.index', 'conversations.show'])); ?>" style="align-items: center">
- <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; ?>
- <?php if(get_setting('wallet_system') == 1): ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('wallet.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['wallet.index'])); ?>">
- <i class="las la-dollar-sign aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('My Wallet')); ?></span> </a>
- </li>
- <?php endif; ?>
- <?php if(addon_is_activated('club_point')): ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('earnng_point_for_user')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['earnng_point_for_user'])); ?>">
- <i class="las la-dollar-sign aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Earning Points')); ?></span> </a>
- </li>
- <?php endif; ?>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('user_invitation_code')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['user_invitation_code'])); ?>">
- <i class="las la-atom aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Invitation')); ?></span> </a>
- </li>
- <?php if(addon_is_activated('affiliate_system') && Auth::user()->affiliate_user != NULL && Auth::user()->affiliate_user->status): ?>
- <li class="aiz-side-nav-item">
- <a href="javascript:void(0);" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['affiliate.user.index', 'affiliate.payment_settings'])); ?>">
- <i class="las la-dollar-sign aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Affiliate')); ?></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('affiliate.user.index')); ?>" class="aiz-side-nav-link">
- <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('affiliate.user.payment_history')); ?>" class="aiz-side-nav-link">
- <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('affiliate.user.withdraw_request_history')); ?>" class="aiz-side-nav-link">
- <span class="aiz-side-nav-text"><?php echo e(translate('Withdraw request history')); ?></span>
- </a>
- </li>
- </ul>
- </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('support_ticket.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['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>
- <?php endif; ?>
- <li class="aiz-side-nav-item">
- <a href="/user/transaction" class="aiz-side-nav-link">
- <i class="las la-wallet aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Transaction password')); ?></span> </a>
- </li>
- <li class="aiz-side-nav-item">
- <a href="<?php echo e(route('profile')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['profile'])); ?>">
- <i class="las la-user aiz-side-nav-icon"></i>
- <span class="aiz-side-nav-text"><?php echo e(translate('Manage Profile')); ?></span> </a>
- </li>
- <?php endif; ?>
- </ul>
- </div>
- </div>
- <div class="fixed-bottom d-xl-none bg-white border-top d-flex justify-content-between px-2" style="box-shadow: 0 -5px 10px rgb(0 0 0 / 10%);">
- <a class="btn btn-sm p-2 d-flex align-items-center" href="<?php echo e(route('logout')); ?>">
- <i class="las la-sign-out-alt fs-18 mr-2"></i>
- <span><?php echo e(translate('Logout')); ?></span>
- </a>
- <button class="btn btn-sm p-2 " data-toggle="class-toggle" data-backdrop="static" data-target=".aiz-mobile-side-nav" data-same=".mobile-side-nav-thumb">
- <i class="las la-times la-2x"></i>
- </button>
- </div>
- </div>
- <script type="text/javascript">
- function getConversations(){
- $.ajax({
- type:"post",
- url:'<?php echo e(route('conversations.message_count')); ?>',
- success: function(data){
- if(data.result > 0){
- $('#conversations').show();
- }else{
- $('#conversations').hide();
- }
- }
- });
- }
- // setInterval(function (){
- // getConversations()
- // },1000)
- </script>
- <?php /**PATH /Users/shaoguo/Desktop/公司资料/小梦/商城/ebayShop/resources/views/frontend/inc/user_side_nav.blade.php ENDPATH**/ ?>
|