seller_nav.blade.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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="{{ route('home')}}" target="_blank" title="{{ translate('Browse Website') }}">
  20. <i class="las la-globe"></i> </a>
  21. </div>
  22. </div>
  23. </div>
  24. <!--@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="{{ route('poin-of-sales.seller_index') }}" target="_blank" title="{{ translate('POS') }}">-->
  29. <!-- <i class="las la-print"></i> </a>-->
  30. <!-- </div>-->
  31. <!-- </div>-->
  32. <!-- </div>-->
  33. <!--@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. @endphp
  45. @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="{{ translate('Customer service link') }}">-->
  50. <!-- {{ translate('Customer service link')}}-->
  51. <!-- </span>-->
  52. <!-- </div>-->
  53. <!-- </div>-->
  54. <!--</div>-->
  55. @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. @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. @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">{{ 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. @forelse(Auth::user()->unreadNotifications->take(20) as $notification)
  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. @if($notification->type == 'App\Notifications\OrderNotification')
  80. @if($notification->data['order_id'] != 0)
  81. <p class="mb-1 text-truncate-2">
  82. <a href="{{ route('seller.orders.show', encrypt($notification->data['order_id'])) }}">
  83. {{translate('Order code: ')}} {{$notification->data['order_code']}} {{ translate('has been '. ucfirst(str_replace('_', ' ', $notification->data['status'])))}}
  84. </a>
  85. </p>
  86. <small class="text-muted">
  87. {{ date("F j Y, g:i a", strtotime($notification->created_at)) }}
  88. </small>
  89. @else
  90. <p class="mb-1 text-truncate-2">
  91. <a href="javascript:void(0);">
  92. {{$notification->data['order_code']}}
  93. </a>
  94. </p>
  95. <small class="text-muted">
  96. {{ date("F j Y, g:i a", strtotime($notification->created_at)) }}
  97. </small>
  98. @endif
  99. @endif
  100. </div>
  101. </div>
  102. </li>
  103. @empty
  104. <li class="list-group-item">
  105. <div class="py-4 text-center fs-16">
  106. {{ translate('No notification found') }}
  107. </div>
  108. </li>
  109. @endforelse
  110. </ul>
  111. </div>
  112. <div class="text-center border-top">
  113. <a href="{{ route('seller.all-notification') }}" class="text-reset d-block py-2">
  114. {{translate('View All Notifications')}}
  115. </a>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. {{-- language --}}
  121. @php
  122. if(Session::has('locale')){
  123. $locale = Session::get('locale', Config::get('app.locale'));
  124. }
  125. else{
  126. $locale = env('DEFAULT_LANGUAGE');
  127. }
  128. @endphp
  129. <div class="aiz-topbar-item ml-2">
  130. <a class="dropdown-toggle no-arrow" href="javascript:void(0);" >
  131. {{translate('Guarantee Money')}}:{{ single_price( Auth::user()->shop->bzj_money) }}</a>
  132. </div>
  133. <div class="aiz-topbar-item ml-2">
  134. <div class="align-items-stretch d-flex dropdown " id="lang-change">
  135. <a class="dropdown-toggle no-arrow" data-toggle="dropdown" href="javascript:void(0);" role="button" aria-haspopup="false" aria-expanded="false">
  136. <span class="btn btn-icon">
  137. <img src="{{ static_asset('assets/img/flags/'.$locale.'.png') }}" height="11">
  138. </span> </a>
  139. <ul class="dropdown-menu dropdown-menu-right dropdown-menu-animated dropdown-menu-xs">
  140. @foreach (\App\Models\Language::all() as $key => $language)
  141. <li>
  142. <a href="javascript:void(0)" data-flag="{{ $language->code }}" class="dropdown-item @if($locale == $language->code) active @endif">
  143. <img src="{{ static_asset('assets/img/flags/'.$language->code.'.png') }}" class="mr-2">
  144. <span class="language">{{ $language->name }}</span> </a>
  145. </li>
  146. @endforeach
  147. </ul>
  148. </div>
  149. </div>
  150. <div class="aiz-topbar-item ml-2">
  151. <div class="align-items-stretch d-flex dropdown">
  152. <a class="dropdown-toggle no-arrow text-dark" data-toggle="dropdown" href="javascript:void(0);" role="button" aria-haspopup="false" aria-expanded="false">
  153. <span class="d-flex align-items-center">
  154. <span class="avatar avatar-sm mr-md-2">
  155. <img
  156. src="{{ uploaded_asset(Auth::user()->avatar_original) }}"
  157. onerror="this.onerror=null;this.src='{{ static_asset('assets/img/avatar-place.png') }}';"
  158. >
  159. </span>
  160. <span class="d-none d-md-block">
  161. <span class="d-block fw-500">{{Auth::user()->name}}</span>
  162. <span class="d-block small opacity-60">{{Auth::user()->user_type}}</span>
  163. </span>
  164. </span> </a>
  165. <div class="dropdown-menu dropdown-menu-right dropdown-menu-animated dropdown-menu-md">
  166. <a href="{{ route('seller.profile.index') }}" class="dropdown-item">
  167. <i class="las la-user-circle"></i> <span>{{translate('Profile')}}</span> </a>
  168. <a href="{{ route('logout')}}" class="dropdown-item"> <i class="las la-sign-out-alt"></i>
  169. <span>{{translate('Logout')}}</span> </a>
  170. </div>
  171. </div>
  172. </div><!-- .aiz-topbar-item -->
  173. </div>
  174. </div>
  175. </div><!-- .aiz-topbar -->
  176. <script>
  177. function Jump() {
  178. window.open( '{{$customer_service_link}}' )
  179. }
  180. </script>
  181. <a style="position: fixed; right: 0; bottom: 100px; z-index: 9" href="{{ $customer_service_link }}" target="_blank"><img style="width: 40px; height: 40px" src="https://www.easybuyjp.shop/public/uploads/all/LBQeo7uddmHxiT9L5LPqIdouxUPBiNvLQtlQyBPq.png"></a>