Add bokshorn-it/filament-activity-timeline package for enhanced audit logging functionality. Update README to reflect new key package and improve localization for audit-related terms. Remove deprecated ActivityLogResource and related pages, integrating activity timeline features into existing resources. Update models to implement ProvidesActivityTitle for better activity tracking.
This commit is contained in:
@@ -7,6 +7,7 @@ namespace App\Filament\Resources\Employees\Pages;
|
||||
use App\Filament\Resources\Employees\EmployeeResource;
|
||||
use App\Filament\Resources\Employees\Widgets\EmployeeStatsWidget;
|
||||
use App\Filament\Support\ExportPdfAction;
|
||||
use BokshornIt\FilamentActivityTimeline\Actions\ActivityTimelineAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Resources\Pages\ViewRecord;
|
||||
|
||||
@@ -17,6 +18,17 @@ class ViewEmployee extends ViewRecord
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
ActivityTimelineAction::make()
|
||||
->withRelations([
|
||||
'vacations',
|
||||
'sickLeaves',
|
||||
'unpaidLeaves',
|
||||
'disciplinaryReports',
|
||||
'explanations',
|
||||
'bonuses',
|
||||
'gifts',
|
||||
'documents',
|
||||
]),
|
||||
ExportPdfAction::employeeProfile(),
|
||||
ExportPdfAction::employeeLeaveSummary(),
|
||||
EditAction::make(),
|
||||
|
||||
Reference in New Issue
Block a user