show old invoices

This commit is contained in:
omair saleh
2020-09-25 18:08:34 +08:00
parent 658c90e5ff
commit 64287b183c
+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->created_at)->format('Y-W');
return $item->created_at->format('m');
}));
echo "<h1>Total pending invoices:<b>".count($bookings)."</b></h1>";
foreach ($bookings as $booking) {