This commit is contained in:
paoloar77
2024-06-13 12:47:31 +02:00
parent d1f8d3fbe0
commit 4b47528ee5

View File

@@ -282,9 +282,8 @@ function showDettOrdini()
{ {
$str = "Ordini"; $str = "Ordini";
$orders = Order::orderBy('DataOra', 'desc')->take(2)->get();
try { try {
$orders = Order::orderBy('DataOra', 'desc')->take(2)->get();
// Show the fields of the orders // Show the fields of the orders
foreach ($orders as $order) { foreach ($orders as $order) {