diff --git a/routes/web.php b/routes/web.php index a4b5692d..94bfd44d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -29,9 +29,7 @@ Route::get('/po-approval', function(){ foreach ($invoices as $invoice){ echo "".$invoice->invoice->booking->id."
"; } - $bookings = Booking::where('admin_status', 6)->whereDoesntHave('purchaseOrder')->orWhereDoesntHave('invoice', function($q){ - $q->where('invoice_path', '=', '')->orWhereNull('invoice_path'); - })->get(); + $bookings = Booking::where('admin_status', 6)->whereDoesntHave('purchaseOrder')->get(); echo "

Total Po Pending Customer Update: ".count($bookings)."

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