mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-21 13:24:27 +00:00
show old invoices
This commit is contained in:
+4
-1
@@ -17,7 +17,10 @@ Route::get('/old-invoices', function(){
|
||||
$bookings = \App\Booking::select('id')->where('status', 6)->whereHas('invoice', function($q){
|
||||
$q->whereNotNull('invoice_path');
|
||||
})->get();
|
||||
dd($bookings);
|
||||
|
||||
foreach ($bookings as $booking) {
|
||||
echo "<a href='https://exchange.cief-malaysia.com/booking/".$booking->id."/upload-invoice'>".$booking->id."</a><br>";
|
||||
}
|
||||
})->name('home');
|
||||
Route::group(['middleware' => ['role:admin']], function() {
|
||||
Route::get('bulkBookings', function () {
|
||||
|
||||
Reference in New Issue
Block a user