complete story 2.4 with qa test and added a feature disallowing admin from deactivating his own account

This commit is contained in:
Naser Mansour
2025-12-26 16:10:52 +02:00
parent b207be196e
commit f508f2b7bf
15 changed files with 1656 additions and 69 deletions
@@ -0,0 +1,39 @@
@component('mail::message')
@if($locale === 'ar')
<div dir="rtl" style="text-align: right;">
# {{ __('emails.password_reset_by_admin_title', [], $locale) }}
{{ __('emails.password_reset_by_admin_greeting', ['name' => $user->full_name ?? $user->company_name], $locale) }}
{{ __('emails.password_reset_by_admin_body', [], $locale) }}
**{{ __('emails.your_new_password', [], $locale) }}:** `{{ $newPassword }}`
{{ __('emails.password_reset_by_admin_note', [], $locale) }}
@component('mail::button', ['url' => route('login')])
{{ __('emails.login_now', [], $locale) }}
@endcomponent
{{ __('emails.regards', [], $locale) }}<br>
{{ config('app.name') }}
</div>
@else
# {{ __('emails.password_reset_by_admin_title', [], $locale) }}
{{ __('emails.password_reset_by_admin_greeting', ['name' => $user->full_name ?? $user->company_name], $locale) }}
{{ __('emails.password_reset_by_admin_body', [], $locale) }}
**{{ __('emails.your_new_password', [], $locale) }}:** `{{ $newPassword }}`
{{ __('emails.password_reset_by_admin_note', [], $locale) }}
@component('mail::button', ['url' => route('login')])
{{ __('emails.login_now', [], $locale) }}
@endcomponent
{{ __('emails.regards', [], $locale) }}<br>
{{ config('app.name') }}
@endif
@endcomponent