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

@@ -15,28 +15,28 @@ class ActivityLogInfolist
{
return $schema
->components([
Section::make('Activity Details')
Section::make(__('hr.sections.activity_details'))
->schema([
TextEntry::make('created_at')
->label('Date')
->label(__('hr.fields.date'))
->dateTime(),
TextEntry::make('description'),
TextEntry::make('event')
->badge(),
TextEntry::make('log_name')
->label('Log Name'),
->label(__('hr.fields.log_name')),
TextEntry::make('subject_type')
->label('Subject Type')
->label(__('hr.fields.subject_type'))
->formatStateUsing(fn (?string $state): string => $state ? class_basename($state) : '—'),
TextEntry::make('subject_id')
->label('Subject ID'),
->label(__('hr.fields.subject_id')),
TextEntry::make('causer.name')
->label('Causer'),
->label(__('hr.fields.causer')),
KeyValueEntry::make('properties.attributes')
->label('Changes')
->label(__('hr.fields.changes'))
->visible(fn ($record): bool => filled($record->properties['attributes'] ?? null)),
KeyValueEntry::make('properties.old')
->label('Previous Values')
->label(__('hr.fields.previous_values'))
->visible(fn ($record): bool => filled($record->properties['old'] ?? null)),
])
->columns(2),