1414use Filament \Tables \Actions \EditAction ;
1515use Filament \Tables \Columns \TextColumn ;
1616use Filament \Tables \Table ;
17+ use Illuminate \Contracts \Support \Htmlable ;
1718use Illuminate \Database \Eloquent \Builder ;
1819use Illuminate \Database \Eloquent \Model ;
1920
@@ -30,6 +31,41 @@ public static function getModel(): string
3031 return \Config::get ('visual-forms.models.visual_form_component ' , VisualFormComponent::class);
3132 }
3233
34+ public static function getNavigationIcon (): string | Htmlable | null
35+ {
36+ return \Config::get ('visual-forms.resources.visual-form-component.navigation-icon ' ) ?? parent ::getNavigationIcon ();
37+ }
38+
39+ public static function getNavigationLabel (): string
40+ {
41+ return \Config::get ('visual-forms.resources.visual-form-component.navigation-label ' ) ?? parent ::getNavigationLabel ();
42+ }
43+
44+ public static function getNavigationGroup (): ?string
45+ {
46+ return \Config::get ('visual-forms.resources.visual-form-component.navigation-group ' ) ?? parent ::getNavigationGroup ();
47+ }
48+
49+ public static function getNavigationSort (): ?int
50+ {
51+ return \Config::get ('visual-forms.resources.visual-form-component.navigation-sort ' ) ?? parent ::getNavigationSort ();
52+ }
53+
54+ public static function getModelLabel (): string
55+ {
56+ return \Config::get ('visual-forms.resources.visual-form-component.model-label ' ) ?? parent ::getModelLabel ();
57+ }
58+
59+ public static function getCluster (): ?string
60+ {
61+ return \Config::get ('visual-forms.resources.visual-form-component.cluster ' ) ?? parent ::getCluster ();
62+ }
63+
64+ public static function getGloballySearchableAttributes (): array
65+ {
66+ return ['name ' , 'visualForm.name ' ];
67+ }
68+
3369 public static function form (Form $ form ): Form
3470 {
3571 return $ form
@@ -78,11 +114,6 @@ public static function getGlobalSearchEloquentQuery(): Builder
78114 return parent ::getGlobalSearchEloquentQuery ()->with (['visualForm ' ]);
79115 }
80116
81- public static function getGloballySearchableAttributes (): array
82- {
83- return ['name ' , 'visualForm.name ' ];
84- }
85-
86117 public static function getGlobalSearchResultDetails (Model $ record ): array
87118 {
88119 $ details = [];
0 commit comments