26 lines
1.1 KiB
PHP
26 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\SerpChecks\Schemas;
|
|
|
|
use Filament\Infolists\Components\TextEntry;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class SerpCheckInfolist
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema->components([
|
|
TextEntry::make('ulid')->label('ULID'),
|
|
TextEntry::make('phrase')->label(__('admin.keyword')),
|
|
TextEntry::make('keyword.project.name')->label(__('admin.project')),
|
|
TextEntry::make('keyword.project.domain')->label(__('admin.domain')),
|
|
TextEntry::make('keyword.project.user.email')->label(__('admin.customer')),
|
|
TextEntry::make('provider')->label(__('admin.provider'))->placeholder('—'),
|
|
TextEntry::make('status')->label(__('admin.status'))->formatStateUsing(fn ($state) => $state->label()),
|
|
TextEntry::make('result_count')->label(__('admin.result_count')),
|
|
TextEntry::make('error_code')->label(__('admin.error_code'))->placeholder('—'),
|
|
TextEntry::make('error_message')->label(__('admin.error_message'))->placeholder('—'),
|
|
]);
|
|
}
|
|
}
|