translate base
This commit is contained in:
@@ -30,7 +30,7 @@ class VacationsTable
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('employee.full_name')
|
||||
->label('Employee')
|
||||
->label(__('hr.fields.employee'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
TextColumn::make('type')
|
||||
@@ -55,7 +55,7 @@ class VacationsTable
|
||||
->searchable()
|
||||
->sortable(),
|
||||
TextColumn::make('approver.name')
|
||||
->label('Approved By')
|
||||
->label(__('hr.fields.approved_by'))
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
TextColumn::make('approved_at')
|
||||
->dateTime()
|
||||
@@ -80,12 +80,12 @@ class VacationsTable
|
||||
SelectFilter::make('type')
|
||||
->options(VacationType::class),
|
||||
Filter::make('date_range')
|
||||
->label('Date Range')
|
||||
->label(__('hr.fields.date_range'))
|
||||
->schema([
|
||||
DatePicker::make('start_from')
|
||||
->label('Start from'),
|
||||
->label(__('hr.fields.start_from')),
|
||||
DatePicker::make('start_until')
|
||||
->label('Start until'),
|
||||
->label(__('hr.fields.start_until')),
|
||||
])
|
||||
->query(function (Builder $query, array $data): Builder {
|
||||
return $query
|
||||
@@ -102,7 +102,7 @@ class VacationsTable
|
||||
])
|
||||
->recordActions([
|
||||
Action::make('approve')
|
||||
->label('Approve')
|
||||
->label(__('hr.actions.approve'))
|
||||
->icon('heroicon-o-check-badge')
|
||||
->color('success')
|
||||
->requiresConfirmation()
|
||||
@@ -111,7 +111,7 @@ class VacationsTable
|
||||
$vacationService->approve($record, Auth::user());
|
||||
}),
|
||||
Action::make('reject')
|
||||
->label('Reject')
|
||||
->label(__('hr.actions.reject'))
|
||||
->icon('heroicon-o-x-mark')
|
||||
->color('danger')
|
||||
->requiresConfirmation()
|
||||
|
||||
Reference in New Issue
Block a user