Showing image if specific criteria is met in Laravel

I am completely new at Laravel and I am making a dashboard. On this dashboard I want to show an image of a tick if the lastdatasync(timestamp data type) records are within the last 24hrs. if it is more than 24hrs(say last week) then the image of an X will show. I have done the sql command for this but I am not sure where to place it in the project.

sql:

select count(*) as failed from stores where isactive=1 and date_add(currentdatasync, INTERVAL 1 DAY) < Now() 


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3efbqNg
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

How to Create Treeview with Bootstrap and jQuery

jQuery Datatables with PHP, MySQL and AJAX Example

How to Add Images to Dropdown List using jQuery