|
|
@@ -107,7 +107,8 @@ class ProjectResource extends Resource
|
|
107
|
107
|
->required(),
|
|
108
|
108
|
])
|
|
109
|
109
|
->reorderableWithButtons()
|
|
110
|
|
- ->defaultItems(0),
|
|
|
110
|
+ ->defaultItems(0)
|
|
|
111
|
+ ->visible(fn($get) => $get('badge_type') == 1),
|
|
111
|
112
|
Repeater::make('badgesAward')->label('取得標章')->schema([
|
|
112
|
113
|
Select::make('badge_id')
|
|
113
|
114
|
->options(function () {
|
|
|
@@ -133,7 +134,8 @@ class ProjectResource extends Resource
|
|
133
|
134
|
->closeOnDateSelection(),
|
|
134
|
135
|
])
|
|
135
|
136
|
->reorderableWithButtons()
|
|
136
|
|
- ->defaultItems(0),
|
|
|
137
|
+ ->defaultItems(0)
|
|
|
138
|
+ ->visible(fn($get) => $get('badge_type') == 2),
|
|
137
|
139
|
]),
|
|
138
|
140
|
Tab::make('開發歷程')->schema([
|
|
139
|
141
|
Repeater::make('histories')->label('')->schema([
|