removed closing date and add it into env
This commit is contained in:
@@ -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-20'))
|
||||
->whereRaw('DAY(CURDATE()) <= 20')
|
||||
->where('tanggal', '<=', date('Y-m-' . env('CLOSING_DATE')))
|
||||
->whereRaw('DAY(CURDATE()) <= ' . env('CLOSING_DATE'))
|
||||
->orderBy('tanggal', 'desc')
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user