add status in opname datatable with order by created at desc
This commit is contained in:
@@ -26,7 +26,8 @@ class ProductsController extends Controller
|
||||
{
|
||||
$menu = Menu::where('link','products.index')->first();
|
||||
if($request->ajax()){
|
||||
$data = Product::with(['category', 'stocks']);
|
||||
$data = Product::with(['category', 'stocks'])
|
||||
->orderBy('id', 'desc');
|
||||
return DataTables::of($data)
|
||||
->addIndexColumn()
|
||||
->addColumn('category_name', function ($row) {
|
||||
|
||||
Reference in New Issue
Block a user