diff --git a/cp/resources/views/admin/profile/profile.twig b/cp/resources/views/admin/profile/profile.twig index 758d6c9..ed0126a 100644 --- a/cp/resources/views/admin/profile/profile.twig +++ b/cp/resources/views/admin/profile/profile.twig @@ -24,200 +24,183 @@
{% include 'partials/flash.twig' %} -
-
- -
-
-
-
-

{{ __('Details') }}

-
-
-
- {{ csrf.field | raw }} -
-
-
{{ __('User Name') }}
-
{{ username }}
-
-
-
{{ __('Email') }}
-
{{ email }}
-
-
-
{{ __('Status') }}
- {{ status }} -
-
-
{{ __('Role') }}
- {{ role }} -
-
-

{{ __('Change Password') }}

-
-
-
{{ __('Old Password') }}
- - {% if errors.old_password %} - {{ errors.old_password | first }} - {% endif %} -
-
-
{{ __('New Password') }}
- - {% if errors.new_password %} - {{ errors.new_password | first }} - {% endif %} -
-
+
+ +
+
+
+

{{ __('Details') }}

+ + {{ csrf.field | raw }} +
+
+
{{ __('User Name') }}
+
{{ username }}
- +

{{ __('Change Password') }}

+
+
+
{{ __('Old Password') }}
+ + {% if errors.old_password %} + {{ errors.old_password | first }} + {% endif %} +
+
+
{{ __('New Password') }}
+ + {% if errors.new_password %} + {{ errors.new_password | first }} + {% endif %}
-
-
-

{{ __('Two-Factor Authentication') }} (2FA)

-
- {% if secret is defined %} -
- {{ csrf.field | raw }} -
-

{{ __('Set up 2FA for additional security. Scan the QR code with your authentication app and enter the provided code below to verify.') }}

- -
- 2FA QR Code -
- -
-

{{ __('Manual Entry Secret') }}

- {{ secret|split(4)|join(' ') }} - - {{ __('If you\'re unable to scan the QR code, enter this secret manually into your authentication app. The secret is case-sensitive and should be entered exactly as shown.') }} - -
- -
- - - - {{ __('Enter the code generated by your authentication app. This code verifies that your 2FA setup is working correctly. Once entered, click') }} {{ __('Save 2FA Settings') }} {{ __('to activate two-factor authentication for your account.') }} - -
- - -
-
- {% else %} -
-
- -
-
{{ __('Your account is secured with an additional layer of protection.') }}
-

{{ __('2FA is currently') }} {{ __('enabled') }} {{ __('for your account. If you encounter any issues or need to disable 2FA, please contact our support team for assistance.') }}

-
-
-
- {% endif %} -
-
-
-

{{ __('WebAuthn Authentication') }}

-
-
-

{{ __('Secure your account with WebAuthn. Click the button below to register your device for passwordless sign-in.') }}

- - - -
- - - - - - - - - - {% for device in weba %} - - - - - - {% else %} - - - - {% endfor %} - -
{{ __('Device/Browser Info') }}{{ __('Registration Date') }}{{ __('Action') }}
{{ device.user_agent }}{{ device.created_at }} - {{ __('Edit') }} -
{{ __('No devices found.') }}
-
-
+ -
-

{{ __('User Audit Log') }}

-
-
-

{{ __('Track and review all user activities in your account below. Monitor logins, profile changes, and other key actions to ensure security and transparency.') }}

-
- - - - - - - - - - - - {% for user in userAudit %} - - - - - - - - {% else %} - - - - {% endfor %} - -
{{ __('Event') }}{{ __('User Agent') }}IP{{ __('Location') }}{{ __('Timestamp') }}
{{ user.user_event }}{{ user.user_agent }}{{ user.user_ip }}{{ user.user_location }}{{ user.event_time }}
{{ __('No log data for user.') }}
-
-
+ +
+
+ {% if secret is defined %} +
+

{{ __('Two-Factor Authentication') }} (2FA)

+
+ {{ csrf.field | raw }} +

{{ __('Set up 2FA for additional security. Scan the QR code with your authentication app and enter the provided code below to verify.') }}

+
+ 2FA QR Code +
+
+

{{ __('Manual Entry Secret') }}

+ {{ secret|split(4)|join(' ') }} + + {{ __('If you\'re unable to scan the QR code, enter this secret manually into your authentication app. The secret is case-sensitive and should be entered exactly as shown.') }} + +
+
+ + + + {{ __('Enter the code generated by your authentication app. This code verifies that your 2FA setup is working correctly. Once entered, click') }} {{ __('Save 2FA Settings') }} {{ __('to activate two-factor authentication for your account.') }} + +
+ +
+
+ {% else %} +
+

{{ __('Two-Factor Authentication') }} (2FA)

+
+ +
+
{{ __('Your account is secured with an additional layer of protection.') }}
+

{{ __('2FA is currently') }} {{ __('enabled') }} {{ __('for your account. If you encounter any issues or need to disable 2FA, please contact our support team for assistance.') }}

+
+
+
+ {% endif %} +
+
+
+

{{ __('WebAuthn Authentication') }}

+

{{ __('Secure your account with WebAuthn. Click the button below to register your device for passwordless sign-in.') }}

+ +
+ + + + + + + + + + {% for device in weba %} + + + + + + {% else %} + + + + {% endfor %} + +
{{ __('Device/Browser Info') }}{{ __('Registration Date') }}{{ __('Action') }}
{{ device.user_agent }}{{ device.created_at }} + {{ __('Edit') }} +
{{ __('No devices found.') }}
-
+
+
+

{{ __('User Audit Log') }}

+

{{ __('Track and review all user activities in your account below. Monitor logins, profile changes, and other key actions to ensure security and transparency.') }}

+
+ + + + + + + + + + + + {% for user in userAudit %} + + + + + + + + {% else %} + + + + {% endfor %} + +
{{ __('Event') }}{{ __('User Agent') }}IP{{ __('Location') }}{{ __('Timestamp') }}
{{ user.user_event }}{{ user.user_agent }}{{ user.user_ip }}{{ user.user_location }}{{ user.event_time }}
{{ __('No log data for user.') }}
+
+
+
+
{% include 'partials/footer.twig' %}