translate base
This commit is contained in:
@@ -13,10 +13,13 @@ use Illuminate\Database\Eloquent\Builder;
|
||||
|
||||
class UpcomingLeaveWidget extends TableWidget
|
||||
{
|
||||
protected static ?string $heading = 'Upcoming Approved Leave (14 Days)';
|
||||
|
||||
protected int | string | array $columnSpan = 1;
|
||||
|
||||
public function getHeading(): ?string
|
||||
{
|
||||
return __('hr.widgets.upcoming_leave');
|
||||
}
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
@@ -30,13 +33,13 @@ class UpcomingLeaveWidget extends TableWidget
|
||||
)
|
||||
->columns([
|
||||
TextColumn::make('employee.full_name')
|
||||
->label('Employee'),
|
||||
->label(__('hr.fields.employee')),
|
||||
TextColumn::make('start_date')
|
||||
->date(),
|
||||
TextColumn::make('end_date')
|
||||
->date(),
|
||||
TextColumn::make('days')
|
||||
->label('Days'),
|
||||
->label(__('hr.fields.days')),
|
||||
])
|
||||
->paginated(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user