3
3
namespace Tapp \FilamentFormBuilder \Filament \Resources ;
4
4
5
5
use Filament \Forms ;
6
- use Filament \Tables ;
7
6
use Filament \Forms \Form ;
8
7
use Filament \Tables \Table ;
9
8
use Filament \Resources \Resource ;
10
9
use Filament \Forms \Components \Toggle ;
10
+ use Filament \Tables \Actions \EditAction ;
11
11
use Filament \Tables \Columns \IconColumn ;
12
+ use Filament \Tables \Columns \TextColumn ;
13
+ use Filament \Tables \Actions \BulkActionGroup ;
14
+ use Filament \Tables \Actions \DeleteBulkAction ;
12
15
use Tapp \FilamentFormBuilder \Models \FilamentForm ;
13
16
use Tapp \FilamentFormBuilder \Filament \Resources \FilamentFormResource \Pages \EditFilamentForm ;
14
17
use Tapp \FilamentFormBuilder \Filament \Resources \FilamentFormResource \Pages \ListFilamentForms ;
@@ -67,18 +70,18 @@ public static function table(Table $table): Table
67
70
{
68
71
return $ table
69
72
->columns ([
70
- Tables \ Columns \ TextColumn::make ('created_at ' )
73
+ TextColumn::make ('created_at ' )
71
74
->dateTime ()
72
75
->sortable ()
73
76
->toggleable (isToggledHiddenByDefault: true ),
74
- Tables \ Columns \ TextColumn::make ('updated_at ' )
77
+ TextColumn::make ('updated_at ' )
75
78
->dateTime ()
76
79
->sortable ()
77
80
->toggleable (isToggledHiddenByDefault: true ),
78
- Tables \ Columns \ TextColumn::make ('name ' )
81
+ TextColumn::make ('name ' )
79
82
->sortable ()
80
83
->searchable (),
81
- Tables \ Columns \ TextColumn::make ('form_link ' )
84
+ TextColumn::make ('form_link ' )
82
85
->copyable ()
83
86
->copyMessage ('Form link copied to clipboard ' )
84
87
->copyMessageDuration (1500 ),
@@ -93,11 +96,11 @@ public static function table(Table $table): Table
93
96
//
94
97
])
95
98
->actions ([
96
- Tables \ Actions \ EditAction::make (),
99
+ EditAction::make (),
97
100
])
98
101
->bulkActions ([
99
- Tables \ Actions \ BulkActionGroup::make ([
100
- Tables \ Actions \ DeleteBulkAction::make (),
102
+ BulkActionGroup::make ([
103
+ DeleteBulkAction::make (),
101
104
]),
102
105
])
103
106
->emptyStateHeading ('No ' .config ('filament-form-builder.admin-panel-resource-name-plural ' ));
0 commit comments