From 785540d60cb0183926037bc4ddce06bd9a72e1b8 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 25 Sep 2020 17:18:07 +0800 Subject: [PATCH] show old invoices --- routes/web.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 41da1ad6..7f80c2fc 100644 --- a/routes/web.php +++ b/routes/web.php @@ -17,7 +17,10 @@ Route::get('/old-invoices', function(){ $bookings = \App\Booking::select('id')->where('status', 6)->whereHas('invoice', function($q){ $q->whereNotNull('invoice_path'); })->get(); - dd($bookings); + + foreach ($bookings as $booking) { + echo "".$booking->id."
"; + } })->name('home'); Route::group(['middleware' => ['role:admin']], function() { Route::get('bulkBookings', function () {