parent
commit
f1c018f2a1

+ 1
- 2
app/Filament/Resources/EsgHistoryResource.php View File

41
                     Select::make("selected_year")->label("年份")->options(function () {
41
                     Select::make("selected_year")->label("年份")->options(function () {
42
                         $currentYear = now()->year;
42
                         $currentYear = now()->year;
43
                         $years = [];
43
                         $years = [];
44
-                        // 從 10 年前到 5 年後
45
-                        for ($i = $currentYear - 10; $i <= $currentYear; $i++) {
44
+                        for ($i = $currentYear - 15; $i <= $currentYear + 5; $i++) {
46
                             $years[$i] = strval($i) . '年';
45
                             $years[$i] = strval($i) . '年';
47
                         }
46
                         }
48
 
47
 

+ 1
- 2
app/Filament/Resources/HistoryResource.php View File

43
                     Select::make("selected_year")->label("年份")->options(function () {
43
                     Select::make("selected_year")->label("年份")->options(function () {
44
                         $currentYear = now()->year;
44
                         $currentYear = now()->year;
45
                         $years = [];
45
                         $years = [];
46
-                        // 從 10 年前到 5 年後
47
-                        for ($i = $currentYear - 10; $i <= $currentYear; $i++) {
46
+                        for ($i = $currentYear - 15; $i <= $currentYear + 5; $i++) {
48
                             $years[$i] = strval($i) . '年';
47
                             $years[$i] = strval($i) . '年';
49
                         }
48
                         }
50
 
49