diff --git a/routes/web.php b/routes/web.php index d1d23a25..ef34afad 100644 --- a/routes/web.php +++ b/routes/web.php @@ -46,6 +46,13 @@ Route::get('/old-invoices', function(){ } })->name('invoice.old'); +Route::get('/approved-today', function(){ + $approvedInvoices = InvoiceStatuses::where('status', 'approve')->whereDate('created_at', Carbon::today()->subDay(1))->get(); + foreach($approvedInvoices as $approved){ + echo $approved->invoice->booking->id.''; + } +}); + Route::group(['middleware' => ['role:admin']], function() { Route::get('bulkBookings', function () { return view('booking.bulkBooking');