changed tgl cut off to 20

This commit is contained in:
Jagad R R
2025-01-14 12:01:54 +07:00
parent deeb8c7a68
commit 9f2260c611
6 changed files with 32 additions and 10 deletions
@@ -34,8 +34,8 @@ class FormOtherController extends Controller
$role = auth()->user()->getRoleNames()[0];
$forms = FormOthers::whereMonth('tanggal', date('m'))
->whereYear('tanggal', date('Y'))
->where('tanggal', '<=', date('Y-m-10'))
->whereRaw('DAY(CURDATE()) <= 10')
->where('tanggal', '<=', date('Y-m-20'))
->whereRaw('DAY(CURDATE()) <= 20')
->orderBy('tanggal', 'desc')
->get();