26 lines
653 B
PHP
26 lines
653 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Courses\Schemas;
|
|
|
|
use Filament\Infolists\Components\TextEntry;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class CourseInfolist
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextEntry::make('created_at')
|
|
->dateTime()
|
|
->placeholder('-'),
|
|
TextEntry::make('updated_at')
|
|
->dateTime()
|
|
->placeholder('-'),
|
|
TextEntry::make('name'),
|
|
TextEntry::make('duration')
|
|
->numeric(),
|
|
]);
|
|
}
|
|
}
|