|
|
@@ -58,6 +58,14 @@ class ProjectResource extends Resource
|
|
58
|
58
|
->actions([
|
|
59
|
59
|
app(DeepLService::class)->createTranslationAction('Main', ['name', 'sub_name']),
|
|
60
|
60
|
])->columnSpanFull()->id('main'),
|
|
|
61
|
+ Translate::make()->schema(fn(string $locale) => [
|
|
|
62
|
+ Textarea::make('seo_description')->label('Meta Description'),
|
|
|
63
|
+ TextInput::make('seo_keywords')->label('Meta Keywords'),
|
|
|
64
|
+ ])
|
|
|
65
|
+ ->locales(['zh_TW', 'en'])
|
|
|
66
|
+ ->actions([
|
|
|
67
|
+ app(DeepLService::class)->createTranslationAction('seo', ['seo_description', 'seo_keywords']),
|
|
|
68
|
+ ])->columnSpanFull()->id('seo'),
|
|
61
|
69
|
Select::make('tags')
|
|
62
|
70
|
->multiple()
|
|
63
|
71
|
->relationship('tags', 'name')
|