show old invoices

This commit is contained in:
omair saleh
2020-09-25 17:26:55 +08:00
parent af66074c9a
commit a2170ea845
+1 -1
View File
@@ -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 "<h1>Total pending invoices:<b>".count($bookings)."</b></h1>";
foreach ($bookings as $booking) {
echo "<a href='https://exchange.cief-malaysia.com/booking/".$booking->id."/upload-invoice'>".$booking->id."</a><br>";
}