removed unwanted action export from testing panel
This commit is contained in:
@@ -1093,25 +1093,6 @@ class TestingPanelReadingResource extends Resource
|
||||
})
|
||||
->icon('heroicon-o-document-arrow-down'),
|
||||
]),
|
||||
BulkAction::make('export')
|
||||
->label('Export Selected')
|
||||
->action(function (Collection $records) {
|
||||
// $records contains only selected rows
|
||||
$ids = $records->pluck('No.')->toArray();
|
||||
|
||||
return Excel::download(
|
||||
new TestingPanelReadingExport($ids),
|
||||
'selected_testing_panel_readings.csv'
|
||||
);
|
||||
}),
|
||||
// ExportAction::make()
|
||||
// ->label('Export Readings')
|
||||
// ->queued() // ✅ runs in queue
|
||||
// ->exports([
|
||||
// TestingPanelReadingExport::class,
|
||||
// ])
|
||||
// ->fileName('testing_panel_readings.csv')
|
||||
// ->format(Excel::CSV), // ✅ faster than Excel for 45k+ rows
|
||||
|
||||
])
|
||||
->headerActions([
|
||||
@@ -1125,11 +1106,6 @@ class TestingPanelReadingResource extends Resource
|
||||
->visible(function() {
|
||||
return Filament::auth()->user()->can('view export testing panel reading');
|
||||
}),
|
||||
// Action::make('export')
|
||||
// ->label('Export Readings')
|
||||
// ->action(function () {
|
||||
// return Excel::download(new TestingPanelReadingExport, 'testing_panel_readings.csv');
|
||||
// }),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user