translate base
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user