8fe0151527be45c7bf7e9167f5d9650ba9ad07e4.php 9.7 KB

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