@extends('user.layouts.master') @section('title', __('Security Settings')) @section('content')

{{ __('Security Settings') }}

{{ __('You have full control to manage your own account setting.') }}

@if(session('email-sent'))
{{ session('email-sent') }}
@endif {!! Panel::profile_alerts('verify_email', ['class' => 'alert-plain', 'type' => 'info', 'link_modal' => '#change-unverified-email', 'link_modal_verify' => '#send-verification-link']) !!}
{{ __('Settings') }}

{{ __('These settings are helps you keep your account secure.') }}

{{ __('Save my Activity Logs') }}

{!! __('Save your all :page including unusual activity detected.', ['page' => ''.__('activity logs').'' ]) !!}

{{ __('Email me if encounter unusual activity') }}

{{ __('You will get email notification whenever encounter invalid login activity.') }}

{{ __('Change Email Address') }}

{{ __('Update your current email address to new email address.') }}

@if(auth()->user()->is_verified) @if(data_get($metas, 'user_new_email', false)) @else @endif @else @endif
{{ __('Change Password') }}
@if(data_get($metas, 'registration_method') !== 'social' || data_get($metas, 'last_password_changed'))

{{ __('Set a unique password to protect your account.') }}

@else

{!! __('You must logout from your account and go to :page page.', ['page' => "". __('Forgot Password') ."" ]) !!}

@endif
@if(auth()->user()->is_verified) @if(data_get($metas, 'registration_method') !== 'social' || data_get($metas, 'last_password_changed'))
  • {{ __('Change Password') }}
  • {!! __('Last changed: :date', ['date' => ''.((data_get($metas, 'last_password_changed', false)) ? show_date(data_get($metas, 'last_password_changed', false)) : __('N/A')).'' ]) !!}
@endif @else
  • {{ __('You have to verify your email first.') }}
@endif
{{ __('2FA Authentication') }} @if (data_get(auth()->user(), '2fa')) {{ __('Enabled') }} @else {{ __('Disabled') }} @endif

{{ __('Secure your account with 2FA security. When it is activated you will need to enter not only your password, but also a special code using your mobile.') }}

@if (data_get(auth()->user(), '2fa')) {{ __('Disable') }} @else {{ __('Enable') }} @endif
@if(social_auth()) @if(auth()->user()->has_social_auth)
{{ __('Social Account Linked') }}

{{ __('Your account already connected with a social account. You can use your social account to login into your account.') }}

@else
{{ __('Social Account') }}

{{ __('You can connect with a social account from below social network to access your account using social login.') }}

@endif @if(social_auth('facebook') && (!auth()->user()->has_social_auth || data_get($metas, 'social_account_facebook')))
{{ data_get($metas, 'social_account_facebook') ? __('Connected to :Network', ['network' => __('facebook')]) : __('Connect to :Network', ['network' => __('facebook')]) }}
@if(data_get($metas, 'social_account_facebook'))

{{ __('You have connected with your :social account.', ['social' => __('facebook')]) }}

@else

{{ __('You can connect with your :Social account.', ['social' => __('facebook')]) }} {{ __('Not connected yet') }}

@endif
@if(data_get($metas, 'social_account_facebook')) @else @endif
@endif @if(social_auth('google') && (!auth()->user()->has_social_auth || data_get($metas, 'social_account_google')))
{{ data_get($metas, 'social_account_google') ? __('Connected to :Network', ['network' => __('google')]) : __('Connect to :Network', ['network' => __('google')]) }}
@if(data_get($metas, 'social_account_google'))

{{ __('You have successfully connected with your :social account, you can easily log in using your account too.', ['social' => __('google')]) }}

@else

{{ __('You can connect with your :social account.', ['social' => __('google')]) }} {{ __('Not connected yet') }}

@endif
@if(data_get($metas, 'social_account_google')) @else @endif
@endif @endif
@endsection @push('modal') {{-- Change Email Modal --}} {{-- Email Confirmation Modal --}} {{-- Change Password Modal --}} {{-- Add Password Modal --}} @if (social_auth() && auth()->user()->has_social_auth && empty(data_get($metas, 'last_password_changed'))) @endif {{-- Password Change Confirmation Modal --}} {{-- Change Unverified Email Modal--}} {{-- Send Verification Link for Unverified Email --}} @if (data_get(auth()->user(), '2fa')) {{-- 2fa disable modal --}} @else {{-- 2fa enable modal --}} @endif {{-- Social Account Modal --}} @endpush @push('scripts') @endpush