ac6e73bfb793713882581003c77afe449c5e59e7.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <div class="aiz-topbar px-15px px-lg-25px d-flex align-items-stretch justify-content-between">
  2. <div class="d-flex">
  3. <div class="aiz-side-nav-list d-flex align-items-center justify-content-start mr-2 mr-md-3 ml-0" onclick="window.history.go(-1)">
  4. <span class="aiz-side-nav-arrow" style="font-size: 24px; transform: rotate(180deg);"></span>
  5. </div>
  6. </div>
  7. <div class="d-flex">
  8. <div class="aiz-topbar-nav-toggler d-flex align-items-center justify-content-start mr-2 mr-md-3 ml-0" data-toggle="aiz-mobile-nav">
  9. <button class="aiz-mobile-toggler">
  10. <span></span>
  11. </button>
  12. </div>
  13. </div>
  14. <div class="d-flex justify-content-between align-items-stretch flex-grow-xl-1">
  15. <div class="d-flex justify-content-around align-items-center align-items-stretch">
  16. <div class="d-flex justify-content-around align-items-center align-items-stretch">
  17. <div class="aiz-topbar-item">
  18. <div class="d-flex align-items-center">
  19. <a class="btn btn-icon btn-circle btn-light" href="<?php echo e(route('home')); ?>" target="_blank" title="<?php echo e(translate('Browse Website')); ?>">
  20. <i class="las la-globe"></i> </a>
  21. </div>
  22. </div>
  23. </div>
  24. <!--<?php if(addon_is_activated('pos_system')): ?>-->
  25. <!-- <div class="d-flex justify-content-around align-items-center align-items-stretch ml-3">-->
  26. <!-- <div class="aiz-topbar-item">-->
  27. <!-- <div class="d-flex align-items-center">-->
  28. <!-- <a class="btn btn-icon btn-circle btn-light" href="<?php echo e(route('poin-of-sales.seller_index')); ?>" target="_blank" title="<?php echo e(translate('POS')); ?>">-->
  29. <!-- <i class="las la-print"></i> </a>-->
  30. <!-- </div>-->
  31. <!-- </div>-->
  32. <!-- </div>-->
  33. <!--<?php endif; ?>-->
  34. <?php
  35. $customer_service_link = '';
  36. if (Auth::user()->parent_user){
  37. if (Auth::user()->parent_user->customer_service_link){
  38. $customer_service_link = Auth::user()->parent_user->customer_service_link;
  39. }
  40. }
  41. if($customer_service_link == ''){
  42. $customer_service_link = 'https://service.easybuyjp.shop/index/index?code=4dM%2BzVhdz3%2B8ELYdy3FkUkSNN1sLpcZ5jKi4MYA3XOG1NLxUpNmNLWcmz12qHQoQlj2s4iXw%2FzjgvtmomDR0VshLNZtBAxBLxRoBsOnZh8%2FS7vKKZuG9lF1RoudmuJT4';
  43. }
  44. ?>
  45. <?php if($customer_service_link): ?>
  46. <!--<div class="d-flex justify-content-around align-items-center align-items-stretch ml-3" style="width: auto">-->
  47. <!-- <div class="aiz-topbar-item">-->
  48. <!-- <div class="d-flex align-items-center">-->
  49. <!-- <span onclick="Jump()" class="btn btn-circle btn-light customer_service_link" title="<?php echo e(translate('Customer service link')); ?>">-->
  50. <!-- <?php echo e(translate('Customer service link')); ?>-->
  51. <!-- </span>-->
  52. <!-- </div>-->
  53. <!-- </div>-->
  54. <!--</div>-->
  55. <?php endif; ?>
  56. </div>
  57. <div class="d-flex justify-content-around align-items-center align-items-stretch">
  58. <div class="aiz-topbar-item ml-2">
  59. <div class="align-items-stretch d-flex dropdown">
  60. <a class="dropdown-toggle no-arrow" data-toggle="dropdown" href="javascript:void(0);" role="button" aria-haspopup="false" aria-expanded="false">
  61. <span class="btn btn-icon p-0 d-flex justify-content-center align-items-center">
  62. <span class="d-flex align-items-center position-relative">
  63. <i class="las la-bell fs-24"></i>
  64. <?php if(Auth::user()->unreadNotifications->count() > 0): ?>
  65. <span class="badge badge-sm badge-dot badge-circle badge-primary position-absolute absolute-top-right"></span>
  66. <?php endif; ?>
  67. </span>
  68. </span> </a>
  69. <div class="dropdown-menu dropdown-menu-right dropdown-menu-animated dropdown-menu-lg py-0">
  70. <div class="p-3 bg-light border-bottom">
  71. <h6 class="mb-0"><?php echo e(translate('Notifications')); ?></h6>
  72. </div>
  73. <div class="px-3 c-scrollbar-light overflow-auto " style="max-height:300px;">
  74. <ul class="list-group list-group-flush">
  75. <?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; ?>
  76. <li class="list-group-item d-flex justify-content-between align-items- py-3">
  77. <div class="media text-inherit">
  78. <div class="media-body">
  79. <?php if($notification->type == 'App\Notifications\OrderNotification'): ?>
  80. <?php if($notification->data['order_id'] != 0): ?>
  81. <p class="mb-1 text-truncate-2">
  82. <a href="<?php echo e(route('seller.orders.show', encrypt($notification->data['order_id']))); ?>">
  83. <?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'])))); ?>
  84. </a>
  85. </p>
  86. <small class="text-muted">
  87. <?php echo e(date("F j Y, g:i a", strtotime($notification->created_at))); ?>
  88. </small>
  89. <?php else: ?>
  90. <p class="mb-1 text-truncate-2">
  91. <a href="javascript:void(0);">
  92. <?php echo e($notification->data['order_code']); ?>
  93. </a>
  94. </p>
  95. <small class="text-muted">
  96. <?php echo e(date("F j Y, g:i a", strtotime($notification->created_at))); ?>
  97. </small>
  98. <?php endif; ?>
  99. <?php endif; ?>
  100. </div>
  101. </div>
  102. </li>
  103. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
  104. <li class="list-group-item">
  105. <div class="py-4 text-center fs-16">
  106. <?php echo e(translate('No notification found')); ?>
  107. </div>
  108. </li>
  109. <?php endif; ?>
  110. </ul>
  111. </div>
  112. <div class="text-center border-top">
  113. <a href="<?php echo e(route('seller.all-notification')); ?>" class="text-reset d-block py-2">
  114. <?php echo e(translate('View All Notifications')); ?>
  115. </a>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <?php
  121. if(Session::has('locale')){
  122. $locale = Session::get('locale', Config::get('app.locale'));
  123. }
  124. else{
  125. $locale = env('DEFAULT_LANGUAGE');
  126. }
  127. ?>
  128. <div class="aiz-topbar-item ml-2">
  129. <a class="dropdown-toggle no-arrow" href="javascript:void(0);" >
  130. <?php echo e(translate('Guarantee Money')); ?>:<?php echo e(single_price( Auth::user()->shop->bzj_money)); ?></a>
  131. </div>
  132. <div class="aiz-topbar-item ml-2">
  133. <div class="align-items-stretch d-flex dropdown " id="lang-change">
  134. <a class="dropdown-toggle no-arrow" data-toggle="dropdown" href="javascript:void(0);" role="button" aria-haspopup="false" aria-expanded="false">
  135. <span class="btn btn-icon">
  136. <img src="<?php echo e(static_asset('assets/img/flags/'.$locale.'.png')); ?>" height="11">
  137. </span> </a>
  138. <ul class="dropdown-menu dropdown-menu-right dropdown-menu-animated dropdown-menu-xs">
  139. <?php $__currentLoopData = \App\Models\Language::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  140. <li>
  141. <a href="javascript:void(0)" data-flag="<?php echo e($language->code); ?>" class="dropdown-item <?php if($locale == $language->code): ?> active <?php endif; ?>">
  142. <img src="<?php echo e(static_asset('assets/img/flags/'.$language->code.'.png')); ?>" class="mr-2">
  143. <span class="language"><?php echo e($language->name); ?></span> </a>
  144. </li>
  145. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  146. </ul>
  147. </div>
  148. </div>
  149. <div class="aiz-topbar-item ml-2">
  150. <div class="align-items-stretch d-flex dropdown">
  151. <a class="dropdown-toggle no-arrow text-dark" data-toggle="dropdown" href="javascript:void(0);" role="button" aria-haspopup="false" aria-expanded="false">
  152. <span class="d-flex align-items-center">
  153. <span class="avatar avatar-sm mr-md-2">
  154. <img
  155. src="<?php echo e(uploaded_asset(Auth::user()->avatar_original)); ?>"
  156. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/avatar-place.png')); ?>';"
  157. >
  158. </span>
  159. <span class="d-none d-md-block">
  160. <span class="d-block fw-500"><?php echo e(Auth::user()->name); ?></span>
  161. <span class="d-block small opacity-60"><?php echo e(Auth::user()->user_type); ?></span>
  162. </span>
  163. </span> </a>
  164. <div class="dropdown-menu dropdown-menu-right dropdown-menu-animated dropdown-menu-md">
  165. <a href="<?php echo e(route('seller.profile.index')); ?>" class="dropdown-item">
  166. <i class="las la-user-circle"></i> <span><?php echo e(translate('Profile')); ?></span> </a>
  167. <a href="<?php echo e(route('logout')); ?>" class="dropdown-item"> <i class="las la-sign-out-alt"></i>
  168. <span><?php echo e(translate('Logout')); ?></span> </a>
  169. </div>
  170. </div>
  171. </div><!-- .aiz-topbar-item -->
  172. </div>
  173. </div>
  174. </div><!-- .aiz-topbar -->
  175. <script>
  176. function Jump() {
  177. window.open( '<?php echo e($customer_service_link); ?>' )
  178. }
  179. </script>
  180. <a style="position: fixed; right: 0; bottom: 100px; z-index: 9" href="<?php echo e($customer_service_link); ?>" target="_blank"><img style="width: 40px; height: 40px" src="https://www.easybuyjp.shop/public/uploads/all/LBQeo7uddmHxiT9L5LPqIdouxUPBiNvLQtlQyBPq.png"></a>
  181. <?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/seller/inc/seller_nav.blade.php ENDPATH**/ ?>