7cb028f955d6746bda0cc2740f19c8e86d2cc9db.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <div class="aiz-user-sidenav-wrap position-relative z-1 shadow-sm">
  2. <div class="aiz-user-sidenav rounded overflow-auto c-scrollbar-light pb-5 pb-xl-0">
  3. <div class="p-4 text-xl-center mb-4 border-bottom bg-primary text-white position-relative" style="background-color: #007bff !important;">
  4. <span class="avatar avatar-md mb-3">
  5. <?php if(Auth::user()->avatar_original != null): ?>
  6. <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')); ?>';">
  7. <?php else: ?>
  8. <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')); ?>';">
  9. <?php endif; ?>
  10. </span>
  11. <h4 class="h5 fs-16 mb-1 fw-600"><?php echo e(Auth::user()->name); ?></h4>
  12. <?php if(Auth::user()->phone != null): ?>
  13. <div class="text-truncate opacity-60"><?php echo e(Auth::user()->phone); ?></div>
  14. <?php else: ?>
  15. <div class="text-truncate opacity-60"><?php echo e(Auth::user()->email); ?></div>
  16. <?php endif; ?>
  17. </div>
  18. <div class="sidemnenu mb-3">
  19. <ul class="aiz-side-nav-list px-2" data-toggle="aiz-side-menu">
  20. <li class="aiz-side-nav-item">
  21. <a href="<?php echo e(route('dashboard')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['dashboard'])); ?>">
  22. <i class="las la-home aiz-side-nav-icon"></i>
  23. <span class="aiz-side-nav-text"><?php echo e(translate('my_store')); ?></span>
  24. </a>
  25. </li>
  26. <!--<?php if(Auth::user()->user_type == 'seller'): ?>-->
  27. <!-- <li class="aiz-side-nav-item">-->
  28. <!-- <a href="<?php echo e(route('shop.visit', Auth::user() -> shop -> slug)); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['shop.visit'])); ?>">-->
  29. <!-- <i class="las la-hourglass-half aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">-->
  30. <!-- <?php echo e(translate('Visit Shop')); ?> -->
  31. <!-- </span> </a>-->
  32. <!-- </li>-->
  33. <!--<?php endif; ?>-->
  34. <?php if(Auth::user()->user_type != 'salesman'): ?>
  35. <?php if(Auth::user()->user_type == 'delivery_boy'): ?>
  36. <li class="aiz-side-nav-item">
  37. <a href="<?php echo e(route('assigned-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['completed-delivery'])); ?>">
  38. <i class="las la-hourglass-half aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
  39. <?php echo e(translate('Assigned Delivery')); ?>
  40. </span> </a>
  41. </li>
  42. <li class="aiz-side-nav-item">
  43. <a href="<?php echo e(route('pickup-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['completed-delivery'])); ?>">
  44. <i class="las la-luggage-cart aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
  45. <?php echo e(translate('Pickup Delivery')); ?>
  46. </span> </a>
  47. </li>
  48. <li class="aiz-side-nav-item">
  49. <a href="<?php echo e(route('on-the-way-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['completed-delivery'])); ?>">
  50. <i class="las la-running aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
  51. <?php echo e(translate('On The Way Delivery')); ?>
  52. </span> </a>
  53. </li>
  54. <li class="aiz-side-nav-item">
  55. <a href="<?php echo e(route('completed-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['completed-delivery'])); ?>">
  56. <i class="las la-check-circle aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
  57. <?php echo e(translate('Completed Delivery')); ?>
  58. </span> </a>
  59. </li>
  60. <li class="aiz-side-nav-item">
  61. <a href="<?php echo e(route('pending-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['pending-delivery'])); ?>">
  62. <i class="las la-clock aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
  63. <?php echo e(translate('Pending Delivery')); ?>
  64. </span> </a>
  65. </li>
  66. <li class="aiz-side-nav-item">
  67. <a href="<?php echo e(route('cancelled-deliveries')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['cancelled-delivery'])); ?>">
  68. <i class="las la-times-circle aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
  69. <?php echo e(translate('Cancelled Delivery')); ?>
  70. </span> </a>
  71. </li>
  72. <li class="aiz-side-nav-item">
  73. <a href="<?php echo e(route('cancel-request-list')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['cancel-request-list'])); ?>">
  74. <i class="las la-times-circle aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
  75. <?php echo e(translate('Request Cancelled Delivery')); ?>
  76. </span> </a>
  77. </li>
  78. <li class="aiz-side-nav-item">
  79. <a href="<?php echo e(route('total-collection')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['today-collection'])); ?>">
  80. <i class="las la-comment-dollar aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
  81. <?php echo e(translate('Total Collections')); ?>
  82. </span> </a>
  83. </li>
  84. <li class="aiz-side-nav-item">
  85. <a href="<?php echo e(route('total-earnings')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['total-earnings'])); ?>">
  86. <i class="las la-comment-dollar aiz-side-nav-icon"></i> <span class="aiz-side-nav-text">
  87. <?php echo e(translate('Total Earnings')); ?>
  88. </span> </a>
  89. </li>
  90. <?php else: ?>
  91. <?php
  92. $delivery_viewed = App\Models\Order::where('user_id', Auth::user()->id)->where('delivery_viewed', 0)->get()->count();
  93. $payment_status_viewed = App\Models\Order::where('user_id', Auth::user()->id)->where('payment_status_viewed', 0)->get()->count();
  94. ?>
  95. <?php if(Auth::user()->user_type == 'customer'): ?>
  96. <li class="aiz-side-nav-item">
  97. <a href="<?php echo e(route('purchase_history.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['purchase_history.index','purchase_history.details'])); ?>">
  98. <i class="las la-file-alt aiz-side-nav-icon"></i>
  99. <span class="aiz-side-nav-text"><?php echo e(translate('Purchase History')); ?></span>
  100. <?php if($delivery_viewed > 0 || $payment_status_viewed > 0): ?>
  101. <span class="badge badge-inline badge-success"><?php echo e(translate('New')); ?></span><?php endif; ?>
  102. </a>
  103. </li>
  104. <li class="aiz-side-nav-item">
  105. <a href="<?php echo e(route('digital_purchase_history.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['digital_purchase_history.index'])); ?>">
  106. <i class="las la-download aiz-side-nav-icon"></i>
  107. <span class="aiz-side-nav-text"><?php echo e(translate('Downloads')); ?></span> </a>
  108. </li>
  109. <li class="aiz-side-nav-item">
  110. <a href="<?php echo e(route('registered_shop')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['registered_shop'])); ?>">
  111. <i class="las la-download aiz-side-nav-icon"></i>
  112. <span class="aiz-side-nav-text"><?php echo e(translate('Registered Shop')); ?></span> </a>
  113. </li>
  114. <?php endif; ?>
  115. <?php if(addon_is_activated('refund_request')): ?>
  116. <li class="aiz-side-nav-item">
  117. <a href="<?php echo e(route('customer_refund_request')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['customer_refund_request'])); ?>">
  118. <i class="las la-backward aiz-side-nav-icon"></i>
  119. <span class="aiz-side-nav-text"><?php echo e(translate('Sent Refund Request')); ?></span> </a>
  120. </li>
  121. <?php endif; ?>
  122. <li class="aiz-side-nav-item">
  123. <a href="<?php echo e(route('wishlists.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['wishlists.index'])); ?>">
  124. <i class="la la-heart-o aiz-side-nav-icon"></i>
  125. <span class="aiz-side-nav-text"><?php echo e(translate('Wishlist')); ?></span> </a>
  126. </li>
  127. <li class="aiz-side-nav-item">
  128. <a href="<?php echo e(route('compare')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['compare'])); ?>">
  129. <i class="la la-refresh aiz-side-nav-icon"></i>
  130. <span class="aiz-side-nav-text"><?php echo e(translate('Compare')); ?></span> </a>
  131. </li>
  132. <?php if(get_setting('classified_product') == 1): ?>
  133. <li class="aiz-side-nav-item">
  134. <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'])); ?>">
  135. <i class="lab la-sketch aiz-side-nav-icon"></i>
  136. <span class="aiz-side-nav-text"><?php echo e(translate('Classified Products')); ?></span> </a>
  137. </li>
  138. <?php endif; ?>
  139. <?php if(get_setting('conversation_system') == 1): ?>
  140. <li class="aiz-side-nav-item">
  141. <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">
  142. <i class="las la-comment aiz-side-nav-icon"></i>
  143. <span class="aiz-side-nav-text"><?php echo e(translate('Conversations')); ?></span>
  144. <span class="badge badge-danger badge-circle badge-sm badge-dot" id="conversations" style="display: none"> </span>
  145. </a>
  146. </li>
  147. <?php endif; ?>
  148. <?php if(get_setting('wallet_system') == 1): ?>
  149. <li class="aiz-side-nav-item">
  150. <a href="<?php echo e(route('wallet.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['wallet.index'])); ?>">
  151. <i class="las la-dollar-sign aiz-side-nav-icon"></i>
  152. <span class="aiz-side-nav-text"><?php echo e(translate('My Wallet')); ?></span> </a>
  153. </li>
  154. <?php endif; ?>
  155. <?php if(addon_is_activated('club_point')): ?>
  156. <li class="aiz-side-nav-item">
  157. <a href="<?php echo e(route('earnng_point_for_user')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['earnng_point_for_user'])); ?>">
  158. <i class="las la-dollar-sign aiz-side-nav-icon"></i>
  159. <span class="aiz-side-nav-text"><?php echo e(translate('Earning Points')); ?></span> </a>
  160. </li>
  161. <?php endif; ?>
  162. <li class="aiz-side-nav-item">
  163. <a href="<?php echo e(route('user_invitation_code')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['user_invitation_code'])); ?>">
  164. <i class="las la-atom aiz-side-nav-icon"></i>
  165. <span class="aiz-side-nav-text"><?php echo e(translate('Invitation')); ?></span> </a>
  166. </li>
  167. <?php if(addon_is_activated('affiliate_system') && Auth::user()->affiliate_user != NULL && Auth::user()->affiliate_user->status): ?>
  168. <li class="aiz-side-nav-item">
  169. <a href="javascript:void(0);" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['affiliate.user.index', 'affiliate.payment_settings'])); ?>">
  170. <i class="las la-dollar-sign aiz-side-nav-icon"></i>
  171. <span class="aiz-side-nav-text"><?php echo e(translate('Affiliate')); ?></span>
  172. <span class="aiz-side-nav-arrow"></span> </a>
  173. <ul class="aiz-side-nav-list level-2">
  174. <li class="aiz-side-nav-item">
  175. <a href="<?php echo e(route('affiliate.user.index')); ?>" class="aiz-side-nav-link">
  176. <span class="aiz-side-nav-text"><?php echo e(translate('Affiliate System')); ?></span>
  177. </a>
  178. </li>
  179. <li class="aiz-side-nav-item">
  180. <a href="<?php echo e(route('affiliate.user.payment_history')); ?>" class="aiz-side-nav-link">
  181. <span class="aiz-side-nav-text"><?php echo e(translate('Payment History')); ?></span>
  182. </a>
  183. </li>
  184. <li class="aiz-side-nav-item">
  185. <a href="<?php echo e(route('affiliate.user.withdraw_request_history')); ?>" class="aiz-side-nav-link">
  186. <span class="aiz-side-nav-text"><?php echo e(translate('Withdraw request history')); ?></span>
  187. </a>
  188. </li>
  189. </ul>
  190. </li>
  191. <?php endif; ?>
  192. <?php
  193. $support_ticket = DB::table('tickets')
  194. ->where('client_viewed', 0)
  195. ->where('user_id', Auth::user()->id)
  196. ->count();
  197. ?>
  198. <li class="aiz-side-nav-item">
  199. <a href="<?php echo e(route('support_ticket.index')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['support_ticket.index'])); ?>">
  200. <i class="las la-atom aiz-side-nav-icon"></i>
  201. <span class="aiz-side-nav-text"><?php echo e(translate('Support Ticket')); ?></span>
  202. <?php if($support_ticket > 0): ?>
  203. <span class="badge badge-inline badge-success"><?php echo e($support_ticket); ?></span> <?php endif; ?>
  204. </a>
  205. </li>
  206. <?php endif; ?>
  207. <li class="aiz-side-nav-item">
  208. <a href="/user/transaction" class="aiz-side-nav-link">
  209. <i class="las la-wallet aiz-side-nav-icon"></i>
  210. <span class="aiz-side-nav-text"><?php echo e(translate('Transaction password')); ?></span> </a>
  211. </li>
  212. <li class="aiz-side-nav-item">
  213. <a href="<?php echo e(route('profile')); ?>" class="aiz-side-nav-link <?php echo e(areActiveRoutes(['profile'])); ?>">
  214. <i class="las la-user aiz-side-nav-icon"></i>
  215. <span class="aiz-side-nav-text"><?php echo e(translate('Manage Profile')); ?></span> </a>
  216. </li>
  217. <?php endif; ?>
  218. </ul>
  219. </div>
  220. </div>
  221. <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%);">
  222. <a class="btn btn-sm p-2 d-flex align-items-center" href="<?php echo e(route('logout')); ?>">
  223. <i class="las la-sign-out-alt fs-18 mr-2"></i>
  224. <span><?php echo e(translate('Logout')); ?></span>
  225. </a>
  226. <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">
  227. <i class="las la-times la-2x"></i>
  228. </button>
  229. </div>
  230. </div>
  231. <script type="text/javascript">
  232. function getConversations(){
  233. $.ajax({
  234. type:"post",
  235. url:'<?php echo e(route('conversations.message_count')); ?>',
  236. success: function(data){
  237. if(data.result > 0){
  238. $('#conversations').show();
  239. }else{
  240. $('#conversations').hide();
  241. }
  242. }
  243. });
  244. }
  245. // setInterval(function (){
  246. // getConversations()
  247. // },1000)
  248. </script>
  249. <?php /**PATH /Users/shaoguo/Desktop/公司资料/小梦/商城/ebayShop/resources/views/frontend/inc/user_side_nav.blade.php ENDPATH**/ ?>