39 lines
1.2 KiB
PHP
39 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Filament\Resources\Entries\Schemas;
|
||
|
|
|
||
|
|
use Filament\Infolists\Components\IconEntry;
|
||
|
|
use Filament\Infolists\Components\TextEntry;
|
||
|
|
use Filament\Schemas\Schema;
|
||
|
|
|
||
|
|
class EntryInfolist
|
||
|
|
{
|
||
|
|
public static function configure(Schema $schema): Schema
|
||
|
|
{
|
||
|
|
return $schema
|
||
|
|
->components([
|
||
|
|
TextEntry::make('title'),
|
||
|
|
TextEntry::make('slug'),
|
||
|
|
TextEntry::make('description')
|
||
|
|
->placeholder('-')
|
||
|
|
->columnSpanFull(),
|
||
|
|
IconEntry::make('is_published')
|
||
|
|
->boolean(),
|
||
|
|
IconEntry::make('is_featured')
|
||
|
|
->boolean(),
|
||
|
|
TextEntry::make('published_at')
|
||
|
|
->date()
|
||
|
|
->placeholder('-'),
|
||
|
|
TextEntry::make('content')
|
||
|
|
->placeholder('-')
|
||
|
|
->columnSpanFull(),
|
||
|
|
TextEntry::make('created_at')
|
||
|
|
->dateTime()
|
||
|
|
->placeholder('-'),
|
||
|
|
TextEntry::make('updated_at')
|
||
|
|
->dateTime()
|
||
|
|
->placeholder('-'),
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|