Filament evaluates each entry of ->rules() as its own closure and tries
to inject dependencies, so a bare Laravel validation closure blew up with
"[$attribute] was unresolvable" when opening/saving the user form. Wrap it
so the outer closure returns the Laravel rule.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The action closure referenced $type without importing it via use(), so
every credit/debit attempt in the admin panel threw "Undefined variable
$type" instead of adjusting the wallet.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- 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
Fills the gaps between the admin panel screens and the backend: a full
free-text + slide-count + language -> AI-generated presentation flow with
new slide-cloning logic in TemplateFillService, a "my presentations" list
endpoint, a swappable payment-gateway structure for wallet top-ups (fake
driver for now), and avatar upload / public-profile toggle / account
deletion / password change / notification preference endpoints.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
chore: update composer dependencies to include phppresentation
chore: update composer.lock after adding phppresentation
feat: create categories migration for category management
feat: create templates migration for template storage
feat: create template generations migration for tracking template usage
feat: create template keys migration for template customization
feat: create notifications migration for user notifications
feat: update API routes for categories, templates, and user profile management
docs: update API documentation to include new endpoints for profile and wallet