translate base
This commit is contained in:
@@ -18,7 +18,7 @@ class ExportExcelAction
|
||||
public static function make(string $name, string $exportClass, string $filename): Action
|
||||
{
|
||||
return Action::make($name)
|
||||
->label('Export')
|
||||
->label(__('hr.actions.export'))
|
||||
->icon('heroicon-o-arrow-down-tray')
|
||||
->action(fn (): BinaryFileResponse => Excel::download(new $exportClass, $filename));
|
||||
}
|
||||
@@ -29,7 +29,7 @@ class ExportExcelAction
|
||||
public static function bulk(string $name, string $exportClass, string $filename): BulkAction
|
||||
{
|
||||
return BulkAction::make($name)
|
||||
->label('Export Selected')
|
||||
->label(__('hr.actions.export_selected'))
|
||||
->icon('heroicon-o-arrow-down-tray')
|
||||
->action(function (Collection $records) use ($exportClass, $filename): BinaryFileResponse {
|
||||
$ids = $records->pluck('id')->all();
|
||||
|
||||
Reference in New Issue
Block a user