Skip to content

How to display if a customer is offline/online or loggedIn/loggedOut in custom column in customer grid?

I want to display value based on customer if a customer is online on fronted, then it shows online in custom column in customer grid and if it is offline or logged out then shows offline in same custom column in customer grid
in below picture in Customer Online status it should display online is a customer is online and offline if a customer is offline
enter image description here