show old invoices

This commit is contained in:
omair saleh
2020-09-25 17:23:11 +08:00
parent d50fae2bbc
commit e71340c5dd
+1 -1
View File
@@ -15,7 +15,7 @@ Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm
Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('password.reset');
Route::get('/old-invoices', function(){
$bookings = \App\Booking::select('id')->where('status', 6)->whereHas('purchaseOrder', function($q){
$q->whereNotNull('invoice_path');
$q->whereNotNull('image_url');
})->get();
foreach ($bookings as $booking) {