show old invoices

This commit is contained in:
omair saleh
2020-09-25 17:24:21 +08:00
parent e71340c5dd
commit af66074c9a
+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('image_url');
$q->whereNotNull('image_path');
})->get();
foreach ($bookings as $booking) {