@extends('layouts.app') @section('title') {{trans('general.privacy_security')}} -@endsection @section('content')

{{trans('general.privacy_security')}}

{{trans('general.desc_privacy')}}

@include('includes.cards-settings')
@if (session('status'))
{{ session('status') }}
@endif @include('errors.errors-forms')
{{ __('general.login_sessions') }}
@if ($agents->count() || $currentSession) {{ __('general.last_login_record') }} @if ($currentSession)

{{ $currentSession->getNameBrowser() }} {{ __('general.on') }} {{ $currentSession->getNamePlatform() }}{{ $currentSession->device_type == 'phone' ? ', '.$currentSession->device : null }} {{ __('general.active_now') }} {{ $currentSession->ip }} - {{ $currentSession->country ? $currentSession->country.' - ' : null }}

@endif @foreach ($agents as $agent)

{{ $agent->getNameBrowser() }} {{ __('general.on') }} {{ $agent->getNamePlatform() }} {{ $agent->device_type == 'phone' ? ', '.$agent->device : null }}

{{ $agent->ip }} - {{ $agent->country ? $agent->country.' - ' : null }} @endforeach {{ __('general.login_session_alert') }} @if ($agents->count() != 0) {{ __('general.close_all_sessions') }} @include('includes.modal-logout-devices') @endif @else {{ __('general.no_results_found') }} @endif
@if (auth()->user()->verified_id == 'yes')
{{ __('general.privacy') }}
@csrf
user()->hide_profile == 'yes') checked @endif id="customSwitch1">
user()->hide_last_seen == 'yes') checked @endif id="customSwitch2">
user()->active_status_online == 'yes') checked @endif id="customSwitch6">
user()->hide_count_subscribers == 'yes') checked @endif id="customSwitch3">
user()->hide_my_country == 'yes') checked @endif id="customSwitch4">
user()->show_my_birthdate == 'yes') checked @endif id="customSwitch5">
user()->posts_privacy) checked @endif id="posts_privacy">
{{ __('general.security') }}
user()->two_factor_auth == 'yes') checked @endif id="customSwitch7">
@endif @if (! auth()->user()->isSuperAdmin())
{{ __('general.delete_account') }}
{{ __('general.delete_account_alert') }} @if (auth()->user()->verified_id == 'yes' && auth()->user()->free_subscription == 'yes' && $settings->allow_creators_deactivate_profile)
{{ __('general.deactivate_your_account') }}
{{ __('general.deactivate_your_account_alert') }}
@csrf
@endif @endif
@endsection @section('javascript') @endsection