parent
commit
f1c018f2a1

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

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

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

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