feat: Persian panel/API fixes and structural-model tweaks

- lang/fa: add validation/auth/passwords/pagination translations so admin
  and API validation errors are in Persian
- templates: soft-delete instead of cascade-deleting their generations;
  keep resolving trashed template on generations (labels/downloads)
- templates: add TemplateInfolist with a real thumbnail ImageEntry
- generations: auto-name template-based generations and use that name
  for the download file and as a searchable column
- admin: show all dates as Jalali via ->jalaliDate()/->jalaliDateTime()
  Filament macros (App\Support\Jalali)
- wallets: harden the deposit/withdraw action to surface the exact error
  instead of a 500
- profile: normalize Iranian mobile numbers (App\Support\Mobile),
  add social_links, coerce notification-preference booleans, require the
  current password to delete an account

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013P66ea1dC5CVM9t29496t5
This commit is contained in:
2026-09-07 01:00:09 +03:30
parent 46ae711a20
commit 936f789ac8
38 changed files with 756 additions and 39 deletions

View File

@@ -13,6 +13,10 @@ class TemplateGenerationInfolist
{
return $schema
->components([
TextEntry::make('title')
->label('نام فایل')
->placeholder('—')
->columnSpanFull(),
TextEntry::make('uuid')
->label('شناسه')
->copyable(),
@@ -42,7 +46,7 @@ class TemplateGenerationInfolist
->columnSpanFull(),
TextEntry::make('created_at')
->label('تاریخ ایجاد')
->dateTime(),
->jalaliDateTime(),
]);
}
}

View File

@@ -16,10 +16,17 @@ class TemplateGenerationsTable
{
return $table
->columns([
TextColumn::make('title')
->label('نام فایل')
->searchable()
->sortable()
->description(fn ($record): string => $record->uuid)
->wrap(),
TextColumn::make('uuid')
->label('شناسه')
->searchable()
->copyable(),
->copyable()
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('template.title')
->label('قالب')
->searchable()
@@ -44,7 +51,7 @@ class TemplateGenerationsTable
->placeholder('—'),
TextColumn::make('created_at')
->label('تاریخ')
->dateTime()
->jalaliDateTime()
->sortable(),
])
->defaultSort('created_at', 'desc')