show old invoices

This commit is contained in:
omair saleh
2020-09-25 17:22:26 +08:00
parent 785540d60c
commit d50fae2bbc
+1 -1
View File
@@ -14,7 +14,7 @@ Route::get('/', 'WelcomeController@index');
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.request');
Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('password.reset');
Route::get('/old-invoices', function(){
$bookings = \App\Booking::select('id')->where('status', 6)->whereHas('invoice', function($q){
$bookings = \App\Booking::select('id')->where('status', 6)->whereHas('purchaseOrder', function($q){
$q->whereNotNull('invoice_path');
})->get();