translate base

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

View File

@@ -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);
}