translate base

This commit is contained in:
Mekan1206 committed 2026-07-31 18:08:08 +05:00
1 parent a794dacd39
commit 581cb8241c
413 files changed
+9087 -428

No files matched your search

+2 -2
View File
@@ -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 @@ public static function make(string $name, string $exportClass, string $filename)
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();
+4 -4
View File
@@ -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 @@ public static function employeeProfile(): Action
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 @@ public static function employeeLeaveSummary(): Action
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 @@ public static function employeeList(): Action
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()
+1 -1
View File
@@ -35,7 +35,7 @@ public static function employeeSelect(): Select
public static function leaveDaysDisplay(): TextInput
{
return TextInput::make('days')
->label('Days')
->label(__('hr.fields.days'))
->numeric()
->disabled()
->dehydrated(false)