fixed user/admin settings page error

This commit is contained in:
Naser Mansour 2026-01-08 19:21:47 +02:00
parent dfee2ff5c8
commit 508ce8f918
6 changed files with 23 additions and 7 deletions

View File

@ -44,4 +44,12 @@ return [
'working_hours' => 'ساعات العمل', 'working_hours' => 'ساعات العمل',
'blocked_times' => 'الأوقات المحظورة', 'blocked_times' => 'الأوقات المحظورة',
'legal_pages' => 'الصفحات القانونية', 'legal_pages' => 'الصفحات القانونية',
// Settings Page Headings
'profile_heading' => 'الملف الشخصي',
'profile_subheading' => 'تحديث الاسم والبريد الإلكتروني',
'password_heading' => 'تحديث كلمة المرور',
'password_subheading' => 'تأكد من استخدام كلمة مرور طويلة وعشوائية للحفاظ على الأمان',
'two_factor_heading' => 'المصادقة الثنائية',
'two_factor_subheading' => 'إدارة إعدادات المصادقة الثنائية',
]; ];

View File

@ -44,4 +44,12 @@ return [
'working_hours' => 'Working Hours', 'working_hours' => 'Working Hours',
'blocked_times' => 'Blocked Times', 'blocked_times' => 'Blocked Times',
'legal_pages' => 'Legal Pages', 'legal_pages' => 'Legal Pages',
// Settings Page Headings
'profile_heading' => 'Profile',
'profile_subheading' => 'Update your name and email address',
'password_heading' => 'Update password',
'password_subheading' => 'Ensure your account is using a long, random password to stay secure',
'two_factor_heading' => 'Two Factor Authentication',
'two_factor_subheading' => 'Manage your two-factor authentication settings',
]; ];

View File

@ -1,10 +1,10 @@
<div class="flex items-start max-md:flex-col"> <div class="flex items-start max-md:flex-col">
<div class="me-10 w-full pb-4 md:w-[220px]"> <div class="me-10 w-full pb-4 md:w-[220px]">
<flux:navlist> <flux:navlist>
<flux:navlist.item :href="route('profile.edit')" wire:navigate>{{ __('Profile') }}</flux:navlist.item> <flux:navlist.item :href="route('profile.edit')" wire:navigate>{{ __('navigation.profile') }}</flux:navlist.item>
<flux:navlist.item :href="route('user-password.edit')" wire:navigate>{{ __('Password') }}</flux:navlist.item> <flux:navlist.item :href="route('user-password.edit')" wire:navigate>{{ __('navigation.password') }}</flux:navlist.item>
@if (Laravel\Fortify\Features::canManageTwoFactorAuthentication()) @if (Laravel\Fortify\Features::canManageTwoFactorAuthentication())
<flux:navlist.item :href="route('two-factor.show')" wire:navigate>{{ __('Two-Factor Auth') }}</flux:navlist.item> <flux:navlist.item :href="route('two-factor.show')" wire:navigate>{{ __('navigation.two_factor') }}</flux:navlist.item>
@endif @endif
</flux:navlist> </flux:navlist>
</div> </div>

View File

@ -39,7 +39,7 @@ new class extends Component {
<section class="w-full"> <section class="w-full">
@include('partials.settings-heading') @include('partials.settings-heading')
<x-settings.layout :heading="__('Update password')" :subheading="__('Ensure your account is using a long, random password to stay secure')"> <x-settings.layout :heading="__('navigation.password_heading')" :subheading="__('navigation.password_subheading')">
<form method="POST" wire:submit="updatePassword" class="mt-6 space-y-6"> <form method="POST" wire:submit="updatePassword" class="mt-6 space-y-6">
<flux:input <flux:input
wire:model="current_password" wire:model="current_password"

View File

@ -95,7 +95,7 @@ new class extends Component {
<section class="w-full"> <section class="w-full">
@include('partials.settings-heading') @include('partials.settings-heading')
<x-settings.layout :heading="__('Profile')" :subheading="__('Update your name and email address')"> <x-settings.layout :heading="__('navigation.profile_heading')" :subheading="__('navigation.profile_subheading')">
<form wire:submit="updateProfileInformation" class="my-6 w-full space-y-6"> <form wire:submit="updateProfileInformation" class="my-6 w-full space-y-6">
<flux:input wire:model="full_name" :label="__('Full Name')" type="text" required autofocus autocomplete="name" /> <flux:input wire:model="full_name" :label="__('Full Name')" type="text" required autofocus autocomplete="name" />

View File

@ -181,8 +181,8 @@ new class extends Component {
@include('partials.settings-heading') @include('partials.settings-heading')
<x-settings.layout <x-settings.layout
:heading="__('Two Factor Authentication')" :heading="__('navigation.two_factor_heading')"
:subheading="__('Manage your two-factor authentication settings')" :subheading="__('navigation.two_factor_subheading')"
> >
<div class="flex flex-col w-full mx-auto space-y-6 text-sm" wire:cloak> <div class="flex flex-col w-full mx-auto space-y-6 text-sm" wire:cloak>
@if ($twoFactorEnabled) @if ($twoFactorEnabled)