diff --git a/routes/web.php b/routes/web.php index 07c52253..f0d13b86 100644 --- a/routes/web.php +++ b/routes/web.php @@ -150,7 +150,7 @@ Route::get('/export/wallet-transactions/f614e339d7058904a831aad742e24d55', 'Expo Route::get('/products', function (\App\Classes\Modules\Exports\Services\ExportsProducts $exportsProducts) { $bookings = Booking::where(function($query){ - return $query->whereMonth('created_at', 7)->whereMonth('created_at', 8)->whereMonth('created_at', 9)->whereMonth('created_at', 10)->whereMonth('created_at', 11)->whereMonth('created_at', 12); + return $query->whereMonth('created_at', 7)->orWhereMonth('created_at', 8)->orWhereMonth('created_at', 9)->orWhereMonth('created_at', 10)->orWhereMonth('created_at', 11)->orWhereMonth('created_at', 12); })->whereDoesntHave('transactions', function($q){ $q->where('type', TransactionType::PURCHASE_ORDER); $q->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]);