mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-23 19:19:14 +02:00
39 lines
994 B
PHP
39 lines
994 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Components\Infolist;
|
|
|
|
use App\Models\BaseModel;
|
|
use Filament\Infolists\Components\Section;
|
|
|
|
/**
|
|
* Class TimestampSection.
|
|
*/
|
|
class TimestampSection
|
|
{
|
|
/**
|
|
* Create a section for displaying timestamps.
|
|
*
|
|
* @return Section
|
|
*/
|
|
public static function make(): Section
|
|
{
|
|
return Section::make(__('filament.fields.base.timestamps'))
|
|
->columns(3)
|
|
->schema([
|
|
TextEntry::make(BaseModel::ATTRIBUTE_CREATED_AT)
|
|
->label(__('filament.fields.base.created_at'))
|
|
->dateTime(),
|
|
|
|
TextEntry::make(BaseModel::ATTRIBUTE_UPDATED_AT)
|
|
->label(__('filament.fields.base.updated_at'))
|
|
->dateTime(),
|
|
|
|
TextEntry::make(BaseModel::ATTRIBUTE_DELETED_AT)
|
|
->label(__('filament.fields.base.deleted_at'))
|
|
->dateTime(),
|
|
]);
|
|
}
|
|
}
|