translate base
This commit is contained in:
@@ -28,7 +28,7 @@ class UnpaidLeavesTable
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('employee.full_name')
|
||||
->label('Employee')
|
||||
->label(__('hr.fields.employee'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
TextColumn::make('start_date')
|
||||
@@ -47,7 +47,7 @@ class UnpaidLeavesTable
|
||||
->searchable()
|
||||
->sortable(),
|
||||
TextColumn::make('approver.name')
|
||||
->label('Approved By')
|
||||
->label(__('hr.fields.approved_by'))
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
TextColumn::make('approved_at')
|
||||
->dateTime()
|
||||
@@ -70,12 +70,12 @@ class UnpaidLeavesTable
|
||||
SelectFilter::make('status')
|
||||
->options(ApprovalStatus::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
|
||||
@@ -92,7 +92,7 @@ class UnpaidLeavesTable
|
||||
])
|
||||
->recordActions([
|
||||
Action::make('approve')
|
||||
->label('Approve')
|
||||
->label(__('hr.actions.approve'))
|
||||
->icon('heroicon-o-check-badge')
|
||||
->color('success')
|
||||
->requiresConfirmation()
|
||||
@@ -101,7 +101,7 @@ class UnpaidLeavesTable
|
||||
$unpaidLeaveService->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