mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 12:24:09 +00:00
show old invoices
This commit is contained in:
+1
-1
@@ -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::where('status', 6)->whereHas('purchaseOrder', function($q){
|
||||
$bookings = \App\Booking::select(DB::raw('*'),DB::raw('YEAR(created_at) year, MONTH(created_at) month'))->where('status', 6)->whereHas('purchaseOrder', function($q){
|
||||
$q->whereNotNull('image_path');
|
||||
})->groupby('year','month')->get();
|
||||
dd($bookings);
|
||||
|
||||
Reference in New Issue
Block a user