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:
Mekan1206
2026-08-02 22:37:59 +05:00
parent 0237c2b9ef
commit 3504e39646
46 changed files with 472 additions and 314 deletions

View File

@@ -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(),