<?php
  $all_notifications = auth()->user()->notifications;
  $unread_notifications = $all_notifications->where('read_at', null);
  $total_unread = count($unread_notifications);
?>
<!-- Notifications: style can be found in dropdown.less -->
<li class="dropdown notifications-menu">
  <a href="#" class="dropdown-toggle load_notifications" data-toggle="dropdown" id="show_unread_notifications" data-loaded="false">
    <i class="fas fa-bell"></i>
    <span class="label label-warning notifications_count"><?php if(!empty($total_unread)): ?><?php echo e($total_unread, false); ?><?php endif; ?></span>
  </a>
  <ul class="dropdown-menu">
    <!-- <li class="header">You have 10 unread notifications</li> -->
    <li>
      <!-- inner menu: contains the actual data -->

      <ul class="menu" id="notifications_list">
      </ul>
    </li>
    
    <?php if(count($all_notifications) > 10): ?>
      <li class="footer load_more_li">
        <a href="#" class="load_more_notifications"><?php echo app('translator')->getFromJson('lang_v1.load_more'); ?></a>
      </li>
    <?php endif; ?>
  </ul>
</li>

<input type="hidden" id="notification_page" value="1"><?php /**PATH /home/vmpagrib/pos.vmpagribusiness.lk/resources/views/layouts/partials/header-notifications.blade.php ENDPATH**/ ?>