28 lines
1.1 KiB
PHP
28 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\BazaarReviews\Schemas;
|
|
|
|
use Filament\Infolists\Components\IconEntry;
|
|
use Filament\Infolists\Components\TextEntry;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class BazaarReviewInfolist
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextEntry::make('bazaar_review_id')->label('Bazaar review ID'),
|
|
TextEntry::make('rate')->badge(),
|
|
TextEntry::make('text')->columnSpanFull(),
|
|
TextEntry::make('app_version_code'),
|
|
IconEntry::make('is_edited')->boolean(),
|
|
TextEntry::make('published_at')->dateTime(),
|
|
TextEntry::make('developer_reply_text')->columnSpanFull(),
|
|
TextEntry::make('developer_reply_email'),
|
|
TextEntry::make('developer_replied_at')->dateTime(),
|
|
TextEntry::make('bazaar_response')->formatStateUsing(fn (?array $state): string => json_encode($state, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE))->columnSpanFull(),
|
|
]);
|
|
}
|
|
}
|