show old invoices

This commit is contained in:
omair saleh
2020-09-25 18:06:46 +08:00
parent aeae631dbb
commit 658c90e5ff
+1 -1
View File
@@ -20,7 +20,7 @@ Route::get('/old-invoices', function(){
$q->whereNotNull('image_path');
})->get();
dd($bookings->groupBy(function($item) {
return Carbon::createFromFormat('Y-m-d', $item->date)->format('Y-W');
return Carbon::createFromFormat('Y-m-d', $item->created_at)->format('Y-W');
}));
echo "<h1>Total pending invoices:<b>".count($bookings)."</b></h1>";
foreach ($bookings as $booking) {