def card_class(index:)
      classname = "panel-default"
      classname = "panel-default bg-muted" if model.read

      if index <= unread_notifications_count
        classname = "panel-success bg-success"
      end

      classname
    end
def card_class(index:)
      classname = "panel-default"
      classname = "panel-default bg-muted" if model.read

      if index <= unread_notifications_count
        classname = "panel-success bg-success"
      end

      classname
    end
Define presentation-specific methods here. Helpers are accessed through
 `helpers` (aka `h`). You can override attributes, for example:

   def created_at
     helpers.tag.span(class: 'time') do
       object.created_at.strftime("%a %m/%d/%y")
     end
   end

 Return the CSS class for the notification

 @param index: [Integer] Index of the item in the enum

 @return [type] [description]