30 lines
934 B
PHP
30 lines
934 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Coupons\Schemas;
|
|
|
|
use Filament\Infolists\Components\TextEntry;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class CouponInfolist
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextEntry::make('phone')
|
|
->label(__('filament.fields.phone'))
|
|
->formatStateUsing(fn (string $state): string => format_phone($state))
|
|
->copyable(),
|
|
TextEntry::make('code')
|
|
->label(__('filament.fields.code'))
|
|
->copyable(),
|
|
TextEntry::make('created_at')
|
|
->label(__('filament.fields.created_at'))
|
|
->dateTime(),
|
|
TextEntry::make('updated_at')
|
|
->label(__('filament.fields.updated_at'))
|
|
->dateTime(),
|
|
]);
|
|
}
|
|
}
|