show old invoices

This commit is contained in:
omair saleh
2020-09-25 18:15:37 +08:00
parent ad2203e18a
commit f8d1cf7fd5
+1 -1
View File
@@ -24,7 +24,7 @@ Route::get('/old-invoices', function(){
});
echo "<h1>Total pending invoices:<b>".count($bookings)."</b></h1>";
foreach ($months as $month => $bookings) {
echo "<h3>".$month."</h3><br>";
echo "<h3>".$month."(".count($bookings).")</h3><br>";
foreach ($bookings as $booking) {
echo "<a target='_blank' href='https://exchange.cief-malaysia.com/booking/".$booking->id."/upload-invoice'>".$booking->id."</a> <small>date: ".$booking->created_at."</small><br>";
}