From a2170ea84504b5ad6199f84e777ddd4ff4be2a19 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 25 Sep 2020 17:26:55 +0800 Subject: [PATCH] show old invoices --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 0f927694..bd6cbf1a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -17,7 +17,7 @@ Route::get('/old-invoices', function(){ $bookings = \App\Booking::select('id')->where('status', 6)->whereHas('purchaseOrder', function($q){ $q->whereNotNull('image_path'); })->get(); - + echo "

Total pending invoices:".count($bookings)."

"; foreach ($bookings as $booking) { echo "".$booking->id."
"; }