show old invoices

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