From 4f405fdec05a29b6a65ed22e611f4cff452d474c Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 3 Jan 2022 18:18:03 +0800 Subject: [PATCH] 1688 data --- routes/web.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index aa98a370..b8baf641 100644 --- a/routes/web.php +++ b/routes/web.php @@ -99,6 +99,7 @@ Route::get('/1688', function (Request $request) { foreach ($bookings as $booking){ $sum += $booking->transactions()->whereMonth('created_at', 11)->where('type', 1)->whereIn('status', [\App\Classes\ValueObjects\Constants\ApprovalStatus::APPROVED, \App\Classes\ValueObjects\Constants\ApprovalStatus::COMPLETED])->sum('amount'); } -; + + dd($sum); })->name('x2.data'); \ No newline at end of file