I have a dashboard view and I want to show the status if the updated_at
records in that table is before > the last 24hrs, so if a date on the table is 24 hrs and 1 min ago, the dot should be red but if it is within the last 24 hours, it will show the green dot.
I have some code that was used to show online status of a logged in user. Is it possible to modify to suit my use case?
.logged-in {
color: green;
}
.logged-out {
color: red;
}
<span class="logged-in">●</span>
<span class="logged-out">●</span>
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3kmQzvB
via IFTTT
Aucun commentaire:
Enregistrer un commentaire