->headerActions([
Action::make('export')
->label('Export')
->icon('heroicon-o-arrow-down-tray')
->action(function ($livewire) {
return (new ProjectsReportExport($livewire->getFilteredTableQuery()))->download('projects_report_' . now()->timestamp . '.csv', Excel::CSV, ['Content-Type' => 'text/csv']);
})
->tooltip('This will export the table along with any applied filters to a CSV file.')
->after(function ($action) {
Notification::make()->success()->title('Export Complete')->send();
}),
]);
->headerActions([
Action::make('export')
->label('Export')
->icon('heroicon-o-arrow-down-tray')
->action(function ($livewire) {
return (new ProjectsReportExport($livewire->getFilteredTableQuery()))->download('projects_report_' . now()->timestamp . '.csv', Excel::CSV, ['Content-Type' => 'text/csv']);
})
->tooltip('This will export the table along with any applied filters to a CSV file.')
->after(function ($action) {
Notification::make()->success()->title('Export Complete')->send();
}),
]);