Update FormOtherController.php
This commit is contained in:
@@ -35,8 +35,6 @@ class FormOtherController extends Controller
|
|||||||
$startDate = date('Y-m-' . env('STARTING_DATE')); // Starting date from .env for the current month
|
$startDate = date('Y-m-' . env('STARTING_DATE')); // Starting date from .env for the current month
|
||||||
$closingDateNextMonth = date('Y-m-', strtotime('+1 month')) . env('CLOSING_DATE'); // Closing date for the next month
|
$closingDateNextMonth = date('Y-m-', strtotime('+1 month')) . env('CLOSING_DATE'); // Closing date for the next month
|
||||||
|
|
||||||
dd($startDate, $closingDateNextMonth);
|
|
||||||
|
|
||||||
$forms = FormOthers::whereBetween('tanggal', [$startDate, $closingDateNextMonth])
|
$forms = FormOthers::whereBetween('tanggal', [$startDate, $closingDateNextMonth])
|
||||||
->orderBy('tanggal', 'desc')
|
->orderBy('tanggal', 'desc')
|
||||||
->with('user')
|
->with('user')
|
||||||
@@ -76,7 +74,6 @@ class FormOtherController extends Controller
|
|||||||
$forms = $forms;
|
$forms = $forms;
|
||||||
}
|
}
|
||||||
|
|
||||||
dd($forms);
|
|
||||||
session()->put('redirect_url', route('forms.other'));
|
session()->put('redirect_url', route('forms.other'));
|
||||||
return view('backend.pages.forms.other.index', [
|
return view('backend.pages.forms.other.index', [
|
||||||
'forms' => $forms,
|
'forms' => $forms,
|
||||||
|
|||||||
Reference in New Issue
Block a user