diff --git a/routes/web.php b/routes/web.php
index 74ade876..825616f6 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -47,7 +47,7 @@ Route::get('/old-invoices', function(){
})->name('invoice.old');
Route::get('/approved-today', function(){
- $approvedInvoices = InvoiceStatuses::where('status', 'approve')->whereDate('created_at', Carbon::today())->groupBy('invoice_id')->get();
+ $approvedInvoices = InvoiceStatuses::where('status', 'approve')->whereDate('created_at', Carbon::today())->distinct('invoice_id')->get();
echo count($approvedInvoices).'
';
foreach($approvedInvoices as $approved){
echo $approved->invoice->booking->id.'
';