<?php 
$alertArray = AlertController::birthdayAlert();
$count = $alertArray['count'];
$customer_dob = $alertArray['customer_dob'];
if ($count > 0) {
    $alert_icon = 'icon-animated-bell';
    $counter_color = 'badge-warning';
} else {
    $alert_icon = '';
    $counter_color = 'badge-grey';
}
?>

   <a href="#" class="dropdown-toggle" data-toggle="dropdown">
      <i class="icon-gift {{$alert_icon}}"></i>
      <span class="badge {{$counter_color}} counter_birthday {{Session::get('birthdayalert_sound', '')}}">{{$count}}</span>
    </a>
  <ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-closer list_birthday">
    @include('birthday_list')
  </ul>

  <script type="text/javascript">
  $(document).ready(function(){

    //This is a Sound notification reminder
       if( $('#birthdayAlert .counter_birthday').text() > 0 ){
           setInterval(function(){ 
            if( $('#birthdayAlert .counter_birthday').hasClass('stopsound') === false ){
             soundNotification('s3whistle');
            }
          }, 60000); //5mins sound reminder
<?php

include_once '../user/User.php';
include_once '../user/userAdmin/UserAdmin.php';
include_once '../user/userGeneral/UserGeneral.php';
include_once '../user/userPublisher/UserPublisher.php';
include_once '../user/userType/UserTypeEnum.php';
include_once '../user/UserFactory.php';
session_start();
include_once 'AlertController.php';
$controller = new AlertController();
$controller->invoke();
 <?php 
$msgArray = AlertController::unreadInboxMessageAlert('all');
$count = $msgArray['count'];
$messages = $msgArray['messages'];
if ($count > 0) {
    $alert_icon = 'icon-animated-vertical';
    $counter_color = 'badge-success';
} else {
    $alert_icon = '';
    $counter_color = 'badge-grey';
}
?>
         <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <i class="icon-envelope {{$alert_icon}}"></i>
            <span class="badge {{$counter_color}} counter_messagealert">{{$count}}</span>
          </a>

          <ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-closer list_messagealert">
            @include('messagealert_list')
          </ul>

<script type="text/javascript">
$(document).ready(function(){

    //This is the counter for messagealert update
    //setInterval(function(){ 
     // $.get("{{URL::route('unreadinboxmessagealert_count')}}", function(data){
     //       $('#messageAlert .counter_messagealert').text(data.msgcount)
     // });
    //}, 10000); //10secs
<?php

include_once 'AlertController.php';
$controller = new AlertController();
$controller->sendAlerts();
  <?php 
$alertArray = AlertController::productAlmostOutOfStock('all');
$count = $alertArray['count'];
$products = $alertArray['products'];
if ($count > 0) {
    $alert_icon = 'icon-animated-bell';
    $counter_color = 'badge-important';
} else {
    $alert_icon = '';
    $counter_color = 'badge-grey';
}
?>

   <a href="#" class="dropdown-toggle" data-toggle="dropdown">
      <i class="icon-bell-alt {{$alert_icon}}"></i>
      <span class="badge {{$counter_color}} counter_outofstock">{{$count}}</span>
    </a>
  <ul class="pull-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-closer list_outofstock">
    @include('almostoutofstock_list')
  </ul>
  
<script>
$(document).ready(function(){
    //This is to load the stock alert items when clicked on the alert
    $(this).on('click', '#productAlert > a', function(e){
      if( $('#productAlert').hasClass('open') === true )
      $('#productAlert .list_outofstock').load("{{URL::route('outofstockwarning_list')}}")
    });

    $(this).on('click', "a[modal-data='view_all_stockalert']", function(){
        //var url;