Refactor SMS and Coupon resources to utilize localization for labels and messages, enhancing internationalization support. Update .env.example to change APP_LOCALE to 'tk'.
This commit is contained in:
@@ -12,13 +12,17 @@ class CouponInfolist
|
||||
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(),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user