How to view order by dec in Laravel? - laravel-5

I want to view data order by dec by class_id. But it's not working.
Here is my code:
$posts=Status::where('class_id',$id)->get();
Now what is the right formet to solved it?

Related

How can I apply Data validation and conditional formatting on the drop down list?

I want to add data validation for a list of dates (Jan 1st 2023 to December 31st 2023) to a column. When the user click on the drop down. I want them to see the Current day date highlighted. How can i do this?
I have added the necessary data validation rule to the column. Clicking on the date column, I want it to do something like what I have in the picture below.
That blue color is not an highlight. It's my cursor

Laravel Backpack Update Datatable via ajax when select field change

i am new to laravel backpack. I have a view where i have to show some details of a category, i have a dropdown list of categories on top and datatable below it listing all the details i want to update this data table when any category is selected and I want it use ajax so that it wont load the page again. I was unable to get any clue in the documents. Can someone point me to the correct way to implement this. Thank you in advance!
In Laravel backpack v4 as far I know you can use the variable crud and by calling this crud.table.draw()
You can see the file in datatables_logic.blade.php.
JQuery(document).ready(function($){
crud.table = $("#crudTable").DataTable(crud.dataTableConfiguration);
...
)}

Amcharts hides last date on stock type

I use Amcharts to display stock data. Although I have updated the last data for chart (27 Dec 2018), the chart only displays data to 24 Dec 2018. I don't know how to configure it. Please help me.
Best regards.
Here is the image of my chart

how can i trace if there is existing value in listview except the line that is editing VB6

my problem is how can i detect if there is existing value in the listview except the one that you will edit?
For Example of data in listview:
01 ALARM1 10:00:00 AM
02 ALARM2 11:00:00 AM
03 ALARM3 12:00:00 PM
what if i click the line ALARM2 to edit but i`ve change my mind and click the save button without anything changes. the program will not detect it has duplicate. but if i change the value of ALARM2 into ALARM3 with the same time, it will detect as duplication. thanks for the help guys.
To validate your List control data, you can implement the Validate event in order to control and maintain the coherency of your data.
Private Sub listControl_Validate(Cancel As Boolean)
If duplicate in my control Then
Cancel=True
Else
Cancel=False
End If
End Sub

CakePHP display updated table of data using ajax

I'm having real trouble finding any documentation on this.
I have a page that displays a list of users, above this i can edit the users successfuly with ajax. After the update, i want the table below to be updated with the new information.
How do i go about doing this? I'm thinking i need some sort of view that displays the data in a table, and i want to get that view's contents and inject it into my page, but i can't seem to find out how?
Can anyone point me in the right direction please
Put users table in div id like "Users" and do something like following in edit ajax success function call
$("#users").load("same_page_url #users");

Resources