35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\EmployeeDocuments\Schemas;
|
|
|
|
use App\Models\EmployeeDocument;
|
|
use Filament\Infolists\Components\TextEntry;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class EmployeeDocumentInfolist
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextEntry::make('employee.id')
|
|
->label(__('hr.fields.employee')),
|
|
TextEntry::make('document_type')
|
|
->badge(),
|
|
TextEntry::make('title'),
|
|
TextEntry::make('file_path'),
|
|
TextEntry::make('uploaded_at')
|
|
->dateTime(),
|
|
TextEntry::make('created_at')
|
|
->dateTime()
|
|
->placeholder('-'),
|
|
TextEntry::make('updated_at')
|
|
->dateTime()
|
|
->placeholder('-'),
|
|
TextEntry::make('deleted_at')
|
|
->dateTime()
|
|
->visible(fn (EmployeeDocument $record): bool => $record->trashed()),
|
|
]);
|
|
}
|
|
}
|