22
33namespace MangoDev \FilamentRevive \Tables ;
44
5- use Livewire \Component ;
6- use Filament \Tables \Table ;
7- use Filament \Tables \Actions \Action ;
5+ use Filament \Forms \Concerns \InteractsWithForms ;
86use Filament \Forms \Contracts \HasForms ;
7+ use Filament \Infolists \Components \KeyValueEntry ;
8+ use Filament \Notifications \Notification ;
9+ use Filament \Tables \Actions \Action ;
910use Filament \Tables \Actions \BulkAction ;
11+ use Filament \Tables \Actions \DeleteAction ;
1012use Filament \Tables \Actions \ViewAction ;
1113use Filament \Tables \Columns \TextColumn ;
14+ use Filament \Tables \Concerns \InteractsWithTable ;
1215use Filament \Tables \Contracts \HasTable ;
13- use Illuminate \Database \Eloquent \Model ;
14- use Filament \Notifications \Notification ;
15- use Filament \Tables \Actions \DeleteAction ;
1616use Filament \Tables \Filters \SelectFilter ;
17- use MangoDev \ FilamentRevive \ FilamentRevive ;
17+ use Filament \ Tables \ Table ;
1818use Illuminate \Database \Eloquent \Collection ;
19- use Filament \Forms \Concerns \InteractsWithForms ;
20- use Filament \Infolists \Components \KeyValueEntry ;
21- use Filament \Tables \Concerns \InteractsWithTable ;
19+ use Illuminate \Database \Eloquent \Model ;
20+ use Livewire \Component ;
2221use MangoDev \FilamentRevive \Models \RecycleBinItem ;
2322
2423class RecycleBin extends Component implements HasForms, HasTable
@@ -100,7 +99,7 @@ public function table(Table $table): Table
10099 ->success ()
101100 ->title ('Model restored ' )
102101 ->send ();
103- } catch (\Throwable $ th ) {
102+ } catch (\Throwable $ th ) {
104103 Notification::make ()
105104 ->danger ()
106105 ->title ('Failed restoring model ' )
@@ -120,7 +119,7 @@ public function table(Table $table): Table
120119 ->success ()
121120 ->title ('Model permanently deleted ' )
122121 ->send ();
123- } catch (\Throwable $ th ) {
122+ } catch (\Throwable $ th ) {
124123 Notification::make ()
125124 ->danger ()
126125 ->title ('Failed deleted model permanently ' )
@@ -148,7 +147,7 @@ public function table(Table $table): Table
148147 $ restored_models ++;
149148 } catch (\Throwable $ th ) {
150149 Notification::make ()
151- ->title (" Unable to restore model " )
150+ ->title (' Unable to restore model ' )
152151 ->danger ()
153152 ->send ();
154153
@@ -181,7 +180,7 @@ public function table(Table $table): Table
181180 $ this ->forceDeleteModel ($ model );
182181 } catch (\Throwable $ th ) {
183182 Notification::make ()
184- ->title (" Unable to delete model permanently " )
183+ ->title (' Unable to delete model permanently ' )
185184 ->danger ()
186185 ->send ();
187186
0 commit comments