translate base
This commit is contained in:
@@ -15,7 +15,7 @@ class ExportPdfAction
|
||||
public static function employeeProfile(): Action
|
||||
{
|
||||
return Action::make('exportPdf')
|
||||
->label('Export PDF')
|
||||
->label(__('hr.actions.export_pdf'))
|
||||
->icon('heroicon-o-document-arrow-down')
|
||||
->action(fn (Employee $record, PdfExportService $pdf) => $pdf->employeeProfile($record));
|
||||
}
|
||||
@@ -23,7 +23,7 @@ class ExportPdfAction
|
||||
public static function employeeLeaveSummary(): Action
|
||||
{
|
||||
return Action::make('exportLeavePdf')
|
||||
->label('Leave Summary PDF')
|
||||
->label(__('hr.actions.leave_summary_pdf'))
|
||||
->icon('heroicon-o-document-text')
|
||||
->action(fn (Employee $record, PdfExportService $pdf) => $pdf->leaveSummary($record));
|
||||
}
|
||||
@@ -31,7 +31,7 @@ class ExportPdfAction
|
||||
public static function employeeList(): Action
|
||||
{
|
||||
return Action::make('exportPdf')
|
||||
->label('Export PDF')
|
||||
->label(__('hr.actions.export_pdf'))
|
||||
->icon('heroicon-o-document-arrow-down')
|
||||
->action(fn (PdfExportService $pdf) => $pdf->employeeList(
|
||||
Employee::query()->with(['department', 'position', 'shift'])->orderBy('full_name')->get()
|
||||
@@ -41,7 +41,7 @@ class ExportPdfAction
|
||||
public static function employeeListBulk(): BulkAction
|
||||
{
|
||||
return BulkAction::make('exportPdf')
|
||||
->label('Export PDF')
|
||||
->label(__('hr.actions.export_pdf'))
|
||||
->icon('heroicon-o-document-arrow-down')
|
||||
->action(fn (Collection $records, PdfExportService $pdf) => $pdf->employeeList(
|
||||
Employee::query()
|
||||
|
||||
Reference in New Issue
Block a user